Iterating a target
2 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Allan_Clearwaters
Posted On:   Tuesday, February 14, 2006 09:14 AM


I want to create a target that iterates a set of commands over a set of files. For instance, I have some individual java files in a number of directories. I would like to compile all of these files and output their class files to a single directory prior to a creating a jar. I know this must be possible but for the life of me I can't see how - thus my queation. In essence I want the equivalent of multiple targets in a makefile.



Thanx in advance for your help - Al

Re: Iterating a target

Posted By:   Anonymous  
Posted On:   Thursday, February 16, 2006 06:08 AM

You can iterate via .


But why compiling each file one by one? Why not all together using a single command? Many core tasks support s or s (or 1.7-ResourceCollections)

Re: Iterating a target

Posted By:   Anonymous  
Posted On:   Tuesday, February 14, 2006 10:30 AM

Here below is a target which compiles the java classes from two diffrent directory and places into a single directory i think it will help you






















About | Sitemap | Contact