Browse Source

clear compilelist in rmic before execute, not afterwards - just like javac does. PR 21089

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@805354 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
93f679b73b
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      src/main/org/apache/tools/ant/taskdefs/Rmic.java

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

@@ -567,6 +567,8 @@ public class Rmic extends MatchingTask {
* if there's a problem with baseDir or RMIC * if there's a problem with baseDir or RMIC
*/ */
public void execute() throws BuildException { public void execute() throws BuildException {
compileList.clear();

File outputDir = getOutputDir(); File outputDir = getOutputDir();
if (outputDir == null) { if (outputDir == null) {
throw new BuildException(ERROR_BASE_NOT_SET, getLocation()); throw new BuildException(ERROR_BASE_NOT_SET, getLocation());
@@ -589,7 +591,6 @@ public class Rmic extends MatchingTask {
Path classpath = adapter.getClasspath(); Path classpath = adapter.getClasspath();
loader = getProject().createClassLoader(classpath); loader = getProject().createClassLoader(classpath);


try {
// scan base dirs to build up compile lists only if a // scan base dirs to build up compile lists only if a
// specific classname is not given // specific classname is not given
if (classname == null) { if (classname == null) {
@@ -642,9 +643,6 @@ public class Rmic extends MatchingTask {
} }
} }
} }
} finally {
compileList.removeAllElements();
}
} }


/** /**


Loading…
Cancel
Save