Ant relative path issue in a buckminster.prebind [message #501196] |
Tue, 01 December 2009 13:43  |
Eclipse User |
|
|
|
I have a nested set of build.xml files that are invoked via:
Script 1 located in directory_a which is called by a buckminster.prebind.
<ant antfile="build.xml" dir="directory_b" inheritAll="false" />
Script 2 located in directory_b:
<ant antfile="build.xml" dir="directory_c" inheritAll="false" />
Script 3 located in directory_c:
<property name="MyHome" value="."/>
${MyHome} in Script 3 will point to "directory_a" not "directory_c"
We have been using these scripts for years and only experience this issue
when using the buckminster.prebind. It does not occur when using an ant
builder in eclipse or when doing ant from the command line. Is there a
parameter/workaround that I am missing?
Thanks,
Corey
|
|
|
Re: Ant relative path issue in a buckminster.prebind [message #501239 is a reply to message #501196] |
Tue, 01 December 2009 15:57  |
Eclipse User |
|
|
|
It looks as though Buckminster sets the basedir when running ant. I managed
to get my ant build to work by using a java task within ant to manually run
an ant launcher. However, I am hoping for a better way.
Thanks,
Corey
"Corey Zimmet" <zimmetc@bit-sys.com> wrote in message
news:hf36hv$6ah$1@build.eclipse.org...
>I have a nested set of build.xml files that are invoked via:
>
> Script 1 located in directory_a which is called by a buckminster.prebind.
> <ant antfile="build.xml" dir="directory_b" inheritAll="false" />
> Script 2 located in directory_b:
> <ant antfile="build.xml" dir="directory_c" inheritAll="false" />
> Script 3 located in directory_c:
> <property name="MyHome" value="."/>
>
>
> ${MyHome} in Script 3 will point to "directory_a" not "directory_c"
>
> We have been using these scripts for years and only experience this issue
> when using the buckminster.prebind. It does not occur when using an ant
> builder in eclipse or when doing ant from the command line. Is there a
> parameter/workaround that I am missing?
>
> Thanks,
> Corey
>
>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.04062 seconds