In my builds I include a build file that
does amongst other things (see below) This pipes all compile info to a
time stamped file (with the record task) and gives me verbose information if I
fail. It also runs all tests and generates docs when I succeed. Hope it helps, Kevin Dickover <?xml version="1.0"
encoding="utf-8" ?> <project
name="CommonTargets" xmlns="http://a place I know about
locally, we are using a daily build /Schemas/NAntSchema.xsd"> <property
name="nant.settings.currentframework" value="net-1.1"/> <property
name="Reference.Dir" value="${Base.Dir}References\" /> <property
name="Log.Dir" value="${Base.Dir}log\" /> <property
name="Doc.Dir" value="${Base.Dir}docs\" /> <property
name="Build.Dir" value="${Base.Dir}bin\" /> <tstamp
property="Build.DateTime" pattern="yyyy-MM-dd.HHmm"
verbose="true"/> <property
name="Build.Success.Log"
value="${Log.Dir}BuildSuccessLog-${Build.DateTime}.txt" /> <property
name="Build.Failure.Log" value="${Log.Dir}BuildFailureLog-${Build.DateTime}.txt"
/> <property
name="nant.onsuccess" value="Success" /> <property
name="nant.onfailure" value="Failure" /> <record
name="${Build.Success.Log}" level="Info"
action="" /> <record
name="${Build.Failure.Log}" level="Verbose"
action="" /> <mkdir
dir="${Log.Dir}" failonerror="false" /> <mkdir
dir="${Doc.Dir}" failonerror="false" /> <mkdir
dir="${Build.Dir}" failonerror="false" /> <target
name="Success" depends="RunAllTests,BuildAllDocs,CloseLogs"
description="Closes log Files and deletes failure log, runs unit tests and
generates documentation. This task is called as a result of nant.onsuccess and
should not be called independently."> <delete
file="${Build.Failure.Log}" /> </target> <target
name="Failure" depends="CloseLogs"> <delete
file="${Build.Success.Log}" /> </target> <target
name="CloseLogs" description="Closes log files - do not call
independently" > <record
name="${Build.Success.Log}" action="" /> <record
name="${Build.Failure.Log}" action=""
/> </target>
<target
name="RunAllTests" description="Runs all NUnit 2.1
Tests">
<!-- Pretty standard stuff here à </target> <target
name="BuildAllDocs" description="Builds all NDoc
documemtation"> <!--
Pretty standard stuff here à </target>
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Francois Bonin Hello everyone, Is it possible to get the csc task to redirect its output to a file ? I tried using the arg nested element, but I must have misunderstood
something; it didn't even run. Thanks BT Yahoo! Broadband - Save £80 when you
order online today. Hurry! Offer ends 21st December 2003. The way the internet
was meant to be. |
- [Nant-users] redirecting csc task's output Francois Bonin
- Kevin Dickover