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:[EMAIL PROTECTED]
> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

Reply via email to