ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject svn commit: r490753 - /ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java
Date Thu, 28 Dec 2006 16:24:39 GMT
Author: peterreilly
Date: Thu Dec 28 08:24:38 2006
New Revision: 490753

URL: http://svn.apache.org/viewvc?view=rev&rev=490753
Log:
stylecheck

Modified:
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java?view=diff&rev=490753&r1=490752&r2=490753
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java Thu Dec
28 08:24:38 2006
@@ -32,11 +32,9 @@
     private String atLeast = null;
     private String exactly = null;
     private String propertyname = null;
-    
 
     /**
-     * Evalute the condition.
-     * @return true if the condition is true.
+     * Run as a task.
      * @throws BuildException if an error occurs.
      */
     public void execute() throws BuildException {
@@ -45,7 +43,12 @@
         }
         getProject().setNewProperty(propertyname, getVersion().toString());
     }
-    
+
+    /**
+     * Evalute the condition.
+     * @return true if the condition is true.
+     * @throws BuildException if an error occurs.
+     */
     public boolean eval() throws BuildException {
         validate();
         DeweyDecimal actual = getVersion();
@@ -134,10 +137,18 @@
         this.exactly = exactly;
     }
 
+    /**
+     * Get the name of the property to hold the ant version.
+     * @return the name of the property.
+     */
     public String getProperty() {
         return propertyname;
     }
 
+    /**
+     * Set the name of the property to hold the ant version.
+     * @param propertyname the name of the property.
+     */
     public void setProperty(String propertyname) {
         this.propertyname = propertyname;
     }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message