I was
thinking the same thing as Anthony was, however you might want to watch out for
a couple of things.
First, if you
need to call the same target multiple times, make sure you add force="true" to
your call task. nAnt keeps track of which targets it has already
executed.
Also,
do these targets depend on one another? Can you set up the targets to
depend on one another to simplify the calling structure? For
example,
<target name="document" depends="compile"
/>
Finally, if you do <include> these four different build files, you
will need to have all the targets have unique names. In my build files,
I have the following target types: prep, fetch, build, deploy,
promote, and release. Then I have separate build files for each component
of my system, so for component1 the targets are named: prep-component1,
fetch-compoent2, etc.
I hope
this helps.
Jason
-----Original Message-----
From: Anthony Francisco [mailto:[EMAIL PROTECTED] Sent: Wednesday, March 26, 2003 1:08 PM To: 'Hearn, Bruce'; [EMAIL PROTECTED] Subject: RE: [Nant-users] how to make a build file more concise On first glance it almost seems
like a perfect use of <include> until reading the fine print about
<include> is to be used only on the top level.
<call> may do what you
need. I would try creating a target named "doit" which has all the <nant>
tasks, and simply do a <call name="doit"> for each of your
targets.
I'll give this a try
tonight.
-
Ants
|
Title: Message
- [Nant-users] how to make a build file more concise Hearn, Bruce
- RE: [Nant-users] how to make a build file more conc... Anthony Francisco
- RE: [Nant-users] how to make a build file more conc... Morris, Jason
- RE: [Nant-users] how to make a build file more conc... Hearn, Bruce