Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

Set property to glob expansion?

Paul J. Lucas

2008-03-01

Replies: Find Java Web Hosting

Author LoginPost Reply
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@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.