incubator-easyant-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jlboud...@apache.org
Subject svn commit: r1393662 - /incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ParameterTask.java
Date Wed, 03 Oct 2012 18:45:18 GMT
Author: jlboudart
Date: Wed Oct  3 18:45:17 2012
New Revision: 1393662

URL: http://svn.apache.org/viewvc?rev=1393662&view=rev
Log:
mend

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

Modified: incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ParameterTask.java
URL: http://svn.apache.org/viewvc/incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ParameterTask.java?rev=1393662&r1=1393661&r2=1393662&view=diff
==============================================================================
--- incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ParameterTask.java
(original)
+++ incubator/easyant/core/trunk/src/main/java/org/apache/easyant/tasks/ParameterTask.java
Wed Oct  3 18:45:17 2012
@@ -40,6 +40,7 @@ public class ParameterTask extends Task 
     private String description;
     private String defaultValue;
     private boolean required;
+    private String phase;
 
     /**
      * Get a description to the property / path
@@ -175,13 +176,15 @@ public class ParameterTask extends Task 
             } else if (!(p instanceof Path)) {
                 throw new BuildException("reference '" + path + "' must be a path");
             }
+        } else if (phase != null) {
+            // to be removed
         } else {
             throw new BuildException("at least one of these attributes is required: property,
path");
         }
     }
 
     // FIXME : remove this method after 0.9 release
-    public void setPhase() {
-
+    public void setPhase(String phase) {
+        this.phase = phase;
     }
 }



Mime
View raw message