Return-Path: Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 68537 invoked by uid 500); 24 Jun 2003 19:34:39 -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 68524 invoked from network); 24 Jun 2003 19:34:38 -0000 Received: from unknown (HELO empburexch.burlington.emptoris.com) (63.111.224.162) by daedalus.apache.org with SMTP; 24 Jun 2003 19:34:38 -0000 Received: by empburexch.burlington.emptoris.com with Internet Mail Service (5.5.2653.19) id ; Tue, 24 Jun 2003 15:33:02 -0400 Message-ID: <15717BB71A5CD411A01600508BDCC2E2021C0EB5@empburexch.burlington.emptoris.com> From: "Ciramella, EJ" To: 'Ant Users List' Subject: RE: AW: Ant start.bat ?!? Date: Tue, 24 Jun 2003 15:32:52 -0400 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C33A87.67876BB0" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N ------_=_NextPart_001_01C33A87.67876BB0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable I've had similar things happen, but it was because the user that starts = the task (using scheduled tasks) isn't the same as the one that is logged = in. The user that starts the task didn't have the access to the environment variables needed to run ant (java_home, ant_home, etc). I moved the = env vars from user to system and all problems went away. In a few batch files, I have a one-liner to run ant from a bat file - = just says "ant" and works fine. -----Original Message----- From: Dick Schulz [mailto:dschulz@us.ibm.com] Sent: Tuesday, June 24, 2003 12:16 PM To: Ant Users List Subject: Re: AW: Ant start.bat ?!? Yes, You must use a CALL like any other execution of a a program = withing a .bat file. I found that out the hard way the other day. BAT would = START ant, simpy using the ANT command, but exited the command shell = immediately afterward, rather than continuing on through my script. BTW, I notice that ANT passes a success rc=3D1, rather than Rc=3D0. Strange ... I = thought ... Dick Schulz Charlotte Financial Sector Development, I/T Support T/L 794-1682 (704) 594-1682 FAX (704) 594-4679 Lotus Notes: dschulz@ibmus E-mail: dschulz@us.ibm.com VM: idssmnt1@cltbds Jan.Materne@rzf.fin-nrw.de on 06/24/2003 11:19:39 AM Please respond to "Ant Users List" To: user@ant.apache.org cc: Subject: AW: Ant start.bat ?!? the "ant" starts a new batch file (%ant_home%\bin\ant.bat). And after = doing the "-help" that batch file exits the whole session. You have to do a "call ant -help". Jan > -----Urspr=FCngliche Nachricht----- > Von: Rebhan, Gilbert [mailto:Gilbert.Rebhan@huk-coburg.de] > Gesendet am: Dienstag, 24. Juni 2003 17:16 > An: ant_user (E-Mail) > Betreff: Ant start.bat ?!? > > > Hi, > > On a machine without adminrights, i set the variables in a bat-file > that looks like that : > > set ANT_HOME=3DY:\ant > set > = PATH=3D%PATH%;C:\Programme\JavaSoft\JDK\jdk1.3.1_03\bin;%ANT_HOME%\bin > set JAVA_HOME=3DC:\Programme\JavaSoft\JDK\jdk1.3.1_03 > ant -help > > When running that batchfile, cmd-windows pops up and > disappears immediately, > even with a 'pause' at the end ?! > > When starting a blank cmd-session and typing the same lines, > the cmd-window > remains and shows the expected output ! > > What's the reason for that behaviour, where + how to change > it [Ant\Bin\Ant.bat ?] ? > > thx for any advice !! > > bye4now, > Gilbert > > > > > --------------------------------------------------------------------- > 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_01C33A87.67876BB0--