You are viewing a plain text version of this content. The canonical link for it is here.
Posted to easyant-commits@incubator.apache.org by jl...@apache.org on 2012/08/14 18:40:02 UTC
svn commit: r1373014 -
/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java
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()) {