Ankita, I use the <record> task under NAntContrib which writes the log into a *.txt 
file.  I'm not familiar with Ant but this should be what you're looking for.

Here is the line from my project if that helps:
<record name="${BuildLogDir}\${build.date}-Buildlog.txt" level="Debug" action="Start"/>

Remember to close the file when you're completely done writing to it.
<record name="${BuildLogDir}\${build.date}-Buildlog.txt" action="Close"/> 

Here's the link to the help page.
http://nantcontrib.sourceforge.net/help/tasks/record.html

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Ankita
Kapadia
Sent: Wednesday, September 15, 2004 12:29 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] How to get the log of a <solution> task in a txt
file


I want something similar to "output" attribute of the
ant call .

In ANt
<ant
antfile="\${prop.viewname}\rfid_tid\persistent_solution\PINES\src1\build\pin
estask.xml" dir="${prop.viewname}\rfid_tid\persistent_solution\PINES\src1"
output="${prop.buildlocation}\build.log"/>

In Nant, I am using the solution task like:-

<solution
solutionfile="E:\ankita_views2\ankita_kapadia_view2\rfid_tid\persistent_solu
tion\PINES-MSFT\WebApps\Src\Pines.sln" configuration="release"
outputdir="D:\update_build\MSFT">
<webmap>
        <map url="http://localhost/pines/pines.csproj";
path="E:\ankita_views2\ankita_kapadia_view2\rfid_tid\persistent_solution\PIN
ES-MSFT\WebApps\Src\PinesWeb\pines.csproj" />
    </webmap>
</solution>

But how can I get a log of the build in a text file?

Regds,
Ankita







-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users


-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to