ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject AW: AW: AntBuildLib with generic targets possible ?
Date Thu, 19 Aug 2004 10:18:50 GMT
why not just

<target name="default" depends="init-props"> ?

Otherwise you need that the called project sets values in the caller, which
is not possible.

Jan

> -----Urspr√ľngliche Nachricht-----
> Von: Thomas Hackel [mailto:thomas.hackel@bi-so.com]
> Gesendet am: Donnerstag, 19. August 2004 12:17
> An: Ant Users List
> Betreff: Re: AW: AntBuildLib with generic targets possible ?
> 
> Hi!
> 
> Thanks for your advice but i allready use the import task.
> 
> i give you an stupid example which shows that this does not work!
> 
> --- begin build.xml ---
> <project name="project" default="default">
>      <target name="default">
>          <antcall target="init-props" />
>          <echo>p1: ${p1}</echo>
>      </target>
> 	<import file="common.xml"/>
> </project>
> --- end build.xml ---
> 
> --- begin common.xml ---
> <project name="common" default="init-props">
>      <target name="init-props">
>      	<property name="p1" value="value1" />
>      </target>
> </project>
> --- end common.xml ---
> 
> Bye
> Thomas
> 
> ---------------------------------------------------------------------
> 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