From a729691fff76979d9b96b34b595a93996d0d4bdc Mon Sep 17 00:00:00 2001 From: "Jesse N. Glick" Date: Sat, 2 Dec 2006 20:21:43 +0000 Subject: [PATCH] Docs improvements. git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@481618 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/CoreTasks/makeurl.html | 40 ++++++++++++++++++++++-------- 1 file changed, 30 insertions(+), 10 deletions(-) diff --git a/docs/manual/CoreTasks/makeurl.html b/docs/manual/CoreTasks/makeurl.html index 1fc28ffc3..bef63e28d 100644 --- a/docs/manual/CoreTasks/makeurl.html +++ b/docs/manual/CoreTasks/makeurl.html @@ -34,7 +34,6 @@ Makeurl Task -
This task takes one or more filenames and turns them into URLs, which it then assigns to a property. @@ -62,7 +61,19 @@
- This task takes one or more filenames and turns them into URLs, which it then assigns to a property. Useful when setting up RMI codebases. Nested filesets are supported; if present, these are turned into the url with the given separator between them (default = " ").

Example

 <makeurl file="${user.home}/.m2/repository" property="m2.repository.url" /> 
Sets the property m2.repository.url to the file: URL of the local Maven2 repository.
 <makeurl property="codebase"> <fileset dir="lib includes="*.jar"/> </makeurl> 
Set the property codebase to the three URLs of the files provided as nested elements. +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 separator between them (default: space). +

+

Examples:

+
+<makeurl file="${user.home}/.m2/repository" property="m2.repository.url"/>
+
+Sets the property m2.repository.url to the file: URL of the local Maven2 repository. +
+<makeurl property="codebase"><fileset dir="lib includes="*.jar"/></makeurl>
+
+Set the property codebase to the three URLs of the files provided as nested elements.
@@ -105,13 +116,13 @@ file - the name of a file to be converted into a URL + name of a file to be converted into a URL File - - Optional + + optional, if a nested fileset or path is supplied @@ -120,11 +131,14 @@ property - set the name of a property to fill with the URL + name of a property to set to the URL String + + required + @@ -132,11 +146,14 @@ separator - set the separator for the multi-url option. + separator for the multi-URL option String + + optional + @@ -144,11 +161,14 @@ validate - set this flag to trigger validation that every named file exists. Optional: default=true + validate that every named file exists boolean + + optional; default: true + @@ -177,7 +197,7 @@ fileset (org.apache.tools.ant.types.FileSet)
- a fileset of jar files to include in the URL, each separated by the separator + A fileset of JAR files to include in the URL list, each separated by the separator. @@ -192,7 +212,7 @@ path (org.apache.tools.ant.types.Path)
- add a path to the URL. All elements in the path will be converted to individual URL entries + Add a path to the URL. All elements in the path will be converted to individual URL entries.