Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 37624 invoked from network); 14 Feb 2008 07:17:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2008 07:17:10 -0000 Received: (qmail 32409 invoked by uid 500); 14 Feb 2008 07:17:02 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 32367 invoked by uid 500); 14 Feb 2008 07:17:01 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 32356 invoked by uid 99); 14 Feb 2008 07:17:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 23:17:01 -0800 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [170.146.91.25] (HELO rosesmtp01.adp.com) (170.146.91.25) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 07:16:30 +0000 Received: from rosemms01.tw.adp.com ([192.168.100.52]) by rosesmtp01.adp.com with Microsoft SMTPSVC(5.0.2195.6713); Thu, 14 Feb 2008 02:16:37 -0500 Received: from 192.168.100.42 by rosemms01.tw.adp.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v5.6.2)); Thu, 14 Feb 2008 02:16:29 -0500 X-Server-Uuid: 44418BB9-D913-4AA8-A168-EE33603A6708 Received: from rosesmtpvs01.nj.adp.com (rosesmtpvs01.nj.adp.com [192.168.100.15]) by bridppsm1.adp.com (8.13.7/8.13.7) with SMTP id m1E7GT4R028150 for ; Thu, 14 Feb 2008 02:16:29 -0500 Received: from (unknown [192.168.100.17]) by rosesmtpvs01.nj.adp.com with smtp id 5797_d4a70496_dacb_11dc_853d_0014221418f4; Thu, 14 Feb 2008 02:09:49 -0500 Received: from ([10.16.107.54]) by rosesmtpcf01.nj.adp.com with ESMTP id KP-TRMF8.379496258; Thu, 14 Feb 2008 02:14:04 -0500 Received: from AAEXCVS03.ES.AD.ADP.COM ([10.14.107.71]) by exchbrlbhi2a.ES.AD.ADP.COM with Microsoft SMTPSVC(6.0.3790.1830); Thu, 14 Feb 2008 02:16:07 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Subject: RE: Only one ant command is executing in batch file and not executing other commands after ant in batch file Date: Thu, 14 Feb 2008 02:18:30 -0500 Message-ID: In-Reply-To: <60f6b5090802132306h6540063dha515ba0ed3fda22@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Only one ant command is executing in batch file and not executing other commands after ant in batch file thread-index: Achu2ELkQlh+zx5JSHO5AwVY02At8QAAOApQ From: "Vishnumalakala, Santa" To: "Ant Users List" X-OriginalArrivalTime: 14 Feb 2008 07:16:07.0352 (UTC) FILETIME=[7798CB80:01C86ED9] X-Proofpoint-Virus-Version: vendor=fsecure engine=1.12.7020:2.4.1, 1.2.37,4.0.166 definitions=2008-02-14_01:2008-02-13,2008-02-14, 2008-02-14 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=5.0.0-0801230000 definitions=main-0802130112 X-WSS-ID: 6BAD354718832199590-01-01 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Here I need to send two build outputs as a email. Below I am executing two ant commands. call ant -f build1.xml > build.log call ant -f build2.xml >> build.log =20 Above two outputs I need to send as email. One thing is I am writing another build.xml with mail task sending = build.log as a message. Just I wanted to know is there any approach to send that output as a = email without writing another build.xml. Your inputs are required for me. Thanks for the cooperation. Santa. -----Original Message----- From: sramhu@gmail.com [mailto:sramhu@gmail.com] On Behalf Of Ramu Sethu Sent: Thursday, February 14, 2008 12:37 PM To: Ant Users List Subject: Re: Only one ant command is executing in batch file and not = executing other commands after ant in batch file If you use mail logger, logger itself stores sends the entire console = output. So you don have to redirect the logs. On Feb 13, 2008 4:11 PM, Vishnumalakala, Santa = wrote: > Can I send these output as email using mail logger > > Santa. > > -----Original Message----- > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] > Sent: Wednesday, February 13, 2008 3:29 PM > To: user@ant.apache.org > Subject: AW: Only one ant command is executing in batch file and not=20 > executing other commands after ant in batch file > > > call ant -f build1.xml > build.log > call ant -f build2.xml >> build.log > > > redirects to a file > >> appends to a file > > > Jan > > > > -----Urspr=FCngliche Nachricht----- > > Von: Vishnumalakala, Santa [mailto:Santa_Vishnumalakala@adp.com] > > Gesendet: Mittwoch, 13. Februar 2008 10:49 > > An: Ant Users List > > Betreff: RE: Only one ant command is executing in batch file and not = > > executing other commands after ant in batch file > > > > Thank you. It is solving my purpose. > > And one more problem is can I take standard output of two build=20 > > files in one file?? Why because if I use below command > > ant -l test.log -buildfile Test1\build\build.xml > > test.log is always creating the new. It is not updating the = existing. > > Thanks for your cooperation. > > Thanks, > > Santa. > > > > > > -----Original Message----- > > From: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] > > Sent: Wednesday, February 13, 2008 2:28 PM > > To: user@ant.apache.org > > Subject: AW: Only one ant command is executing in batch file and not = > > executing other commands after ant in batch file > > > > > > use "call ant" instead of "ant". > > > > "ant" is a batchfile and if that is finished the called batch is=20 > > terminated. with "call" your batch will proceed. > > > > its a windows behaviour and you'll find that in every batch .... > > > > > > Jan > > > > > -----Urspr=FCngliche Nachricht----- > > > Von: Vishnumalakala, Santa [mailto:Santa_Vishnumalakala@adp.com] > > > Gesendet: Mittwoch, 13. Februar 2008 09:50 > > > An: Ant Users List > > > Betreff: Only one ant command is executing in batch file and not=20 > > > executing other commands after ant in batch file > > > > > > > > > Hi, > > > > > > This is Santa. I am using ANT for my development. > > > > > > Problem is :: Only one ant command is executing in > > batch file and not > > > executing other commands after ant command in batch file > > > > > > I am trying to write batch file to execute Ant tasks.But after = > > > executing one ant command control is going to prompt rather than=20 > > > executing other commands in batch file.Could you please help me to = > > > execute all tasks in batch file. This is happening only for ant=20 > > > command not any other commands in batch file. > > > > > > My build.bat: > > > > > > set ANT_HOME=3DD:\Program=20 > > > Files\Ant\apache-ant-1.6.1-bin\apache-ant-1.6.1 > > > set > > PATH=3D%PATH%;%ANT_HOME%\bin;D:/vsanta/App(D)/GSNL/GSNLProject/G > > > SNL-UI/bui > > > ld; > > > > > > ant -l test1.log -buildfile Test1\build\build.xml > > > ant -l test2.log -buildfile Test2\build\build.xml > > > > > > Running build.bat...after executing first ant command > > i.e. build.xml > > > in Test1 folder(My build is success) > > > control is going to command prompt rather than executing=20 > > > another ant command. > > > > > > > > > Thanks, > > > Santa. > > > > > > ----------------------------------------- > > > This message and any attachments are intended only for the > > use of the > > > addressee and may contain information that is privileged and=20 > > > confidential. If the reader of the message is not the intended=20 > > > recipient or an authorized representative of the intended > > recipient, > > > you are hereby notified that any dissemination of this > > communication > > > is strictly prohibited. If you have received this communication in = > > > error, notify the sender immediately by return email and delete=20 > > > the message and any attachments from your system. > > > > > > > > > > > -------------------------------------------------------------------- > > - > > > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For=20 > > > 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 > > > > > > --------------------------------------------------------------------- > 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 > > --=20 Thank you Ramu S If A is success in life, then A equals x plus y plus z. Work is x; y is = play; and z is keeping your mouth shut. - Albert Einstein --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org