ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Miller" <dmill...@flashcom.net>
Subject Re: <exec>: where is preamble to bin/antRun set?
Date Mon, 13 Nov 2000 18:31:59 GMT
<exec> fails when I have antRun located in $ANT_HOME/bin/

$ANT_HOME is set correctly.

Using JDK1.3 is a possibility, but I'd rather not have 2 versions of JDK
floating around and we're not planning on upgrading any time soon...

Thanks for your help!

-David-

----- Original Message -----
From: Timothy Dawson <tdawson@is.com>
To: <ant-user@jakarta.apache.org>; 'David Miller' <dmiller1@flashcom.net>
Cc: <nmurphy@zucotto.com>; <miked@zucotto.com>
Sent: Friday, November 10, 2000 7:34 PM
Subject: RE: <exec>: where is preamble to bin/antRun set?


> a quick glance at Execute.java indicates that it's looking in
> $ANT_HOME/bin/antRun -- does that not work? (I don't have a linux install
> handy right now to try...)
>
> also, if you use JDK1.3, antRun is bypassed altogether, since Runtime's
> exec() command now allows setting a working directory, so all that mess of
> antRun and antRun.bat are unnecessary.
>
> if 1.3 is a possibility, I would recommend switching... (at least for
> running ant, if not your project)
>
> Tim
>
> > -----Original Message-----
> > From: David Miller [mailto:dmiller1@flashcom.net]
> > Sent: Friday, November 10, 2000 8:05 PM
> > To: ant-user@jakarta.apache.org
> > Cc: nmurphy@zucotto.com; miked@zucotto.com
> > Subject: <exec>: where is preamble to bin/antRun set?
> >
> >
> > So I am able to get <exec> to work with the original antRun
> > file supplied
> > with  my ant install (I am running in Linux), but there is
> > something very
> > strange going on. If my <project> base directory is called /foo then I
> > *must* have the file antRun located at /foo/bin/antRun
> > otherwise I get the
> > following error message:
> >
> > "Execute failed: java.io.IOException: /foo/bin/antRun: not found"
> >
> > This is slightly annoying since I didn't even have a /foo/bin
> > folder in my
> > project to begin with. Surprisingly, with ANT_HOME set to
> > /opt/ant, even if
> > I move antRun from ANT_HOME/lib (where it was originally
> > located) straight
> > into ANT_HOME, the ant build still cannot find the file antRun.
> >
> > I think the key question here is: Where is the preamble to
> > bin/antRun set.
> > Anyone know the answer to this one? Thanks!
> >
> >
> > ----- Original Message -----
> > From: Nathan Murphy <nmurphy@zucotto.com>
> > To: David Miller <dmiller1@flashcom.net>;
> > <ant-user@jakarta.apache.org>
> > Cc: Mike Dusseault <miked@zucotto.com>
> > Sent: Friday, November 10, 2000 2:16 PM
> > Subject: RE: <exec> command does not work
> >
> >
> > > Hello,
> > >
> > > We just experienced a similar problem.  The exec task runs either a
> > > batchfile or script depending on your os.  If you take a look at the
> > > antRun.bat (obviously for windows) and the antRun (script
> > for not windows)
> > > you will see a bunch of extra things going on in the script that we
> > thought
> > > was unnecessary.  So we replaced antRun with the closest
> > equivalent to the
> > > antRun.bat.
> > >
> > > #!/bin/sh
> > >
> > > (cd ${1}; ${2} ${3} ${4} ${5} ${6} ${7} ${8} ${9} )
> > >
> > > Seems to be working just fine now.
> > >
> > > --
> > > Zucotto Wireless Inc.
> > > Nathan Murphy, B.Eng Electrical
> > > Software Developer - LoadBuild Prime
> > > nmurphy@zucotto.com
> > > Phone:(613) 789-0090 ext. 426
> > > Fax:  (613) 789-0050
> > > http://www.zucotto.com
> > >
> > > -----Original Message-----
> > > From: David Miller [mailto:dmiller1@flashcom.net]
> > > Sent: Friday, November 10, 2000 3:17 PM
> > > To: ant-user@jakarta.apache.org
> > > Subject: Re: <exec> command does not work
> > >
> > >
> > > I have already set ANT_HOME . In any event, the rest of my
> > ant script
> > works
> > > fine - the only thing that does not work is the <exec>
> > command, and I
> > think
> > > the other stuff wouldn't work if ANT_HOME were not set
> > already. Any other
> > > ideas why my <exec> command would not be working?
> > >
> > > Thanks!
> > >
> > > -David-
> > >
> > >
> > > ----- Original Message -----
> > > From: Stefan Bodewig <bodewig@bost.de>
> > > To: <ant-user@jakarta.apache.org>
> > > Sent: Friday, November 10, 2000 12:57 AM
> > > Subject: Re: <exec> command does not work
> > >
> > >
> > > > David Miller <dmiller1@flashcom.net> wrote:
> > > >
> > > > > Hi,
> > > > >
> > > > > I am having trouble getting the <exec> command to run in my
ant
> > > > > build.xml file. The following simple example:
> > > > >
> > > > > <exec dir="." executable="ls" os="Linux" output="dir.txt" />
> > > > >
> > > > > produces a java.io.IOException. (...bin/antRun: not found...)
> > > >
> > > > You'll need set the environment variable ANT_HOME to point to the
> > > > directory where Ant has been installed.
> > > >
> > > > Stefan
> > > >
> > >
> > >
> > >
> >
> >
>


Mime
View raw message