Hi,
I use a main build file to execute a number of tasks in sub-build files. I want to be able to support the ability to run nant like this:
nant clean compile document
So my main file is currently of this form:
<target name="compile" description="build the code"> <property name="the.target" value="compile"/> <nant buildfile="Common\Common.build" target="${the.target}"/> <nant buildfile="DataAccess\DataAccess.build" target="${the.target}"/> <nant buildfile="Business\ Business.build" target="${the.target}"/> <nant buildfile="Presentation\ Presentation.build" target="${the.target}"/> </target>
<target name="document" description="document the code"> <property name="the.target" value="document"/> <nant buildfile="Common\Common.build" target="${the.target}"/> <nant buildfile="DataAccess\DataAccess.build" target="${the.target}"/> <nant buildfile="Business\ Business.build" target="${the.target}"/> <nant buildfile="Presentation\ Presentation.build" target="${the.target}"/> </target>
<target name="clean" description="clean up old build output" > <property name="the.target" value="clean"/> <nant buildfile="Common\Common.build" target="${the.target}"/> <nant buildfile="DataAccess\DataAccess.build" target="${the.target}"/> <nant buildfile="Business\ Business.build" target="${the.target}"/> <nant buildfile="Presentation\ Presentation.build" target="${the.target}"/> </target>
My question: is there a way to do this more concisely, so I don't have to repeat that same block of nant tasks 3 times in the build file? I do want to keep the overall clean, compile, and document processes totally distinct, so that all the clean tasks run before all the compile tasks.
Thanks,
Bruce
-----Original Message-----
I getting a crash in NAnt when trying to use the nunit2 task.
I tried using the nunit2 task using the following in my build script:
<target
name="test" depends="build" description="Runs NUnit
tests"> The result I get is:
Server stack trace:
Exception rethrown at [0]:
Fusion log follows:
Please send bug report to [EMAIL PROTECTED] I can run nunit-console just fine from the command-line, but NAnt seems unable to be crashing.
Is there anything special I need to do to my NT CMD shell ?
- Ants |
Title: Message
- RE: [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