• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Using Javadoc on multiple source

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 3063
12
Mac IntelliJ IDE Python VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic