ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kasparek, Bernadette" <Bernadette.Kaspa...@bayernlb.de>
Subject AW: Two targets with the same depends-target
Date Mon, 14 Feb 2005 12:51:00 GMT
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
> 
> 

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