Browse Source

Next try for PR: 12844 (Stochern im Nebel)

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@273383 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 22 years ago
parent
commit
6650efb105
1 changed files with 7 additions and 11 deletions
  1. +7
    -11
      src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java

+ 7
- 11
src/main/org/apache/tools/ant/taskdefs/optional/jsp/WLJspc.java View File

@@ -191,7 +191,8 @@ public class WLJspc extends MatchingTask {
// 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 @@ public class WLJspc extends MatchingTask {
}
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);
}
}
}


Loading…
Cancel
Save