ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
Subject Re: Creating a FileSet from just a filename.
Date Thu, 13 Dec 2001 07:32:13 GMT
On Wed, 12 Dec 2001, Robert Parlett <rparlett@viviance.com> wrote:

> For example, if I have a property defined
> 
>   <property name="my-jar" value="/opt/dir/my.jar" />
> 
> can I create a FileSet equivalent to
> 
>   <fileset dir="/opt/dir">
>      <include name="my.jar"/>
>   </fileset>

As long as you are sure you'll always run on Unix, yes.

<fileset dir="/">
  <include name="${my-jar}" />
</fileset>

Construction of that fileset may take a loooooong time and it won't
work on systems with multiple file system roots (AKA drive letters).

Stefan

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message