|
|
@@ -1,7 +1,7 @@ |
|
|
|
/* |
|
|
|
* The Apache Software License, Version 1.1 |
|
|
|
* |
|
|
|
* Copyright (c) 2001 The Apache Software Foundation. All rights |
|
|
|
* Copyright (c) 2001-2002 The Apache Software Foundation. All rights |
|
|
|
* reserved. |
|
|
|
* |
|
|
|
* Redistribution and use in source and binary forms, with or without |
|
|
@@ -9,7 +9,7 @@ |
|
|
|
* are met: |
|
|
|
* |
|
|
|
* 1. Redistributions of source code must retain the above copyright |
|
|
|
* notice, this list of conditions and the following disclaimer. |
|
|
|
* notice, this list of conditions and the following disclaimer. |
|
|
|
* |
|
|
|
* 2. Redistributions in binary form must reproduce the above copyright |
|
|
|
* notice, this list of conditions and the following disclaimer in |
|
|
@@ -17,15 +17,15 @@ |
|
|
|
* distribution. |
|
|
|
* |
|
|
|
* 3. The end-user documentation included with the redistribution, if |
|
|
|
* any, must include the following acknowlegement: |
|
|
|
* "This product includes software developed by the |
|
|
|
* any, must include the following acknowlegement: |
|
|
|
* "This product includes software developed by the |
|
|
|
* Apache Software Foundation (http://www.apache.org/)." |
|
|
|
* Alternately, this acknowlegement may appear in the software itself, |
|
|
|
* if and wherever such third-party acknowlegements normally appear. |
|
|
|
* |
|
|
|
* 4. The names "The Jakarta Project", "Ant", and "Apache Software |
|
|
|
* Foundation" must not be used to endorse or promote products derived |
|
|
|
* from this software without prior written permission. For written |
|
|
|
* from this software without prior written permission. For written |
|
|
|
* permission, please contact apache@apache.org. |
|
|
|
* |
|
|
|
* 5. Products derived from this software may not be called "Apache" |
|
|
@@ -60,7 +60,7 @@ import org.apache.tools.ant.DirectoryScanner; |
|
|
|
import org.apache.tools.ant.Project; |
|
|
|
|
|
|
|
/** |
|
|
|
* A ZipFileSet is a FileSet with extra attributes useful in the context of |
|
|
|
* A ZipFileSet is a FileSet with extra attributes useful in the context of |
|
|
|
* Zip/Jar tasks. |
|
|
|
* |
|
|
|
* A ZipFileSet extends FileSets with the ability to extract a subset of the |
|
|
@@ -84,6 +84,14 @@ public class ZipFileSet extends FileSet { |
|
|
|
private String fullpath = ""; |
|
|
|
private boolean hasDir = false; |
|
|
|
|
|
|
|
public ZipFileSet() { |
|
|
|
super(); |
|
|
|
} |
|
|
|
|
|
|
|
protected ZipFileSet(FileSet fileset) { |
|
|
|
super(fileset); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* Set the directory for the fileset. Prevents both "dir" and "src" |
|
|
|
* from being specified. |
|
|
@@ -172,6 +180,6 @@ public class ZipFileSet extends FileSet { |
|
|
|
} else { |
|
|
|
return super.getDirectoryScanner(p); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |