Hi, I am new to ANT. My need is that my ant script should read the properties file and whatever jars are mentioned in the properties file should be read and those jar would be copied from loaction A to loaction B.
Saumil, It's good you know how to do the first three. That means you aren't brand new to Ant. (making things easier to discuss)
I'm still not clear on what format the property file is in. Here are the three options I can think of: 1) You would use the propertySelector task to get all properties beginning with "jar.*" and loop through them. (requires ant-contrib library)
2) You would loop through the list delimited by commas
3) You would use the load file task and then loop through the rows
#3 sounds like what you are describing. It's a perfectly fine format, but it's not a property file. A property file must have name=value pairs. #3 is just a regular file with the names of jars.
Joined: Apr 18, 2008
Thanks a lot for the reply..
i have used <patternset> for the same purpose. I list all the jars in patterset.
but i am getting one problem that if the file is not present it is not throwing any error. [ ].