incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1360986 - in /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core: EasyAntEngine.java EasyAntMain.java
Date Thu, 12 Jul 2012 22:17:35 GMT
Author: jlboudart
Date: Thu Jul 12 22:17:35 2012
New Revision: 1360986

URL: http://svn.apache.org/viewvc?rev=1360986&view=rev
Log:
Fix performance issue when running from command line initProject and configureProject method
was excuted twice

Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntEngine.java
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntMain.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntEngine.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntEngine.java?rev=1360986&r1=1360985&r2=1360986&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntEngine.java
(original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntEngine.java
Thu Jul 12 22:17:35 2012
@@ -604,7 +604,7 @@ public class EasyAntEngine {
         
     }
 
-    private void doBuild(final Project project) throws Error {
+    public void doBuild(final Project project) throws Error {
         project.fireBuildStarted();
 
         Throwable error = null;

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntMain.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntMain.java?rev=1360986&r1=1360985&r2=1360986&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntMain.java (original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/core/EasyAntMain.java Thu
Jul 12 22:17:35 2012
@@ -40,7 +40,6 @@ import org.apache.commons.cli.Option;
 import org.apache.commons.cli.OptionBuilder;
 import org.apache.commons.cli.Options;
 import org.apache.commons.cli.ParseException;
-import org.apache.easyant.core.ant.Phase;
 import org.apache.easyant.core.factory.EasyantConfigurationFactory;
 import org.apache.easyant.man.Describe;
 import org.apache.easyant.man.EasyantOption;
@@ -475,7 +474,7 @@ public class EasyAntMain implements AntM
                     }
                 }
             }
-            eaEngine.doBuild();
+            eaEngine.doBuild(project);
         }
 
     }



Mime
View raw message