Makeurl Task This task takes one or more filenames and turns them into URLs, which it then assigns to a property. |
Description
> 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.
Parameters
> Attribute | Description | Type | Requirement
> file | the name of a file to be converted into a URL | File | Optional
> property | set the name of a property to fill with the URL | String
> separator | set the separator for the multi-url option. | String
> validate | set this flag to trigger validation that every named file exists. Optional: default=true | boolean
Parameters as nested elements
> fileset (org.apache.tools.ant.types.FileSet)
> a fileset of jar files to include in the URL, each separated by the separator
> 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
Copyright © 2000-2005, Apache Software Foundation