From ced7274b4e0f7d117baab71bad656ac23f6c69a8 Mon Sep 17 00:00:00 2001 From: Peter Reilly Date: Thu, 28 Dec 2006 16:24:38 +0000 Subject: [PATCH] stylecheck git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@490753 13f79535-47bb-0310-9956-ffa450edef68 --- .../ant/taskdefs/condition/AntVersion.java | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java b/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java index c97335a7f..5c8ee6f4c 100644 --- a/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java +++ b/src/main/org/apache/tools/ant/taskdefs/condition/AntVersion.java @@ -32,11 +32,9 @@ public class AntVersion extends Task implements Condition { 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 @@ public class AntVersion extends Task implements Condition { } 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 @@ public class AntVersion extends Task implements Condition { 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; }