diff options
author | Ashlee Young <ashlee@onosfw.com> | 2015-10-23 10:00:02 -0700 |
---|---|---|
committer | Ashlee Young <ashlee@onosfw.com> | 2015-10-23 10:00:02 -0700 |
commit | 753a6c60f47f3ac4f270005b65e9d6481de8eb68 (patch) | |
tree | 3d0a1ae3b4d994550f6614b417b991eee3eb8911 /framework/src/ant/apache-ant-1.9.6/manual/Tasks/jarlib-resolve.html | |
parent | c62d20eb3b4620c06d833be06f50b2600d96dd42 (diff) |
Adding maven and ant source trees
Change-Id: I0a39b9add833a31b9c3f98d193983ae2f3a5a445
Signed-off-by: Ashlee Young <ashlee@onosfw.com>
Diffstat (limited to 'framework/src/ant/apache-ant-1.9.6/manual/Tasks/jarlib-resolve.html')
-rw-r--r-- | framework/src/ant/apache-ant-1.9.6/manual/Tasks/jarlib-resolve.html | 211 |
1 files changed, 211 insertions, 0 deletions
diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/jarlib-resolve.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/jarlib-resolve.html new file mode 100644 index 00000000..2ef4f87b --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/jarlib-resolve.html @@ -0,0 +1,211 @@ +<!-- + Licensed to the Apache Software Foundation (ASF) under one or more + contributor license agreements. See the NOTICE file distributed with + this work for additional information regarding copyright ownership. + The ASF licenses this file to You under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with + the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<html> + +<head> +<meta http-equiv="Content-Language" content="en-us"> +<link rel="stylesheet" type="text/css" href="../stylesheets/style.css"> +<title>jarlib-resolve Task</title> +</head> + +<body> + +<h2><a name="jarlib-resolve">jarlib-resolve</a></h2> +<h3>Description</h3> +<p>Try to locate a jar to satisfy an extension and place + location of jar into property. The task allows you to + add a number of resolvers that are capable of locating a + library for a specific extension. Each resolver will be attempted + in specified order until library is found or no resolvers are left. + If no resolvers are left and failOnError is true then a BuildException + will be thrown.</p> + +<p>Note that this task +works with extensions as defined by the "Optional Package" specification. + For more information about optional packages, see the document +<em>Optional Package Versioning</em> in the documentation bundle for your +Java2 Standard Edition package, in file +<code>guide/extensions/versioning.html</code> or the online +<a target="_blank" href="http://docs.oracle.com/javase/7/docs/technotes/guides/extensions/versioning.html"> +Extension and ExtensionSet documentation</a> for further details</p> + +<h3>Parameters</h3> +<table border="1" cellpadding="2" cellspacing="0"> + <tr> + <td valign="top"><b>Attribute</b></td> + <td valign="top"><b>Description</b></td> + <td align="center" valign="top"><b>Required</b></td> + </tr> + <tr> + <td valign="top">property</td> + <td valign="top">The name of property to set to library location.</td> + <td valign="top" align="center">Yes</td> + </tr> + <tr> + <td valign="top">failOnError</td> + <td valign="top">True if failure to locate library should result in build exception.</td> + <td valign="top" align="center">No, defaults to true.</td> + </tr> + <tr> + <td valign="top">checkExtension</td> + <td valign="top">True if libraries returned by nested resolvers should be checked to see if + they supply extension.</td> + <td valign="top" align="center">No, defaults to true.</td> + </tr> +</table> +<h3>Parameters specified as nested elements</h3> + +<h4>extension</h4> + <p><a href="../Types/extension.html">Extension</a> the extension + to resolve. Must be present</p> + +<h4>location</h4> + <p>The location sub element allows you to look for a library in a + location relative to project directory.</p> +<table border="1" cellpadding="2" cellspacing="0"> + <tr> + <td valign="top"><b>Attribute</b></td> + <td valign="top"><b>Description</b></td> + <td align="center" valign="top"><b>Required</b></td> + </tr> + <tr> + <td valign="top">location</td> + <td valign="top">The pathname of library.</td> + <td valign="top" align="center">Yes</td> + </tr> +</table> + +<h4>url</h4> + <p>The url resolver allows you to download a library from a URL to a + local file.</p> +<table border="1" cellpadding="2" cellspacing="0"> + <tr> + <td valign="top"><b>Attribute</b></td> + <td valign="top"><b>Description</b></td> + <td align="center" valign="top"><b>Required</b></td> + </tr> + <tr> + <td valign="top">url</td> + <td valign="top">The URL to download.</td> + <td valign="top" align="center">Yes</td> + </tr> + <tr> + <td valign="top">destfile</td> + <td valign="top">The file to download URL into.</td> + <td valign="top" align="center">No, But one of destfile or + destdir must be present</td> + </tr> + <tr> + <td valign="top">destdir</td> + <td valign="top">The directory in which to place downloaded file.</td> + <td valign="top" align="center">No, But one of destfile or + destdir must be present</td> + </tr> +</table> + +<h4>ant</h4> + <p>The ant resolver allows you to run an Apache Ant build file to generate a library.</p> +<table border="1" cellpadding="2" cellspacing="0"> + <tr> + <td valign="top"><b>Attribute</b></td> + <td valign="top"><b>Description</b></td> + <td align="center" valign="top"><b>Required</b></td> + </tr> + <tr> + <td valign="top">antfile</td> + <td valign="top">The build file.</td> + <td valign="top" align="center">Yes</td> + </tr> + <tr> + <td valign="top">destfile</td> + <td valign="top">The file that the ant build creates.</td> + <td valign="top" align="center">Yes</td> + </tr> + <tr> + <td valign="top">target</td> + <td valign="top">The target to run in build file.</td> + <td valign="top" align="center">No</td> + </tr> +</table> + +<h3>Examples</h3> +<p><b>Resolve Extension to file.</b> If file does not exist or file + does not implement extension then throw an exception.</p> +<pre> + <extension id="dve.ext" + extensionName="org.realityforge.dve" + specificationVersion="1.2" + specificationVendor="Peter Donald"/> + + <jarlib-resolve property="dve.library"> + <extension refid="dve.ext"/> + <location location="/opt/jars/dve.jar"/> + </jarlib-resolve> +</pre> + +<p><b>Resolve Extension to url.</b> If url does not exist or can not write + to destfile or files does not implement extension then throw an exception.</p> +<pre> + <extension id="dve.ext" + extensionName="org.realityforge.dve" + specificationVersion="1.2" + specificationVendor="Peter Donald"/> + + <jarlib-resolve property="dve.library"> + <extension refid="dve.ext"/> + <url url="http://www.realityforge.net/jars/dve.jar" destfile="lib/dve.jar"/> + </jarlib-resolve> +</pre> + +<p><b>Resolve Extension to file produce by ant build.</b> If file does not get produced + or ant file is missing or build fails then throw an exception (Note does not check + that library implements extension).</p> +<pre> + <extension id="dve.ext" + extensionName="org.realityforge.dve" + specificationVersion="1.2" + specificationVendor="Peter Donald"/> + + <jarlib-resolve property="dve.library" checkExtension="false"> + <extension refid="dve.ext"/> + <ant antfile="../dve/build.xml" target="main" destfile="lib/dve.jar"/> + </jarlib-resolve> +</pre> + +<p><b>Resolve Extension via multiple methods.</b> First check local file to see if it implements + extension. If it does not then try to build it from source in parallel directory. If that + fails then finally try to download it from a website. If all steps fail then throw a build + exception.</p> +<pre> + <extension id="dve.ext" + extensionName="org.realityforge.dve" + specificationVersion="1.2" + specificationVendor="Peter Donald"/> + + <jarlib-resolve property="dve.library"> + <extension refid="dve.ext"/> + <location location="/opt/jars/dve.jar"/> + <ant antfile="../dve/build.xml" target="main" destfile="lib/dve.jar"/> + <url url="http://www.realityforge.net/jars/dve.jar" destfile="lib/dve.jar"/> + </jarlib-resolve> +</pre> + + + +</body> +</html> + |