Author: bodewig
Date: Tue Aug 18 10:55:36 2009
New Revision: 805354

URL: http://svn.apache.org/viewvc?rev=805354&view=rev
Log:
clear compilelist in rmic before execute, not afterwards - just like javac 
does.  PR 21089

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Rmic.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Rmic.java
URL: 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Rmic.java?rev=805354&r1=805353&r2=805354&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Rmic.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/Rmic.java Tue Aug 18 
10:55:36 2009
@@ -567,6 +567,8 @@
      * if there's a problem with baseDir or RMIC
      */
     public void execute() throws BuildException {
+        compileList.clear();
+
         File outputDir = getOutputDir();
         if (outputDir == null) {
             throw new BuildException(ERROR_BASE_NOT_SET, getLocation());
@@ -589,7 +591,6 @@
         Path classpath = adapter.getClasspath();
         loader = getProject().createClassLoader(classpath);
 
-        try {
             // scan base dirs to build up compile lists only if a
             // specific classname is not given
             if (classname == null) {
@@ -642,9 +643,6 @@
                     }
                 }
             }
-        } finally {
-            compileList.removeAllElements();
-        }
     }
 
     /**


Reply via email to