|
|
|
@@ -5,7 +5,7 @@ |
|
|
|
* version 1.1, a copy of which has been included with this distribution in |
|
|
|
* the LICENSE.txt file. |
|
|
|
*/ |
|
|
|
package org.apache.tools.ant.taskdefs.archive; |
|
|
|
package org.apache.tools.todo.taskdefs.archive; |
|
|
|
|
|
|
|
import java.io.ByteArrayInputStream; |
|
|
|
import java.io.ByteArrayOutputStream; |
|
|
|
@@ -26,13 +26,14 @@ import org.apache.avalon.excalibur.io.IOUtil; |
|
|
|
import org.apache.myrmidon.api.TaskException; |
|
|
|
import org.apache.myrmidon.api.AbstractTask; |
|
|
|
import org.apache.myrmidon.api.TaskContext; |
|
|
|
import org.apache.tools.ant.taskdefs.MatchingTask; |
|
|
|
import org.apache.tools.ant.types.DirectoryScanner; |
|
|
|
import org.apache.tools.ant.types.FileScanner; |
|
|
|
import org.apache.tools.ant.types.FileSet; |
|
|
|
import org.apache.tools.ant.types.ScannerUtil; |
|
|
|
import org.apache.tools.ant.types.SourceFileScanner; |
|
|
|
import org.apache.tools.ant.util.mappers.MergingMapper; |
|
|
|
import org.apache.tools.todo.taskdefs.MatchingTask; |
|
|
|
import org.apache.tools.todo.taskdefs.archive.WhenEmpty; |
|
|
|
import org.apache.tools.todo.types.DirectoryScanner; |
|
|
|
import org.apache.tools.todo.types.FileScanner; |
|
|
|
import org.apache.tools.todo.types.FileSet; |
|
|
|
import org.apache.tools.todo.types.ScannerUtil; |
|
|
|
import org.apache.tools.todo.types.SourceFileScanner; |
|
|
|
import org.apache.tools.todo.util.mappers.MergingMapper; |
|
|
|
|
|
|
|
/** |
|
|
|
* Create a ZIP archive. |
|
|
|
@@ -436,7 +437,7 @@ public class Zip |
|
|
|
* @param zipFile intended archive file (may or may not exist) |
|
|
|
* @return true if nothing need be done (may have done something already); |
|
|
|
* false if archive creation should proceed |
|
|
|
* @exception TaskException if it likes |
|
|
|
* @exception org.apache.myrmidon.api.TaskException if it likes |
|
|
|
*/ |
|
|
|
protected boolean isUpToDate( FileScanner[] scanners, File zipFile ) |
|
|
|
throws TaskException |
|
|
|
@@ -503,7 +504,7 @@ public class Zip |
|
|
|
* @param zOut The feature to be added to the Files attribute |
|
|
|
* @param prefix The feature to be added to the Files attribute |
|
|
|
* @param fullpath The feature to be added to the Files attribute |
|
|
|
* @exception IOException Description of Exception |
|
|
|
* @exception java.io.IOException Description of Exception |
|
|
|
*/ |
|
|
|
protected void addFiles( FileScanner scanner, ZipOutputStream zOut, |
|
|
|
String prefix, String fullpath ) |
|
|
|
@@ -574,7 +575,7 @@ public class Zip |
|
|
|
* |
|
|
|
* @param filesets The feature to be added to the Files attribute |
|
|
|
* @param zOut The feature to be added to the Files attribute |
|
|
|
* @exception IOException Description of Exception |
|
|
|
* @exception java.io.IOException Description of Exception |
|
|
|
*/ |
|
|
|
protected void addFiles( ArrayList filesets, ZipOutputStream zOut ) |
|
|
|
throws IOException, TaskException |
|
|
|
@@ -640,7 +641,7 @@ public class Zip |
|
|
|
* @param entry The feature to be added to the ParentDirs attribute |
|
|
|
* @param zOut The feature to be added to the ParentDirs attribute |
|
|
|
* @param prefix The feature to be added to the ParentDirs attribute |
|
|
|
* @exception IOException Description of Exception |
|
|
|
* @exception java.io.IOException Description of Exception |
|
|
|
*/ |
|
|
|
protected void addParentDirs( File baseDir, String entry, |
|
|
|
ZipOutputStream zOut, String prefix ) |