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