From 89aa7775a83989345756349f99bd3556780eafee Mon Sep 17 00:00:00 2001 From: Peter Donald Date: Wed, 17 Oct 2001 09:33:23 +0000 Subject: [PATCH] Added some javadocs for OS condition. Submitted by: "Jeff Tulley" git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@269798 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tools/ant/taskdefs/condition/Os.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/main/org/apache/tools/ant/taskdefs/condition/Os.java b/src/main/org/apache/tools/ant/taskdefs/condition/Os.java index 616d5790a..f8feeb16e 100644 --- a/src/main/org/apache/tools/ant/taskdefs/condition/Os.java +++ b/src/main/org/apache/tools/ant/taskdefs/condition/Os.java @@ -65,8 +65,24 @@ import org.apache.tools.ant.BuildException; public class Os implements Condition { private String family; + /** + * Sets the desired OS family type + * + * @param f The OS family type desired
+ * Possible values:
+ * + */ public void setFamily(String f) {family = f.toLowerCase();} + /** + * Determines if the OS on which Ant is executing matches the type of + * that set in setFamily. + * @see Os#setFamily(String) + */ public boolean eval() throws BuildException { String osName = System.getProperty("os.name").toLowerCase(); String pathSep = System.getProperty("path.separator");