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/manifestclasspath.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/manifestclasspath.html')
-rw-r--r-- | framework/src/ant/apache-ant-1.9.6/manual/Tasks/manifestclasspath.html | 117 |
1 files changed, 117 insertions, 0 deletions
diff --git a/framework/src/ant/apache-ant-1.9.6/manual/Tasks/manifestclasspath.html b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/manifestclasspath.html new file mode 100644 index 00000000..2c193b8a --- /dev/null +++ b/framework/src/ant/apache-ant-1.9.6/manual/Tasks/manifestclasspath.html @@ -0,0 +1,117 @@ +<!-- + 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>ManifestClassPath Task</title> +</head> + +<body> + +<h2><a name="manifestclasspath">Manifestclasspath</a></h2> + +<h3>Description</h3> +<p>Converts a <a href="../using.html#path">Path</a> into a property +whose value is appropriate for a <a href="manifest.html">Manifest</a>'s +<code>Class-Path</code> attribute.</p> + +<p>This task is often used to work around command line limitations on Windows +when using very long class paths when launching an application. The long class +path normally specified on the command line is replaced by a single (possibly +empty) jar file which an in-manifest Class-Path attribute whose value lists +all the jar and zip files the class path should contain. The files referenced +from this attribute must be found relatively to the jar file itself, usually +in the same directory. The Java VM automically uses all file entries listed +in the Class-Path attributes of a jar to locate/load classes. Note though that +it silently ignores entries for which it cannot find any corresponding file.</p> + +<p>Note that the property value created may be longer than a manifest's maximum +72 characters per line, but will be properly wrapped as per the Jar +specification by the <code><manifest></code> element, where the +defined property is re-referenced.</p> + +<p>For this task to work properly the relative path from the file + given in the <code>jarfile</code> attribute to the elements of the + nested <code>classpath</code> must be the same as you expect them to + be when deploying the jar.</p> + +<p><em>since Apache Ant 1.7</em></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 the property to set. This property must + not already be set.</td> + <td valign="top" align="center">Yes</td> + </tr> + <tr> + <td valign="top">jarfile</td> + <td valign="top"> + the filename for the Jar which will contain the manifest that will + use the property this task will set. This file need not exist yet, + but its parent directory must exist. + </td> + <td valign="top" align="center">Yes</td> + </tr> + <tr> + <td valign="top">maxParentLevels</td> + <td valign="top"> + The maximum number of parent directories one is allowed to traverse + to navigate from the jar file to the path entry. Put differently, the + maximum number of .. which is allowed in the relative path from the + jar file to a given class path entry. Specify 0 to enforce a path + entry to be in the same directory (or one of its sub-directories) + as the jar file itself. Defaults to 2 levels.</td> + <td valign="top" align="center">No</td> + </tr> +</table> + +<h3>Parameters specified as nested elements</h3> +<h4>classpath</h4> +<p>A <a href="../using.html#path">Path-like</a> element, which can be +defined in-place, or refer to a path defined elsewhere using the +<code><classpath refid="<em>pathid</em>" /></code> syntax. +This classpath must not be empty, and is required.</p> + +<h3>Examples</h3> +<div id="example1"> + <blockquote><pre> + <manifestclasspath property="jar.classpath" + jarfile="build/acme.jar"> + <classpath refid="classpath" /> + </manifestclasspath> + </pre></blockquote> + <p>Assuming a path of id "classpath" was already defined, convert this + path relatively to the build/ directory that will contain acme.jar, which + can later be created with <code><jar></code> with a nested + <code><manifest></code> element that lists an + <code><attribute name="Class-Path" value="${jar.classpath}" /></code>. + </p> +</div> + + + +</body> +</html> |