From 753a6c60f47f3ac4f270005b65e9d6481de8eb68 Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:00:02 -0700 Subject: Adding maven and ant source trees Change-Id: I0a39b9add833a31b9c3f98d193983ae2f3a5a445 Signed-off-by: Ashlee Young --- .../apache-ant-1.9.6/manual/Tasks/condition.html | 110 +++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/condition.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/condition.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/condition.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/condition.html new file mode 100644 index 00000000..405f95e7 --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/condition.html @@ -0,0 +1,110 @@ + + + + + + +Condition Task + + + + +

Condition

+

Description

+

Sets a property if a certain condition holds true - this is a +generalization of Available and Uptodate.

+

If the condition holds true, the property value is set to true by +default; otherwise, the property is not set. You can set the value to +something other than the default by specifying the value +attribute.

+

Conditions are specified as nested elements, +you must specify exactly one condition.

+

Parameters

+ + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
propertyThe name of the property to set.Yes
valueThe value to set the property to. Defaults to + "true".No
elseThe value to set the property to if the condition + evaluates to false. By default the property will remain unset. + Since Apache Ant 1.6.3 + No
+

Parameters specified as nested elements

+

All conditions to test are specified as nested elements, for a +complete list see here.

+ +

Examples

+
+  <condition property="javamail.complete">
+    <and>
+      <available classname="javax.activation.DataHandler"/>
+      <available classname="javax.mail.Transport"/>
+    </and>
+  </condition>
+
+

sets the property javamail.complete if both the +JavaBeans Activation Framework and JavaMail are available in the +classpath.

+ +
+  <condition property="isMacOsButNotMacOsX">
+    <and>
+      <os family="mac"/>
+
+      <not>
+        <os family="unix"/>
+
+      </not>
+    </and>
+  </condition>
+
+

sets the property isMacOsButNotMacOsX if the current +operating system is MacOS, but not MacOS X - which Ant considers to be +in the Unix family as well.

+ +
+  <condition property="isSunOSonSparc">
+    <os name="SunOS" arch="sparc"/>
+
+  </condition>
+
+

sets the property isSunOSonSparc if the current +operating system is SunOS and if it is running on a sparc architecture.

+ + + + + -- cgit 1.2.3-korg