From b9421dc80af485591a9c50cc8921f912e0def11e Mon Sep 17 00:00:00 2001 From: Ashlee Young Date: Fri, 23 Oct 2015 10:05:40 -0700 Subject: Removing sources to replace with download links instead. Change-Id: Ie28789a725051aec0d1b04dd291b7690a7898668 Signed-off-by: Ashlee Young --- .../apache-ant-1.9.6/manual/Tasks/available.html | 160 --------------------- 1 file changed, 160 deletions(-) delete mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/available.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/available.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/available.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/available.html deleted file mode 100644 index 6e4a1718..00000000 --- a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/available.html +++ /dev/null @@ -1,160 +0,0 @@ - - - - - - -Available Task - - - - -

Available

-

Description

-

Sets a property if a resource is available at runtime. This resource can be a -file, a directory, a class in the classpath, or a JVM system resource.

-

If the resource is present, 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.

-

Normally, this task is used to set properties that are useful to avoid target -execution depending on system parameters.

-

Parameters

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AttributeDescriptionRequired
propertyThe name of the property to set.Yes
valueThe value to set the property to. Defaults to "true".No
classnameThe class to look for in the classpath.Yes
fileThe file to look for.
resourceThe resource to look for in the JVM.
classpathThe classpath to use when looking up classname or resource.No
filepathThe path to use when looking up file.No
classpathrefThe classpath to use, given as a reference to a path defined elsewhere.No
typeThe type of file to look for, either a directory (type="dir") or a file - (type="file"). If not set, the property will be set if the name specified in the file - attribute exists as either a file or a directory.No
ignoresystemclassesIgnore Ant's runtime classes, using only the specified - classpath. Only affects the "classname" attribute. Defaults to "false"No
searchparentsThis contains the behaviour of the "file" type. - If true, the available task will, when - searching for a file, search not only the directories specified but - will also search the parent directories of those - specified. - If false, only the directories specified will be searched. - Defaults to "false". - Since Ant 1.7 - No
-

Parameters specified as nested elements

-

classpath

-

Available's classpath attribute is a path-like structure and can also be set via a nested -<classpath> element.

-

filepath

-

Available's filepath attribute is a path-like structure and can also be set via a nested -<filepath> element.

-

Examples

-
-<available classname="org.whatever.Myclass" property="Myclass.present"/>
-
-

sets the Myclass.present property to the value "true" -if the class org.whatever.Myclass is found in Ant's classpath.

-
-<property name="jaxp.jar" value="./lib/jaxp11/jaxp.jar"/>
-<available file="${jaxp.jar}" property="jaxp.jar.present"/>
-
-

sets the jaxp.jar.present property to the value "true" -if the file ./lib/jaxp11/jaxp.jar is found.

-
-<available file="/usr/local/lib" type="dir"
-           property="local.lib.present"/>
-
-

sets the local.lib.present property to the value "true" -if the directory /usr/local/lib is found.

-
-...in project ...
-<property name="jaxp.jar" value="./lib/jaxp11/jaxp.jar"/>
-<path id="jaxp" location="${jaxp.jar}"/>
-...in target ...
-<available classname="javax.xml.transform.Transformer"
-           classpathref="jaxp" property="jaxp11.present"/>
-
-

sets the jaxp11.present property to the value "true" -if the class javax.xml.transform.Transformer is found in the classpath referenced by jaxp (in this case, ./lib/jaxp11/jaxp.jar). -

-
-<available property="have.extras" resource="extratasks.properties">
-  <classpath>
-    <pathelement location="/usr/local/ant/extra.jar" />
-  </classpath>
-</available>
-
-

sets the have.extras property to the value "true" -if the resource-file extratasks.properties is found. -

- - - - - -- cgit 1.2.3-korg