Set expectedOutputJarContents = new HashSet();
// From indir1
- expectedOutputJarContents.add("META-INF/MANIFEST.MF");
- expectedOutputJarContents.add("META-INF/test.xml");
- expectedOutputJarContents.add("test/test.props");
+// If we don't copy resources, these next three files won't make it.
+// expectedOutputJarContents.add("META-INF/MANIFEST.MF");
+// expectedOutputJarContents.add("META-INF/test.xml");
+// expectedOutputJarContents.add("test/test.props");
expectedOutputJarContents.add("test/TestProperties.class");
// From src
expectedOutputJarContents.add("Main.class");
Set expectedBindirContents = new HashSet();
// From indir1
- expectedBindirContents.add("META-INF/MANIFEST.MF");
- expectedBindirContents.add("META-INF/test.xml");
- expectedBindirContents.add("test/test.props");
+// If we don't copy resources, these next three files won't make it
+// expectedBindirContents.add("META-INF/MANIFEST.MF");
+// expectedBindirContents.add("META-INF/test.xml");
+// expectedBindirContents.add("test/test.props");
expectedBindirContents.add("test/TestProperties.class");
// From src
expectedBindirContents.add("Main.class");
Set expectedOutputJarContents = new HashSet();
// From indir1
expectedOutputJarContents.add("example/HelloWorld.class");
- expectedOutputJarContents.add("example/HelloWorld.java");
+
+// If we don't copy resources, this file won't make it
+// expectedOutputJarContents.add("example/HelloWorld.java");
// From src
expectedOutputJarContents.add("Aspect.class");
// From indir1
expectedBindirContents.add("example/HelloWorld.class");
- expectedBindirContents.add("example/HelloWorld.java");
+
+// If we don't copy resources, this file won't make it
+// expectedBindirContents.add("example/HelloWorld.java");
// From injar.jar
expectedBindirContents.add("props/resources.properties");
// From src
}
+ // The ANT copy task should be used to copy resources across.
+ private final static boolean CopyResourcesFromInpathDirectoriesToOutput=false;
+
/**
* Add any .class files in the directory to the outdir. Anything other than .class files in
* the directory (or its subdirectories) are considered resources and are also copied.
// System.err.println("BCELWeaver: processing class from input directory "+classFile);
this.addClassFile(classFile);
} else {
+ if (CopyResourcesFromInpathDirectoriesToOutput) {
// System.err.println("BCELWeaver: processing resource from input directory "+filename);
addResource(filename,classFile);
+ }
}
fis.close();
}