Browse Source

Fix for NPE when getClasspath is called before setRmic

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268855 13f79535-47bb-0310-9956-ffa450edef68
master
Sam Ruby 24 years ago
parent
commit
bc27fce2a4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/main/org/apache/tools/ant/taskdefs/Rmic.java

+ 3
- 3
src/main/org/apache/tools/ant/taskdefs/Rmic.java View File

@@ -366,6 +366,9 @@ public class Rmic extends MatchingTask {

String compiler = project.getProperty("build.rmic");
RmicAdapter adapter = RmicAdapterFactory.getRmic(compiler, this );
// now we need to populate the compiler adapter
adapter.setRmic( this );

Path classpath = adapter.getClasspath();
loader = new AntClassLoader(project, classpath);
@@ -388,9 +391,6 @@ public class Rmic extends MatchingTask {
log("RMI Compiling " + fileCount +
" class"+ (fileCount > 1 ? "es" : "")+" to " + baseDir,
Project.MSG_INFO);
// now we need to populate the compiler adapter
adapter.setRmic( this );

// finally, lets execute the compiler!!
if (!adapter.execute()) {


Loading…
Cancel
Save