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: Sub-Target
Date Wed, 02 Mar 2005 06:38:15 GMT
1. choice: <target depends="other">
   It describes the build dependency and doesnt come from "thinking
procedural"
2. choice: <macrodef>
   for reuse of common code
3. choice: <antcall>
4. choice: <ant>
   it starts a new Ant instance which in turn opens a new scope for
properties
   (called target could set the same prop every time new) - but it´s
difficult
   to return values (use <echo> and <property file> for handling external
prop files)

Just my opinion :)

Jan

> -----Ursprüngliche Nachricht-----
> Von: OpenLDAP User [mailto:openldap@dealraider.com]
> Gesendet am: Dienstag, 1. März 2005 20:32
> An: willydw@telenet.be; user@ant.apache.org
> Betreff: Re: Sub-Target
> 
> You can use antcall
> 
> Or, better, you can do this with dependencies. If target2 depends on
> target1 being executed first, then add target1 to the depends list
> attribute of target2.
> 
> > Hi,
> > How can I call a target in a target?
> > Example:
> > 	<target name="target1" ...>
> > 	   ...
> > 	</target>
> > 	<target name="target2" ...>
> > 	   ---> how calling 'target1' here?
> > 	</target>
> > Please some help
> > TIA
> > Willy
> > 
> > 
> > 
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> > For additional commands, e-mail: user-help@ant.apache.org
> > 
> > 
> > 
> 
> -- 
> 
> 
> ---------------------------------------------------------------------
> 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