incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1373014 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java
Date Tue, 14 Aug 2012 18:40:02 GMT
Author: jlboudart
Date: Tue Aug 14 18:40:01 2012
New Revision: 1373014

URL: http://svn.apache.org/viewvc?rev=1373014&view=rev
Log:
Fixes NPE on GoOffline task when used from antunit easyant.file wasn't set

Modified:
    incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java?rev=1373014&r1=1373013&r2=1373014&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java (original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java Tue
Aug 14 18:40:01 2012
@@ -44,7 +44,7 @@ public class GoOffline extends AbstractE
 
     @Override
     public void execute() throws BuildException {
-        if (moduleIvy == null) {
+        if (moduleIvy == null && getProject().getProperty(EasyAntMagicNames.EASYANT_FILE)
!= null) {
             moduleIvy = new File(getProject().getProperty(EasyAntMagicNames.EASYANT_FILE));
         }
         if (moduleIvy == null || !moduleIvy.exists()) {
@@ -100,7 +100,9 @@ public class GoOffline extends AbstractE
 
     /**
      * Install easyant plugins and buildtypes used by a project
-     * @param easyAntReport {@link EasyAntReport} where plugin / buildtypes is described
+     * 
+     * @param easyAntReport
+     *            {@link EasyAntReport} where plugin / buildtypes is described
      */
     private void installBuildTypeAndPlugins(EasyAntReport easyAntReport) {
         for (ImportedModuleReport importedModule : easyAntReport.getImportedModuleReports())
{



Mime
View raw message