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 --- .../manual/Tasks/whichresource.html | 120 +++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 framework/src/ant/apache-ant-1.9.6/manual/Tasks/whichresource.html (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/whichresource.html') diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/whichresource.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/whichresource.html new file mode 100644 index 00000000..5b2b54ea --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/whichresource.html @@ -0,0 +1,120 @@ + + + + + + + Whichresource Task + + + + + + +

Whichresource

+

Description

+

+ Find a class or resource on the supplied classpath, or the + system classpath if none is supplied. + The named property is set if the item can be found. + For example: +

+
+  <whichresource resource="/log4j.properties" property="log4j.url" >
+
+

Parameters

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
AttributeDescriptionRequired
property + The property to fill with the URL of the resource of class. + Yes
class + The name of the class to look for. + Exactly one of these.
resource + The name of the resource to look for. +
classpath + The classpath to use when looking up class + or resource. + No
classpathref + The classpath to use, given as a + reference + to a path defined elsewhere. + Since Apache Ant 1.7.1. + No
+

Parameters specified as nested elements

+

classpath

+

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

+

Examples

+

+ The following shows using a classpath reference. +

+
+  <path id="bsf.classpath">
+    <fileset dir="${user.home}/lang/bsf" includes="*.jar"/>
+  </path>
+  <whichresource property="bsf.class.location"
+                 class="org.apache.bsf.BSFManager"
+                 classpathref="bsf.classpath"/>
+  <echo>${bsf.class.location}</echo>
+
+

+ The following shows using a nested classpath. +

+
+  <whichresource
+    property="ant-contrib.antlib.location"
+    resource="net/sf/antcontrib/antlib.xml">
+    <classpath>
+      <path path="f:/testing/ant-contrib/target/ant-contrib.jar"/>
+    </classpath>
+  </whichresource>
+  <echo>${ant-contrib.antlib.location}</echo>
+
+ + -- cgit 1.2.3-korg