Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 96336 invoked from network); 28 Jan 2004 03:24:53 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 28 Jan 2004 03:24:53 -0000 Received: (qmail 24125 invoked by uid 500); 28 Jan 2004 03:24:22 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 24087 invoked by uid 500); 28 Jan 2004 03:24:22 -0000 Mailing-List: contact user-help@ant.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 user@ant.apache.org Received: (qmail 24057 invoked from network); 28 Jan 2004 03:24:21 -0000 Received: from unknown (HELO ext-nj2gw-5.online-age.net) (64.14.56.41) by daedalus.apache.org with SMTP; 28 Jan 2004 03:24:21 -0000 Received: from int-nj2gw-6.online-age.net (int-nj2gw-6 [3.159.236.70]) by ext-nj2gw-5.online-age.net (8.12.9/8.12.9/990426-RLH) with ESMTP id i0RLsxS6000281 for ; Tue, 27 Jan 2004 16:55:00 -0500 (EST) Received: from ncwlmx01nege.wilm.ge.com (localhost [127.0.0.1]) by int-nj2gw-6.online-age.net (8.12.9/8.12.8/990426-RLH) with ESMTP id i0RLsuiP003592 for ; Tue, 27 Jan 2004 16:54:57 -0500 (EST) Received: by ncwlmx01nege.wilm.ge.com with Internet Mail Service (5.5.2653.19) id ; Tue, 27 Jan 2004 16:54:48 -0500 Message-ID: <42C9EFEA1737D511BA420008C78641510CA4A3CD@ncwlmx01nege.wilm.ge.com> From: "Conelly, Luis (PS, GNF, Contractor)" To: Ant Users List Subject: RE: MailLogger reset in different targets not working Date: Tue, 27 Jan 2004 16:54:47 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C3E520.2E269320" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C3E520.2E269320 Content-Type: text/plain; charset="iso-8859-1" Cindy, I am using a target like following: And I use task to invoke it, as follows: I know it is a bit annoying to set such amount of parameters each time you want to call the target, but I haven't figured out another way. Regards & HTH -Luis BTW, My config is as follows: Ant: 1.6beta2 Java: JDK 1.4.2 -----Original Message----- From: Lindsey, Lucinda [mailto:lalinds@sandia.gov] Sent: Tuesday, January 27, 2004 3:47 PM To: 'Ant Users List' Subject: RE: MailLogger reset in different targets not working Thanks! Thats what I suspected. Please help me figure out a way to email different people depending on the outcome of different targets. These people can be on different email servers etc. Thanks, Cindy -----Original Message----- From: Erik Hatcher [mailto:erik@ehatchersolutions.com] Sent: Tuesday, January 27, 2004 2:26 PM To: Ant Users List Subject: Re: MailLogger reset in different targets not working Welcome to the wonderful world of property immutability. Once a property is set, it may not change value. Erik On Jan 27, 2004, at 3:49 PM, Lindsey, Lucinda wrote: > Hi, > > I would like to email different individuals, based on the > success/failure of > different targets in my build.xml. I have everything set up correctly, > but > am getting strange results (at least I don't understand why it's > happening). > I'm using MailLogger and set the following in each targets such as: > > > > > > > > > /> > > > /> > > > > > > > > > > > > > > > > When I execute just the compile target I receive as expected a > "helloworld > success". When I execute just the run target I receive as expected a > "helloworld run failure" (I made it fail on purpose). However, when I > execute both with the make target, I receive a "helloworld failure". I > had > expected a "helloworld run failure" from the run target because I am > forcing > an error on the run. > > The following messages were received when using the -debug flag: > > compile: > Setting project property: MailLogger.mailhost -> xxxxxxxx > Setting project property: MailLogger.from -> lalinds@sandia.gov > Setting project property: MailLogger.success.notify -> true > Setting project property: MailLogger.success.to -> lalinds@sandia.gov > Setting project property: MailLogger.success.subject -> helloworld > success > Setting project property: MailLogger.failure.notify -> true > Setting project property: MailLogger.failure.to -> lalinds@sandia.gov > Setting project property: MailLogger.failure.subject -> helloworld > failure > [exec] Current OS is SunOS > [exec] Executing 'run_helloworld' with > Execute:Java13CommandLauncher: Executing 'run_helloworld' with > > run: > Override ignored for property MailLogger.mailhost > Override ignored for property MailLogger.from > Override ignored for property MailLogger.success.notify > Override ignored for property MailLogger.success.to > Override ignored for property MailLogger.success.subject > Override ignored for property MailLogger.failure.notify > Override ignored for property MailLogger.failure.to > Override ignored for property MailLogger.failure.subject > [exec] Current OS is SunOS > [exec] Executing 'run' with > Execute:Java13CommandLauncher: Executing 'run' with > [exec] Hello World > > I can see that all the MailLogger properties were not set in the run > target, > however, if I execute ONLY the run target alone, they are set. Can > someone > help me understand why this is happening. > > I'm using Ant 1.5.4, Java 1.4.1, on Solaris 5.8 > > Thanks for your help, > > > > Cindy Lindsey > Sandia National Labs > (505)844-0548 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org ------_=_NextPart_001_01C3E520.2E269320--