populate a list dynamically in ant build script
Posted
by
user1164061
on Stack Overflow
See other posts from Stack Overflow
or by user1164061
Published on 2012-03-30T21:45:27Z
Indexed on
2012/04/03
17:29 UTC
Read the original article
Hit count: 209
ant
I have the following directory structure:
vardir1
vardir2
vardir3
vardir4
constantdir1
Inside constantdir1, i have an ant build script which takes the list of vardir1 to vardir4 and compiles them sequentially. The situation is, vardir1 to vardir4 may or may not exist all the time. Right now I have hard coded the values in the list and checking to see if the vardir is available before I kick off its compilation. Is there any way I can dynamically populate this list in my ant build script?
© Stack Overflow or respective owner