ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Vromans CPWR <>
Subject Re: Preset execution environment
Date Wed, 14 Apr 2004 14:49:22 GMT
Matt Benson wrote:
> "The new 1.6 'import' feature is great, but what I
> would like is a way to have 
> ant automatically execute a predefined import. For
> example:
>    ant --pre-import=common.xml --buildfile build.xml
> my-target
> This would behave as if build.xml started like:
>    <project ...>
>      <import file="common.xml" />
>      ...
> "

The underlying problem is to solve configuration problems in big 
projects by moving common settings to common files.
The "pre-import" would be very nice, but it would still require hard 
wired absolute pathnames in the build files or the invoking scripts.
The "floating import" (couldn't think of a better name) eliminates the 
need for the hard wired path names.

I hope this clarifies the relation.

-- Johan

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message