This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • 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: 2984
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