You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Paul J. Lucas" <pa...@mac.com> on 2008/03/01 19:45:15 UTC
Set property to glob expansion?
I want to set a property to the value of a glob expansion. For
example, if I have a directory that has a subdirectory:
my_directory/
jre1.6.0/
I want to be able to say something like:
<property name="jre-dir" value="jre*"/>
Of course, that doesn't work. After some Googl'ing, I've also tried:
<path id="jre.id">
<fileset dir="my_directory" includes="jre*"/>
</path>
<property name="jre-dir" refid="jre.id"/>
But that doesn't work either.
What's the way to make it work?
- Paul
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Set property to glob expansion?
Posted by Dominique Devienne <dd...@gmail.com>.
On Sat, Mar 1, 2008 at 12:45 PM, Paul J. Lucas <pa...@mac.com> wrote:
> I want to set a property to the value of a glob expansion. For
${toString:id} works, but <pathconvert> is more flexible and documented. --DD
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Set property to glob expansion?
Posted by Gilbert Rebhan <an...@schillbaer.de>.
Paul J. Lucas wrote:
>
> Of course, that doesn't work. After some Googl'ing, I've also tried:
>
> <path id="jre.id">
> <fileset dir="my_directory" includes="jre*"/>
> </path>
> <property name="jre-dir" refid="jre.id"/>
>
> But that doesn't work either.
>
> What's the way to make it work?
try with =
<property name="jre-dir" value="${toString:jre.id}"/>
Regards, Gilbert
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org