I haven't run into your problem myself, but one thing that comes to mind ...
 
... is it NAnt that's hanging, or java? Try using Task Manager to see if the NAnt process is still in memory at the time of the hang.
 
... The reason I ask, is that I seem to recall (although I can't find a reference through Google) that there was a problem with some java JVM's not handling a non-zero return value from a spawned process.
 
This would be relevant because the value returned by NAnt differs between success and failure.
 
Hope this helps,
Bevan.


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Vagmi Mudumbai
Sent: Sunday, 20 August 2006 7:22 p.m.
To: Fernando P. Nájera Cano
Cc: nant-users@lists.sourceforge.net
Subject: Re: [NAnt-users] Fwd: Nightly NAnt+NAntContrib + Windows Scheduled Task = hang

Hi,

Has anybody found a solution for this? I have a very wierd problem. I use the java's Runtime.exec() function to get a process. Nant process hangs after BUILD FAILED. However it does exit properly when the build succeeds. Any help here? I am using NAnt RC4.

Regards,
Vagmi

On 5/22/06, [EMAIL PROTECTED] < [EMAIL PROTECTED]> wrote:
Hi,

Sorry if this message appears twice. I sent it some time ago but I
cannot see it in the archive.

I use NAnt heavily in our team. We have CC.NET and all of our projects
are built using NAnt .build files.

Also, I have a lot of other tasks (for example, nightly backups or
builds) and I have set up 3 files for each: a .bat file that actually
calls nant, a .build file that set up some properties, and another
.build file (a little more generic) to execute the task [for example,
to backup an Oracle database, the .bat file calls a .build file that
states the user, password and destination file as properties, and then
call a generic "oracleexport.build" that makes the job).

I schedule these tasks via Windows Scheduled Tasks (I hope this is the
name, as my system is in Spanish. You can find them at Control Panel -
Scheduled Tasks). I have set up an account for them to run as, so
there is no problem of permissions here.

Also, the .bat file registers two loggers: one is a file logger and
the other one is the MailLogger.

So, since I installed last nightlies for NAnt and NAntContrib, the
very same .bat/.build files now behave a little strange. Some of them
works as expected, but others hang **after** writing "build succeded".
The task just hangs, NAnt does not stop, and the task is marked as
running. The only way to stop them is either to way the number of
hours stated at the Scheduled task, or, if I have started the session
from the console of the server, I see the command window there, so I
can press "X", wait for "Terminate application" window, and force its
shutdown.

As this is happening to files that I have not changed, and they worked
well before updating NAnt/NAntcontrib, does anyone know if a "recent"
change could produce this behaviour? Or a way to diagnose what the
problem can be?

BTW: I suspected from the email logger. But the emails are sent. Could
it be a leak in some "exec" task that makes NAnt hang waiting for that
leak to finish?

Thank you very much in advance,

Best regards,

Fernando Nájera




-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmdlnk&kid0709&bid&3057&dat1642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users



--
http://geekswithblogs.net/vagmi.mudumbai
http://installneo.blogspot.com

"Peace is its own reward." - Mahatma Gandhi

 

******************************************************************************

"This message (and any files transmitted with it) are confidential and

may be legally privileged. If you are not the intended recipient please

notify the sender immediately and delete this message from your system.

 

This message does not necessarily reflect the views of the

Reserve Bank of New Zealand. If the recipient has any concerns about

the content of this message they should seek alternative confirmation

from the Reserve Bank of New Zealand."

******************************************************************************

 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NAnt-users mailing list
NAnt-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to