ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <jakarta-...@ehatchersolutions.com>
Subject Re: Running build.xml located in jar file
Date Mon, 10 Feb 2003 20:50:50 GMT
On Monday, February 10, 2003, at 03:26  PM, Tony Obermeit wrote:
> Some time ago Erik replied to this post, in the skeleton he 
> referenced, (listed below), the code loads the project from a file and 
> runs it.  My question is this, I typically run ant specifying a 
> propertyfile on the command line argument, how can I get the 
> programmatic invocation of ant to recognize / load the properties from 
> a file.  I can't specify the property file within the build script for 
> a variety of reasons.
>

Have a look at Ant's Main.java and emulate that.  the -propertyfile 
handling is done there, and you are attempting to emulate what is done 
there to configure a Project.  You'll just have to use good ol' 
cut-and-paste inheritance on this one, I'm afraid.

> By the way, Erik, thanks for the work you put in to the "Java 
> Development with Ant" book, it has been a great help!!!

Thank you!

	Erik


Mime
View raw message