Re: [NAnt-users] Need help with a NAnt internal error

2011-11-04 Thread Macdiarmid, James D.
I was able to capture the error by setting the processinfo properties:

UseShellExecute = false 

RedirectStandardOutput = true.  

 

Then after the proc.waitforexit() statement I can call
proc.StandardOutput.ReadToEnd() and capture the return value into a
string variable then write the contents to a file.

 

Jim

 

 

From: nant-users-boun...@lists.sourceforge.net
[mailto:nant-users-boun...@lists.sourceforge.net] On Behalf Of Chris
Fouts
Sent: Thursday, November 03, 2011 4:19 PM
To: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Need help with a NAnt internal error

 

Can you mimic how your GUIs (run button) call the Nant processes, and
start off Nant from a command line window the way they do?

 

Or if you have the code that starts the console window, put a cin ;
statement, which will freeze the window until you hit CR in it.

 

-chris

 

From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com] 
Sent: Thursday, November 03, 2011 12:37 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Need help with a NAnt internal error

 

Hi all, 

I have a C# Win Forms application that we use to kick off our build
process. This application launches a form which has several text fields
which we use to pass file path information to properties in our script,
and a run button. The run button starts a windows console process to
call the Nant executable and pass the form data on the command-line.
Whenever I kick off the build process this way I am getting a Nant
Internal error in the console window however I can't read all of it.  As
soon as the script is done the console window closes.   

Is there any way I can keep this process open or log the errors?   I
know nant  has a command-line parameter for sending information to a log
file which I am passing already on the command-line however the internal
error is happening before it can log anything. 

Please help - this is making me crazy and I think I'm on my last hair
follicle.   Lol

Thanks,

Jim




***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you
have
received this message in error or are not the named recipient(s), please

immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


[NAnt-users] Need help with a NAnt internal error

2011-11-03 Thread Macdiarmid, James D.
Hi all, 

I have a C# Win Forms application that we use to kick off our build
process. This application launches a form which has several text fields
which we use to pass file path information to properties in our script,
and a run button. The run button starts a windows console process to
call the Nant executable and pass the form data on the command-line.
Whenever I kick off the build process this way I am getting a Nant
Internal error in the console window however I can't read all of it.  As
soon as the script is done the console window closes.   
Is there any way I can keep this process open or log the errors?   I
know nant  has a command-line parameter for sending information to a log
file which I am passing already on the command-line however the internal
error is happening before it can log anything. 

Please help - this is making me crazy and I think I'm on my last hair
follicle.   Lol

Thanks,
Jim
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Need help with a NAnt internal error

2011-11-03 Thread Chris Fouts
Can you mimic how your GUIs (run button) call the Nant processes, and start off 
Nant from a command line window the way they do?

Or if you have the code that starts the console window, put a cin ; 
statement, which will freeze the window until you hit CR in it.

-chris

From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com]
Sent: Thursday, November 03, 2011 12:37 PM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Need help with a NAnt internal error


Hi all,

I have a C# Win Forms application that we use to kick off our build process. 
This application launches a form which has several text fields which we use to 
pass file path information to properties in our script, and a run button. The 
run button starts a windows console process to call the Nant executable and 
pass the form data on the command-line.   Whenever I kick off the build process 
this way I am getting a Nant Internal error in the console window however I 
can't read all of it.  As soon as the script is done the console window closes.

Is there any way I can keep this process open or log the errors?   I know nant  
has a command-line parameter for sending information to a log file which I am 
passing already on the command-line however the internal error is happening 
before it can log anything.

Please help - this is making me crazy and I think I'm on my last hair follicle. 
  Lol

Thanks,

Jim



***This e-mail message is intended only for the above named recipient(s)
and may contain information that is sensitive or proprietary. If you have
received this message in error or are not the named recipient(s), please 
immediately notify the sender, delete this e-mail message without making
a copy and do not disclose or relay this e-mail message to anyone.***
--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users


Re: [NAnt-users] Need help with a NAnt internal error

2011-11-03 Thread M K
When you launch the console process (cmd.exe) give it a parameter of /k.
That makes the process and the window stick around until you terminate it.

 

 

 

From: Macdiarmid, James D. [mailto:james.d.macdiar...@saic.com] 
Sent: Thursday, November 03, 2011 9:37 AM
To: nant-users@lists.sourceforge.net
Subject: [NAnt-users] Need help with a NAnt internal error

 

Hi all, 

I have a C# Win Forms application that we use to kick off our build process.
This application launches a form which has several text fields which we use
to pass file path information to properties in our script, and a run button.
The run button starts a windows console process to call the Nant executable
and pass the form data on the command-line.   Whenever I kick off the build
process this way I am getting a Nant Internal error in the console window
however I can't read all of it.  As soon as the script is done the console
window closes.   

Is there any way I can keep this process open or log the errors?   I know
nant  has a command-line parameter for sending information to a log file
which I am passing already on the command-line however the internal error is
happening before it can log anything. 

Please help - this is making me crazy and I think I'm on my last hair
follicle.   Lol

Thanks,

Jim

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1___
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users