You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Sergey V. Udaltsov" <Se...@artificial-life.com> on 2000/07/11 14:57:07 UTC
templates ...
Hi all
What is the correct way to create "template tasks" in ant's makefiles.
For example, I would like to:
1. Create the dir ${subproject} -
2. Compile some set of files ${srcfiles} to some directory ${subproject}
using classpath ${utiljars}
3. Build ${subproject}.jar from all the files in ${subproject}
4. Clean ${subproject} - i.e. <deltree...>
And I have a lot (N) of subprojects with their own sets of sources and
utiljars.
I would like to have 4*N tasks with maximal code reuse.
How would you offer to solve this problem in most modular way?
Thanks for any ideas...
--
Sergey V. Udaltsov