ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Preset execution environment
Date Tue, 06 Apr 2004 14:36:40 GMT
Invert that and it should work:


$ ant -Dbuildfile=project.xml mytarget

build.xml:
-----------
<project name="common">
    <import file=="${buildfile}"/>
    ...
</project>


Jan



> -----Original Message-----
> From: Johan Vromans CPWR [mailto:johan.vromans@nl.compuware.com]
> Sent: Tuesday, April 06, 2004 4:15 PM
> To: user@ant.apache.org
> Subject: Preset execution environment
> 
> 
> 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" />
>      ...
> 
> Is there a way to accomplish this?
> 
> -- Johan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message