Skip to main content



      Home
Home » Archived » Buckminster » Ant relative path issue in a buckminster.prebind
Ant relative path issue in a buckminster.prebind [message #501196] Tue, 01 December 2009 08:43 Go to next message
Eclipse UserFriend
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 10:57 Go to previous message
Eclipse UserFriend
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
>
>
>
>
Previous Topic:Prdocut Build fails because of missing requirement
Next Topic:NullPointerException in CertificateChecker
Goto Forum:
  


Current Time: Sun Jul 06 13:53:36 EDT 2025

Powered by FUDForum. Page generated in 0.03298 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top