ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey V. Udaltsov" <Sergey.Udalt...@artificial-life.com>
Subject templates ...
Date Tue, 11 Jul 2000 12:57:07 GMT
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

Mime
View raw message