Hi guys, I am pretty new to ant so maybe is my question a bit stupid : I am writing an ant script that gets java sources from a versioning system (merant pvcs using the pvcs task) and run the Javadoc tool on those ( using the javadoc task). The java sources come from multiple pvcs DBs and I don't want to hardcode the urls of the DBs in my ant script so if I have an additional pvcs bd to consult I do not have to modifiy my ant script (but I have to modify somthing else : a property file or something like that) To summarize : Is there a way to run a target multiple times using different values for each run (values located in an external file) ? thanks in advance for your help Nicolas
<a href="http://www.javablackbelt.com/?utm_source=javaranch&utm_medium=signature&utm_campaign=Forum%2BBuzz" target="_blank" rel="nofollow">BlackBeltFactory Communtiy</a> founder - Building better developers<br /><b>Free</b> courses and mock exams
You can run the same target multiple times with different parameters, using antcall and nested param tags. However, you still have to make each call explicitly. There's no way (that I know of) to have Ant parse up a list of values, and then loop through them running a task on each one.