Hi,
I am using Ant 1.3 with WebLogic 4.5.1 and JDK 1.1.7B on Windows NT 4.0SP6.
The ejbc task did not work because the EjbcHelper class used the
java.util.Vector.add() method, which is not available in JDK 1.1. I have
included a patch to jakarta-ant-
1.3/src/main/org/apache/tools/ant/taskdefs/optional/ejb/EjbcHelper.java at the
end of this message that allows the ejbc task to be used with JDK 1.1 - hope
it's useful.
I had problems recompiling ant - the optional.jar produced by 'build' did not
include all
of the class files necessary, in the end I took the binary distribution of
jakarta-ant-1.3-optional.jar and just replaced the EjbcHelper.class file in
it. Has anyone got any idea why this is happening or how to fix it?
Francis
--- EjbcHelper.java 2001/04/20 17:29:35 1.1
+++ EjbcHelper.java 2001/04/20 17:29:52
@@ -131,14 +131,14 @@
private String[] getCommandLine(boolean debug, File descriptorFile) {
Vector v = new Vector();
if (!debug) {
- v.add("-noexit");
+ v.addElement("-noexit");
}
if (keepGenerated) {
- v.add("-keepgenerated");
+ v.addElement("-keepgenerated");
}
- v.add("-d");
- v.add(generatedFilesDirectory.getPath());
- v.add(descriptorFile.getPath());
+ v.addElement("-d");
+ v.addElement(generatedFilesDirectory.getPath());
+ v.addElement(descriptorFile.getPath());
String[] args = new String[v.size()];
v.copyInto(args);
--
Get your [EMAIL PROTECTED] email for FREE at http://Nameplanet.com/?su
--
Get your [EMAIL PROTECTED] email for FREE at http://Nameplanet.com/?su