2006-09-11 04:19:00 +00:00
|
|
|
<!--
|
|
|
|
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.
|
|
|
|
-->
|
2018-01-22 09:10:26 +01:00
|
|
|
|
2005-08-23 14:46:53 +00:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Language" content="en-us">
|
2018-01-22 09:10:26 +01:00
|
|
|
<link rel="stylesheet" type="text/css" href="../stylesheets/style.css">
|
2015-06-10 08:48:33 +02:00
|
|
|
<title>Makeurl Task</title>
|
2005-08-23 14:46:53 +00:00
|
|
|
</head>
|
|
|
|
|
2018-01-22 09:10:26 +01:00
|
|
|
<body>
|
2005-08-23 14:46:53 +00:00
|
|
|
|
2018-01-22 09:10:26 +01:00
|
|
|
<h2>Makeurl Task</h2>
|
|
|
|
<h3 id="description">Description</h3>
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>This task takes one or more filenames and turns them into URLs, which it then assigns to a
|
|
|
|
property. Useful when setting up RMI or JNLP codebases, for example. Nested filesets are
|
|
|
|
supported; if present, these are turned into the URLs with the supplied <var>separator</var> between
|
|
|
|
them.</p>
|
2018-01-22 09:10:26 +01:00
|
|
|
<h3 id="attributes">Parameters</h3>
|
|
|
|
<table>
|
2018-03-04 15:46:16 +01:00
|
|
|
<tr class="attr">
|
2018-02-28 07:58:59 +01:00
|
|
|
<th>Attribute</th>
|
|
|
|
<th>Description</th>
|
|
|
|
<th>Type</th>
|
|
|
|
<th>Required</th>
|
2018-01-22 09:10:26 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>file</td>
|
|
|
|
<td>name of a file to be converted into a URL</td>
|
|
|
|
<td>File</td>
|
|
|
|
<td>No, if a nested fileset or path is supplied</td>
|
2018-01-22 09:10:26 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>property</td>
|
|
|
|
<td>name of a property to set to the URL</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>Yes</td>
|
2018-01-22 09:10:26 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>separator</td>
|
|
|
|
<td>separator for the multi-URL option</td>
|
|
|
|
<td>String</td>
|
|
|
|
<td>No; default is space</td>
|
2018-01-22 09:10:26 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2018-02-28 07:58:59 +01:00
|
|
|
<td>validate</td>
|
|
|
|
<td>validate that every named file exists</td>
|
|
|
|
<td>boolean</td>
|
|
|
|
<td>No; default is <q>true</q></td>
|
2005-08-23 14:46:53 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
2018-01-22 09:10:26 +01:00
|
|
|
<h3 id="elements">Parameters as nested elements</h3>
|
|
|
|
<h4><strong>fileset</strong> (org.apache.tools.ant.types.FileSet)</h4>
|
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>A fileset of JAR files to include in the URL list, each separated by the separator.</p>
|
2018-01-22 09:10:26 +01:00
|
|
|
|
|
|
|
<h4><strong>path</strong> (org.apache.tools.ant.types.Path)</h4>
|
2005-08-23 14:46:53 +00:00
|
|
|
|
2018-02-28 07:58:59 +01:00
|
|
|
<p>Add a path to the URL. All elements in the path will be converted to individual URL entries.</p>
|
|
|
|
<h3>Examples</h3>
|
|
|
|
<pre><makeurl file="${user.home}/.m2/repository" property="m2.repository.url"/></pre>
|
|
|
|
<p>Sets the property <code>m2.repository.url</code> to the file: URL of the local Maven2
|
|
|
|
repository.</p>
|
|
|
|
<pre><makeurl property="codebase"><fileset dir="lib includes="*.jar"/></makeurl></pre>
|
|
|
|
<p>Set the property <code>codebase</code> to the three URLs of the files provided as nested
|
|
|
|
elements.</p>
|
2005-08-23 14:46:53 +00:00
|
|
|
</body>
|
|
|
|
</html>
|