ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <khat...@axiomsystems.com>
Subject RE: Two targets with the same depends-target
Date Mon, 14 Feb 2005 16:11:25 GMT
<target name="all">
    <ant target="one"/>
    <ant target="two"/>
</target>

Keith


-----Original Message-----
From: Kasparek, Bernadette [mailto:Bernadette.Kasparek@bayernlb.de] 
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: Jan.Materne@rzf.fin-nrw.de [mailto:Jan.Materne@rzf.fin-nrw.de] 
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:Bernadette.Kasparek@bayernlb.de]
> 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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message