• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Javadoc on multiple source

 
Nicolas Brasseur
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Greg Charles
Sheriff
Posts: 2985
12
Firefox Browser IntelliJ IDE Java Mac Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic