Browse Source

EJBJar now reports errors when weblogic ejbc fails rather than continuing

PR:	1254


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269257 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
9fe3d6599c
1 changed files with 4 additions and 6 deletions
  1. +4
    -6
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java

+ 4
- 6
src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java View File

@@ -409,19 +409,17 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
classpath = getCombinedClasspath(); classpath = getCombinedClasspath();
} }
javaTask.setFork(true);
if (classpath != null) { if (classpath != null) {
javaTask.setClasspath(classpath); javaTask.setClasspath(classpath);
javaTask.setFork(true);
} }
else {
javaTask.setFork(true);
}


log("Calling " + ejbcClassName + " for " + sourceJar.toString(), log("Calling " + ejbcClassName + " for " + sourceJar.toString(),
Project.MSG_VERBOSE); Project.MSG_VERBOSE);


javaTask.execute();
if (javaTask.executeJava() != 0) {
throw new BuildException("Ejbc reported an error");
}
} }
catch (Exception e) { catch (Exception e) {
// Have to catch this because of the semantics of calling main() // Have to catch this because of the semantics of calling main()


Loading…
Cancel
Save