|
|
@@ -21,15 +21,17 @@ import java.io.FileInputStream; |
|
|
|
import java.io.FileOutputStream; |
|
|
|
import java.io.IOException; |
|
|
|
import java.io.InputStream; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Enumeration; |
|
|
|
import java.util.HashSet; |
|
|
|
import java.util.Hashtable; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Set; |
|
|
|
import java.util.jar.JarOutputStream; |
|
|
|
import java.util.jar.Manifest; |
|
|
|
import java.util.zip.ZipEntry; |
|
|
|
|
|
|
|
import javax.xml.parsers.SAXParser; |
|
|
|
|
|
|
|
import org.apache.tools.ant.BuildException; |
|
|
|
import org.apache.tools.ant.DirectoryScanner; |
|
|
|
import org.apache.tools.ant.Location; |
|
|
@@ -108,9 +110,9 @@ public class GenericDeploymentTool implements EJBDeploymentTool { |
|
|
|
private ClassLoader classpathLoader = null; |
|
|
|
|
|
|
|
/** |
|
|
|
* List of files have been loaded into the EJB jar |
|
|
|
* Set of files have been loaded into the EJB jar |
|
|
|
*/ |
|
|
|
private List addedfiles; |
|
|
|
private Set addedfiles; |
|
|
|
|
|
|
|
/** |
|
|
|
* Handler used to parse the EJB XML descriptor |
|
|
@@ -736,8 +738,12 @@ public class GenericDeploymentTool implements EJBDeploymentTool { |
|
|
|
|
|
|
|
JarOutputStream jarStream = null; |
|
|
|
try { |
|
|
|
// clean the addedfiles Vector |
|
|
|
addedfiles = new ArrayList(); |
|
|
|
// clean the addedfiles set |
|
|
|
if (addedfiles == null) { |
|
|
|
addedfiles = new HashSet(); |
|
|
|
} else { |
|
|
|
addedfiles.clear(); |
|
|
|
} |
|
|
|
|
|
|
|
/* If the jarfile already exists then whack it and recreate it. |
|
|
|
* Should probably think of a more elegant way to handle this |
|
|
|