ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: Using -buildfile without setting the basedir?
Date Mon, 04 Feb 2008 21:27:51 GMT
basedir is set in the <project> attribute in the build.xml file. Try
setting it on the command line:

    $ ant -Dbasedir=$PWD -f /a/b/build.xml

That *should* override the setting.

On Feb 3, 2008 6:14 PM, Francisco Tolmasky <tolmasky@gmail.com> wrote:
> I'm trying to use a build file that is located in a different
> directory by doing the following:
>
> ant -f a/b/thebuild.xml
>
> However, this has the side effect of changing my basedir to a/b/ as
> well, which I don't want,
> I just want to run ant in my current directory with the build file of
> a different directory. Any
> thoughts?
>
> Thanks,
>
> Francisco
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>



-- 
--
David Weintraub
qazwart@gmail.com

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message