1 | public Object clone() {↵ | | 1 | public Object clone() {↵
|
2 | if (isReference()) {↵ | | 2 | if (isReference()) {↵
|
3 | return ((TarFileSet) getRef(getProject())).clone();↵ | | 3 | return ((ZipFileSet) getRef(getProject())).clone();↵
|
4 | } else {↵ | | 4 | } else {↵
|
5 | return super.clone();↵ | | 5 | return super.clone();↵
|
6 | }↵ | | 6 | }↵
|
7 | }↵ | | 7 | }↵
|
|
8 | /**↵ | | 8 | /**↵
|
9 | * A check attributes for TarFileSet.↵ | | 9 | * A check attributes for zipFileSet.↵
|
10 | * If there is a reference, and↵ | | 10 | * If there is a reference, and↵
|
11 | * it is a TarFileSet, the tar fileset attributes↵ | | 11 | * it is a ZipFileSet, the zip fileset attributes↵
|
12 | * cannot be used.↵ | | 12 | * cannot be used.↵
|
13 | */↵ | | 13 | */↵
|
14 | private void checkTarFileSetAttributesAllowed() {↵ | | 14 | private void checkZipFileSetAttributesAllowed() {↵
|
15 | if (getProject() == null↵ | | 15 | if (getProject() == null↵
|
16 | || (isReference()↵ | | 16 | || (isReference()↵
|
17 | && (getRefid().getReferencedObject(↵ | | 17 | && (getRefid().getReferencedObject(↵
|
18 | getProject())↵ | | 18 | getProject())↵
|
19 | instanceof TarFileSet))) {↵ | | 19 | instanceof ZipFileSet))) {↵
|
20 | checkAttributesAllowed(); | | 20 | checkAttributesAllowed();
|