ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prasanna Shetty" <prasanna.she...@demandtec.com>
Subject RE: is this possible: run some task/target at end, regardless of success/fail?
Date Tue, 19 Mar 2002 21:50:58 GMT
The BuildMonitor.java is running successfully since friday. The bug occured when I gave the
path in front of the java program name e.g -listener c:/dev/BuildMonitor.
The llistener started working when I gave -listener BuildMonitor.
Thanks
Prasanna 


-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Friday, March 15, 2002 4:53 PM
To: Ant Users List
Subject: Re: is this possible: run some task/target at end, regardless
of success/fail?


No, I cannot personally assist you with this further, but I'm sure others
have gotten the BuildMonitor to work fine as have I in the past.  You have
not provided sufficient information for us to troubleshoot the problem thus
far - you need to be way more explicit in order for this group to help you
with such things - cut and paste the exact command you're trying and the
results that you receive.

Have you compiled BuildMonitor.java?  Is there a .class for it?  You might
need to put it in a package for it to work (although I doubt it - but
certainly can't hurt).

    Erik



----- Original Message -----
From: "Prasanna Shetty" <prasanna.shetty@demandtec.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Friday, March 15, 2002 7:45 PM
Subject: RE: is this possible: run some task/target at end, regardless of
success/fail?


I am getting the following exception java.lang.ClassNotFoundException.
Could you give me the various  class path settings needed.
Thanks
Prasanna

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Friday, March 15, 2002 3:52 PM
To: Ant Users List
Subject: Re: is this possible: run some task/target at end, regardless
of success/fail?


So the next (obvious!) question is: does
d:\work\dev\main/bin/buildrel/BuildMonitor.class exist?

If not, then you need to compile the BuildMonitor code yourself, its not
provided as part of Ant.  If you want to use the MailLogger that I created
you can use a nightly build of Ant and just go with that (see the same FAQ
entry for more info on the MailLogger).

    Erik




----- Original Message -----
From: "Prasanna Shetty" <prasanna.shetty@demandtec.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Friday, March 15, 2002 6:32 PM
Subject: RE: is this possible: run some task/target at end, regardless of
success/fail?


the build command is as follows
----------------------------------------------------------------------------
--------------
call %ANT_HOME%/bin/ant -buildfile
EV_HOME%/src/mybuild.xml -emacs   -logfile
%DEV_HOME%/src/build.log -listener %DEV_HOME%/bin/buildrel/BuildMonitor
----------------------------------------------------------------------------
--------------
without the -listener option the build works properly


I get the following error message when -listener is included
----------------------------------------------------------------------------
--------------



Buildfile: d:\work\dev\main\src\mybuild.xml

BUILD FAILED

Unable to instantiate listener d:\work\dev\main/bin/buildrel/BuildMonitor

Total time: 0 seconds
----------------------------------------------------------------------------
--------------
Thanks
Prasanna

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Friday, March 15, 2002 3:09 PM
To: Ant Users List
Subject: Re: is this possible: run some task/target at end, regardless
of success/fail?


How about you provide us with more details like what error it is you're
getting?!


----- Original Message -----
From: "Prasanna Shetty" <prasanna.shetty@demandtec.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Friday, March 15, 2002 5:43 PM
Subject: RE: is this possible: run some task/target at end, regardless of
success/fail?


when I include the '-listener BuildMonitor -logfile build.log' int ant
command, the command ends in error. Could you please give me some guidance
on it.
Thanks
Prasanna

-----Original Message-----
From: Erik Hatcher [mailto:jakarta-ant@ehatchersolutions.com]
Sent: Friday, March 15, 2002 5:39 AM
To: Ant Users List; stephan@einsurance.de
Subject: Re: is this possible: run some task/target at end, regardless
of success/fail?


Have a look at this FAQ entry:

    http://jakarta.apache.org/ant/faq.html#mail-logger


----- Original Message -----
From: "stephan beal" <stephan@einsurance.de>
To: <ant-user@jakarta.apache.org>
Sent: Friday, March 15, 2002 8:19 AM
Subject: is this possible: run some task/target at end, regardless of
success/fail?


> Hello again, anters,
>
> Perl has a feature which goes like this:
>
> BEGIN {
> ...
> }
>
> END {
> ...
> }
>
> anything in the END block is run at the end of the script regardless of
> whether the script fails or not. Is this possible in ant? The nature of
our
> build requires that we make a number of <exec> calls (to generate sources,
> etc.), and any of them can fail pretty miserably. These may kill the
build,
> but i have not figured out how to mail myself the build log when it fails
> like this. Having this sort of "bailout" task would allow me to gracefully
> handle this case.
>
> ----- stephan
> Generic Universal Computer Guy
> stephan@einsurance.de - http://www.einsurance.de
> Office: +49 (89) 552 92 862 Handy: +49 (179) 211 97 67
> "I ain't gen'rally given to physicality of that nature but it saves
> a lot of arguing." -- Nanny Ogg
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>




--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message