incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1372205 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/GoOffline.java
Date Sun, 12 Aug 2012 22:24:19 GMT
Author: jlboudart
Date: Sun Aug 12 22:24:18 2012
New Revision: 1372205

URL: http://svn.apache.org/viewvc?rev=1372205&view=rev
Log:
Enhance attribute handling of GoOffline task

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=1372205&r1=1372204&r2=1372205&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 Sun
Aug 12 22:24:18 2012
@@ -41,6 +41,17 @@ public class GoOffline extends AbstractE
         if (moduleIvy == null) {
             moduleIvy = new File(getProject().getProperty(EasyAntMagicNames.EASYANT_FILE));
         }
+        if (moduleIvy == null || !moduleIvy.exists()) {
+            throw new BuildException("Couldn't locate module ivy did you specified moduleivy
attribute ?");
+        }
+        
+        if (projectResolverName== null) {
+            throw new BuildException("projectResolverName is mandatory !");
+        }
+        
+        if (easyantResolverName== null) {
+            throw new BuildException("easyantResolverName is mandatory !");
+        }
 
         // 1 ask plugin service about current project
         PluginService pluginService = (PluginService) getProject().getReference(



Mime
View raw message