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:[EMAIL PROTECTED]] 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" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]] 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" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]] Sent: Friday, March 15, 2002 5:39 AM To: Ant Users List; [EMAIL PROTECTED] 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" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> 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 > [EMAIL PROTECTED] - 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:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
