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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
--
David Weintraub
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]