Output console to text file

View: New views
10 Messages — Rating Filter:   Alert me  

Output console to text file

by Justin Daubenmire-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey all,
 
In my .build file, how or what do I do to get all console messages redirected to a text file?
 
I have this in place throughout my targets:
 
<echo file ="deploy_results.txt" append="true" message="starting to copy files..." />
 
which works, but the information displayed on the console, such as 28 files copied,  is never wrote to the text file.
 
How can I get verbose console output to the text file in addition to my custom messages?
 
Thanks for any feedback!
 
/Justin

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: Output console to text file

by Michael Pento :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Justin,

 

If your using the nant-contrib library you can use the record task (http://nantcontrib.sourceforge.net/release/latest/help/tasks/record.html) to save your output to a log file. It supports various output logging levels and you will still get your output on the console.

 

<target name=”build”>

            <record name="build.log" level="Debug" action="Start" />

 

            (do a bunch of things …)

 

            <record name=”build.log” level=”Debug” action=”Stop” />

</build>

 

Hope this helps.

 

Thanks,

Mike


From: Justin Daubenmire [mailto:justin@...]
Sent: Thursday, October 22, 2009 8:22 AM
To: nant-users@...; nant-users@...
Subject: [NAnt-users] Output console to text file

 

Hey all,

 

In my .build file, how or what do I do to get all console messages redirected to a text file?

 

I have this in place throughout my targets:

 

<echo file ="deploy_results.txt" append="true" message="starting to copy files..." />

 

which works, but the information displayed on the console, such as 28 files copied,  is never wrote to the text file.

 

How can I get verbose console output to the text file in addition to my custom messages?

 

Thanks for any feedback!

 

/Justin


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: Output console to text file

by Justin Daubenmire-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Thanks guys!
 
What is the syntax to pull in the nant-contrib assembly into my nant build file?
 
/Justin
 


From: Michael Pento [mailto:mpento@...]
Sent: Thursday, October 22, 2009 8:43 AM
To: Justin Daubenmire; nant-users@...; nant-users@...
Subject: RE: [NAnt-users] Output console to text file

Hi Justin,

 

If your using the nant-contrib library you can use the record task (http://nantcontrib.sourceforge.net/release/latest/help/tasks/record.html) to save your output to a log file. It supports various output logging levels and you will still get your output on the console.

 

<target name=”build”>

            <record name="build.log" level="Debug" action="Start" />

 

            (do a bunch of things …)

 

            <record name=”build.log” level=”Debug” action=”Stop” />

</build>

 

Hope this helps.

 

Thanks,

Mike


From: Justin Daubenmire [mailto:justin@...]
Sent: Thursday, October 22, 2009 8:22 AM
To: nant-users@...; nant-users@...
Subject: [NAnt-users] Output console to text file

 

Hey all,

 

In my .build file, how or what do I do to get all console messages redirected to a text file?

 

I have this in place throughout my targets:

 

<echo file ="deploy_results.txt" append="true" message="starting to copy files..." />

 

which works, but the information displayed on the console, such as 28 files copied,  is never wrote to the text file.

 

How can I get verbose console output to the text file in addition to my custom messages?

 

Thanks for any feedback!

 

/Justin


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Parent Message unknown Re: Output console to text file

by Justin Daubenmire-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
gotcha. Once the contrib assemblies are in the bin folder of my nant installation, do I have to do anything special as an import or anything to get my build scripts to recognize the contrib tasks?
 
/Justin
 

From: Chris Lambrou [mailto:Chris.Lambrou@...]
Sent: Thursday, October 22, 2009 8:59 AM
To: Justin Daubenmire
Subject: RE: [NAnt-users] Output console to text file

You need to take the NAntContrib files and copy them into your NAnt  installation, at which point you can then use both NAnt and NAntContrib tasks in your build scripts.

 

 

 

From: Justin Daubenmire [mailto:justin@...]
Sent: 22 October 2009 13:51
To: nant-users@...; nant-users@...
Subject: Re: [NAnt-users] Output console to text file

 

Thanks guys!

 

What is the syntax to pull in the nant-contrib assembly into my nant build file?

 

/Justin

 

 


From: Michael Pento [mailto:mpento@...]
Sent: Thursday, October 22, 2009 8:43 AM
To: Justin Daubenmire; nant-users@...; nant-users@...
Subject: RE: [NAnt-users] Output console to text file

Hi Justin,

 

If your using the nant-contrib library you can use the record task (http://nantcontrib.sourceforge.net/release/latest/help/tasks/record.html) to save your output to a log file. It supports various output logging levels and you will still get your output on the console.

 

<target name=”build”>

            <record name="build.log" level="Debug" action="Start" />

 

            (do a bunch of things …)

 

            <record name=”build.log” level=”Debug” action=”Stop” />

</build>

 

Hope this helps.

 

Thanks,

Mike


From: Justin Daubenmire [mailto:justin@...]
Sent: Thursday, October 22, 2009 8:22 AM
To: nant-users@...; nant-users@...
Subject: [NAnt-users] Output console to text file

 

Hey all,

 

In my .build file, how or what do I do to get all console messages redirected to a text file?

 

I have this in place throughout my targets:

 

<echo file ="deploy_results.txt" append="true" message="starting to copy files..." />

 

which works, but the information displayed on the console, such as 28 files copied,  is never wrote to the text file.

 

How can I get verbose console output to the text file in addition to my custom messages?

 

Thanks for any feedback!

 

/Justin


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: Output console to text file

by Bob Archer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

You can use the XmlLogger. Check out the doc on Loggers and Listeners.

 

BOb

 

 

From: Justin Daubenmire [mailto:justin@...]
Sent: Thursday, October 22, 2009 8:22 AM
To: nant-users@...; nant-users@...
Subject: [NAnt-users] Output console to text file

 

Hey all,

 

In my .build file, how or what do I do to get all console messages redirected to a text file?

 

I have this in place throughout my targets:

 

<echo file ="deploy_results.txt" append="true" message="starting to copy files..." />

 

which works, but the information displayed on the console, such as 28 files copied,  is never wrote to the text file.

 

How can I get verbose console output to the text file in addition to my custom messages?

 

Thanks for any feedback!

 

/Justin


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: Output console to text file

by Bob Archer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Nope, if the DLL is in the same folder as the nant.exe then it should load it.

 

From: Justin Daubenmire [mailto:justin@...]
Sent: Thursday, October 22, 2009 9:03 AM
To: nant-users@...
Subject: Re: [NAnt-users] Output console to text file

 

gotcha. Once the contrib assemblies are in the bin folder of my nant installation, do I have to do anything special as an import or anything to get my build scripts to recognize the contrib tasks?

 

/Justin

 


From: Chris Lambrou [mailto:Chris.Lambrou@...]
Sent: Thursday, October 22, 2009 8:59 AM
To: Justin Daubenmire
Subject: RE: [NAnt-users] Output console to text file

You need to take the NAntContrib files and copy them into your NAnt  installation, at which point you can then use both NAnt and NAntContrib tasks in your build scripts.

 

 

 

From: Justin Daubenmire [mailto:justin@...]
Sent: 22 October 2009 13:51
To: nant-users@...; nant-users@...
Subject: Re: [NAnt-users] Output console to text file

 

Thanks guys!

 

What is the syntax to pull in the nant-contrib assembly into my nant build file?

 

/Justin

 

 


From: Michael Pento [mailto:mpento@...]
Sent: Thursday, October 22, 2009 8:43 AM
To: Justin Daubenmire; nant-users@...; nant-users@...
Subject: RE: [NAnt-users] Output console to text file

Hi Justin,

 

If your using the nant-contrib library you can use the record task (http://nantcontrib.sourceforge.net/release/latest/help/tasks/record.html) to save your output to a log file. It supports various output logging levels and you will still get your output on the console.

 

<target name=”build”>

            <record name="build.log" level="Debug" action="Start" />

 

            (do a bunch of things …)

 

            <record name=”build.log” level=”Debug” action=”Stop” />

</build>

 

Hope this helps.

 

Thanks,

Mike


From: Justin Daubenmire [mailto:justin@...]
Sent: Thursday, October 22, 2009 8:22 AM
To: nant-users@...; nant-users@...
Subject: [NAnt-users] Output console to text file

 

Hey all,

 

In my .build file, how or what do I do to get all console messages redirected to a text file?

 

I have this in place throughout my targets:

 

<echo file ="deploy_results.txt" append="true" message="starting to copy files..." />

 

which works, but the information displayed on the console, such as 28 files copied,  is never wrote to the text file.

 

How can I get verbose console output to the text file in addition to my custom messages?

 

Thanks for any feedback!

 

/Justin


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

tokenizing a script tag and link

by Zachary B. Wheeler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi All

 

Is it possible to tokenize an entire script tag

 

In my config file I have:

 

<property name=” trainingwatermark”                                                 value=”<link rel="stylesheet" type="text/css" href="..\style\watermark.css">”/>

<property name=” attachEventButtonOnClick”                                   value=”<SCRIPT language="JavaScript" src="../_res/js/GetInputButtonOnLoad.js"></SCRIPT>”/>

 

But when I run my build I get the following error:

 

Hexadecimal value 0x3c is n invalid attribute character

 

 

Zachary B. Wheeler

 

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: tokenizing a script tag and link

by Bob Archer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

You have to use XML entities tokens and I think single quotes:

 

<property name=” trainingwatermark”     value=”&lt;link rel='stylesheet' type='text/css' href='..\style\watermark.css'&gt;”/>

<property name=” attachEventButtonOnClick”  value=”&lt;SCRIPT language='JavaScript' src='../_res/js/GetInputButtonOnLoad.js'&lt;/SCRIPT&gt;”/>

 

If you really need double quotes I think you can use &quote;

 

BOb

 

 

From: Zachary B. Wheeler [mailto:zwheeler@...]
Sent: Thursday, October 22, 2009 1:25 PM
To: Bob Archer; nant-users@...; nant-users@...
Subject: tokenizing a script tag and link

 

Hi All

 

Is it possible to tokenize an entire script tag

 

In my config file I have:

 

<property name=” trainingwatermark”                                                 value=”<link rel="stylesheet" type="text/css" href="..\style\watermark.css">”/>

<property name=” attachEventButtonOnClick”                                   value=”<SCRIPT language="JavaScript" src="../_res/js/GetInputButtonOnLoad.js"></SCRIPT>”/>

 

But when I run my build I get the following error:

 

Hexadecimal value 0x3c is n invalid attribute character

 

 

Zachary B. Wheeler

 

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: tokenizing a script tag and link

by Michael Pento :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Bob’s right, I tried this just messing around (slow day here …) :

 

<property name=”trainingwatermark” value=”&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;..\style\watermark.css&quot;&gt;” />

 

The output looks like this:

 

[echo] <link rel="stylesheet" type="text/css" href="..\style\watermark.css">

 

 

Hope this helps out,

Mike

 

 


From: Bob Archer [mailto:Bob.Archer@...]
Sent: Thursday, October 22, 2009 1:37 PM
To: Zachary B. Wheeler; nant-users@...; nant-users@...
Subject: Re: [NAnt-users] tokenizing a script tag and link

 

You have to use XML entities tokens and I think single quotes:

 

<property name=” trainingwatermark”     value=”&lt;link rel='stylesheet' type='text/css' href='..\style\watermark.css'&gt;”/>

<property name=” attachEventButtonOnClick”  value=”&lt;SCRIPT language='JavaScript' src='../_res/js/GetInputButtonOnLoad.js'&lt;/SCRIPT&gt;”/>

 

If you really need double quotes I think you can use &quote;

 

BOb

 

 

From: Zachary B. Wheeler [mailto:zwheeler@...]
Sent: Thursday, October 22, 2009 1:25 PM
To: Bob Archer; nant-users@...; nant-users@...
Subject: tokenizing a script tag and link

 

Hi All

 

Is it possible to tokenize an entire script tag

 

In my config file I have:

 

<property name=” trainingwatermark”                                                 value=”<link rel="stylesheet" type="text/css" href="..\style\watermark.css">”/>

<property name=” attachEventButtonOnClick”                                   value=”<SCRIPT language="JavaScript" src="../_res/js/GetInputButtonOnLoad.js"></SCRIPT>”/>

 

But when I run my build I get the following error:

 

Hexadecimal value 0x3c is n invalid attribute character

 

 

Zachary B. Wheeler

 

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users

Re: tokenizing a script tag and link

by Ron Grabowski :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Does nant support this syntax:?

<property name=”trainingwatermark”><![CDATA[<link rel="stylesheet" type="text/css" href="..\style\watermark.css">]]></property>

Not sure if that's any easier to read...


From: Michael Pento <mpento@...>
To: Bob Archer <Bob.Archer@...>; Zachary B. Wheeler <zwheeler@...>; nant-users@...; nant-users@...
Sent: Thu, October 22, 2009 2:13:29 PM
Subject: Re: [NAnt-users] tokenizing a script tag and link

Bob’s right, I tried this just messing around (slow day here …) :

 

<property name=”trainingwatermark” value=”&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;..\style\watermark.css&quot;&gt;” />

 

The output looks like this:

 

[echo] <link rel="stylesheet" type="text/css" href="..\style\watermark.css">

 

 

Hope this helps out,

Mike

 

 


From: Bob Archer [mailto:Bob.Archer@...]
Sent: Thursday, October 22, 2009 1:37 PM
To: Zachary B. Wheeler; nant-users@...; nant-users@...
Subject: Re: [NAnt-users] tokenizing a script tag and link

 

You have to use XML entities tokens and I think single quotes:

 

<property name=” trainingwatermark”     value=”&lt;link rel='stylesheet' type='text/css' href='..\style\watermark.css'&gt;”/>

<property name=” attachEventButtonOnClick”  value=”&lt;SCRIPT language='JavaScript' src='../_res/js/GetInputButtonOnLoad.js'&lt;/SCRIPT&gt;”/>

 

If you really need double quotes I think you can use &quote;

 

BOb

 

 

From: Zachary B. Wheeler [mailto:zwheeler@...]
Sent: Thursday, October 22, 2009 1:25 PM
To: Bob Archer; nant-users@...; nant-users@...
Subject: tokenizing a script tag and link

 

Hi All

 

Is it possible to tokenize an entire script tag

 

In my config file I have:

 

<property name=” trainingwatermark”                                                 value=”<link rel="stylesheet" type="text/css" href="..\style\watermark.css">”/>

<property name=” attachEventButtonOnClick”                                   value=”<SCRIPT language="JavaScript" src="../_res/js/GetInputButtonOnLoad.js"></SCRIPT>”/>

 

But when I run my build I get the following error:

 

Hexadecimal value 0x3c is n invalid attribute character

 

 

Zachary B. Wheeler

 

 


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
NAnt-users mailing list
NAnt-users@...
https://lists.sourceforge.net/lists/listinfo/nant-users