Return-Path: Delivered-To: apmail-jakarta-ant-user-archive@apache.org Received: (qmail 68164 invoked from network); 19 Mar 2002 22:31:24 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 19 Mar 2002 22:31:24 -0000 Received: (qmail 2740 invoked by uid 97); 19 Mar 2002 21:51:00 -0000 Delivered-To: qmlist-jakarta-archive-ant-user@jakarta.apache.org Received: (qmail 2719 invoked by uid 97); 19 Mar 2002 21:50:59 -0000 Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 2694 invoked from network); 19 Mar 2002 21:50:59 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.0.5762.3 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: is this possible: run some task/target at end, regardless of success/fail? Date: Tue, 19 Mar 2002 13:50:58 -0800 Message-ID: <2B5C62C548D2FC48BC0334E8AE49418541992B@PARROT.demandtec.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: is this possible: run some task/target at end, regardless of success/fail? Thread-Index: AcHMhQVAxRYnkHc2R4uzhwfKAvVyYwDCicqA From: "Prasanna Shetty" To: "Ant Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N 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=20 -----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" To: "Ant Users List" 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" To: "Ant Users List" 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" To: "Ant Users List" 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" To: 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 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: = > For additional commands, e-mail: = > > -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: = For additional commands, e-mail: = -- To unsubscribe, e-mail: For additional commands, e-mail: