Browse Source

Fix for when build.compiler is not defined (D'Oh)

Submitted by:	Mark Crook <markc@cortexebusiness.com.au>


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

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

@@ -427,7 +427,7 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
// try to use the compiler specified by build.compiler. Right now we are just going
// to allow Jikes
String buildCompiler = getTask().getProject().getProperty("build.compiler");
if (buildCompiler.equals("jikes")) {
if (buildCompiler != null && buildCompiler.equals("jikes")) {
javaTask.createArg().setValue("-compiler");
javaTask.createArg().setValue("jikes");
}


Loading…
Cancel
Save