bodewig 2002/09/27 03:57:35
Modified: src/main/org/apache/tools/ant/taskdefs/optional/jsp
WLJspc.java
Log:
Next try for PR: 12844 (Stochern im Nebel)
Revision Changes Path
1.14 +7 -11
jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java
Index: WLJspc.java
===================================================================
RCS file:
/home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- WLJspc.java 25 Sep 2002 14:25:25 -0000 1.13
+++ WLJspc.java 27 Sep 2002 10:57:35 -0000 1.14
@@ -191,7 +191,8 @@
// All this to get package according to weblogic standards
// Can be written better... this is too hacky!
// Careful.. similar code in scanDir , but slightly different!!
- jspFile = new File((String) filesToDo.elementAt(i));
+ String filename = (String) filesToDo.elementAt(i);
+ jspFile = new File(filename);
args[j] = "-package";
parents = jspFile.getParent();
if ((parents != null) && (!("").equals(parents))) {
@@ -202,21 +203,16 @@
}
- args[j + 2] = sourceDirectory + File.separator
- + (String) filesToDo.elementAt(i);
- arg = "";
+ args[j + 2] = sourceDirectory + File.separator + filename;
+ helperTask.clearArgs();
- for (int x = 0; x < 12; x++) {
- arg += " " + args[x];
+ for (int x = 0; x < j + 3; x++) {
+ helperTask.createArg().setValue(args[x]);
}
- System.out.println("arg = " + arg);
-
- helperTask.clearArgs();
- helperTask.setArgs(arg);
helperTask.setClasspath(compileClasspath);
if (helperTask.executeJava() != 0) {
- log(files[i] + " failed to compile", Project.MSG_WARN);
+ log(filename + " failed to compile", Project.MSG_WARN);
}
}
}
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>