diff --git a/src/main/org/apache/tools/ant/taskdefs/Rmic.java b/src/main/org/apache/tools/ant/taskdefs/Rmic.java index d01efad53..2759e2aeb 100644 --- a/src/main/org/apache/tools/ant/taskdefs/Rmic.java +++ b/src/main/org/apache/tools/ant/taskdefs/Rmic.java @@ -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()) {