<target name="all">
    <ant target="one"/>
    <ant target="two"/>
</target>

Keith


-----Original Message-----
From: Kasparek, Bernadette [mailto:[EMAIL PROTECTED] 
Sent: 14 February 2005 12:51
To: 'Ant Users List'
Subject: AW: Two targets with the same depends-target


I need the following behavivor:

Ant all  --> common, one, common, two

What can I do?

Bernadette 

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 14. Februar 2005 13:44
An: user@ant.apache.org
Betreff: AW: Two targets with the same depends-target

Maybe you´re expecting the wrong thing ...

The current behaviour is that:
<project>
    <target name="common">
        <echo>Common</echo>
    </target>
    <target name="one" depends="common">
        <echo>one</echo>
    </target>
    <target name="two" depends="common">
        <echo>two</echo>
    </target>
    <target name="all" depends="one,two"/>
</project>

ant one     --> common, one
ant one two --> common, one, common, two
ant all     --> common, one, two



What do you expect?

Jan


> -----Ursprüngliche Nachricht-----
> Von: Kasparek, Bernadette [mailto:[EMAIL PROTECTED]
> Gesendet am: Montag, 14. Februar 2005 13:26
> An: user@ant.apache.org
> Betreff: Two targets with the same depends-target
> 
> Hi everybody,
> 
> I want two targets to have the same depend-target, but the
> second target
> doesn't call the depend-target again.
> 
> Example:
> <target name="mkdir-1" depends="prepare-common">              
>       
> make something
>       
> </target>
>       
> <target name="mkdir-2" depends="prepare-common">              
>       
> Make something
>       
> </target>
> 
> Here "prepare-common" is only called for "mkdir-1" not for "mkdir-2".
> 
> Can you help me?
> 
> Thank you very much.
> 
> Bernadette Kasparek
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to