Calling a build.xml file from another location
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Ralph_Jocham
Posted On:   Monday, October 22, 2001 12:00 PM

I have the following dirctory stucture:
L:javasrc - src tree
L:java uild - build tree
L:javaant - versatile ant build.xml file

The build.xml file int l:javaant is configurated in the way that in can be used in each package.
In each directory/package it is called it builds all .java files. But build.xml has to be copied into the folder otherwise it doesn't work. I want to call ant with that remote build file (l:javaant uild.xml) but it shall run in the folder ant was started.
ie. ant -buildfile l:javaant uild.xml (this does not work)

Is that possible?

TIA
Ralph

Re: Calling a build.xml file from another location

Posted By:   Erik_Hatcher  
Posted On:   Monday, October 22, 2001 05:42 PM

I don't know of a cleaner way at the moment (but perhaps there is one), but you could likely override the "basedir" attribute using:


ant -Dbasedir=

About | Sitemap | Contact