1 | protected AbstractFileSet getRef(Project p) {↵ | | 1 | protected AbstractFileSet getRef(Project p) {↵
|
2 | dieOnCircularReference(p);↵ | | 2 | dieOnCircularReference(p);↵
|
3 | Object o = getRefid().getReferencedObject(p);↵ | | 3 | Object o = getRefid().getReferencedObject(p);↵
|
4 | if (o instanceof TarFileSet) {↵ | | 4 | if (o instanceof ZipFileSet) {↵
|
5 | return (AbstractFileSet) o;↵ | | 5 | return (AbstractFileSet) o;↵
|
6 | } else if (o instanceof FileSet) {↵ | | 6 | } else if (o instanceof FileSet) {↵
|
7 | TarFileSet zfs = new TarFileSet((FileSet) o);↵ | | 7 | ZipFileSet zfs = new ZipFileSet((FileSet) o);↵
|
8 | configureFileSet(zfs);↵ | | 8 | configureFileSet(zfs);↵
|
9 | return zfs;↵ | | 9 | return zfs;↵
|
10 | } else {↵ | | 10 | } else {↵
|
11 | String msg = getRefid().getRefId() + " doesn\'t denote a tarfileset or a fileset";↵ | | 11 | String msg = getRefid().getRefId() + " doesn\'t denote a zipfileset or a fileset";↵
|
12 | throw new BuildException(msg);↵ | | 12 | throw new BuildException(msg);↵
|
13 | | | 13 |
|