ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hynes Fintan <>
Subject RE: "if" attribute to "arg"
Date Fri, 07 Nov 2003 11:37:05 GMT
Try this... it is rather ugly, though.
(There is probably a simpler way.. anyone?)

<property name="do.print" value="true"/>
<target name="do_print">
	<antcall target="do_with_print"/>
	<antcall target="do_wout_print"/>
<target name="do_with_print" if="do.print">
	<exec executable="myprg">
		<arg value="-p"/>
<target name="do_wout_print" unless="do.print">
	<exec executable="myprg"/>

-----Original Message-----
From: Patrick Martin []
Sent: 07 November 2003 11:30
To: 'Ant Users List'
Subject: "if" attribute to "arg"


It seems that there is no "if" attribute to "arg".

How is it possible do something like:

<property name="do.print" value="true"/>
<exec executable="myprg">
  <arg value="-p" if="do.print"/>

Thank you,


Confidentiality Notice: The information contained in this e-mail message is
intended only for the personal and confidential use of the recipient(s)
named above. If the reader of this message is not the intended recipient or
an agent responsible for delivering it to the intended recipient, you are
hereby notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is strictly
prohibited. If you have received this communication in error, please notify
us immediately by e-mail, and delete the original message. 

Message confidentiel : Les informations contenues dans ce message sont
destinees a un usage personnel et confidentiel du destinataire indique
ci-dessus. Si le lecteur de ce message n'est pas le destinataire prevu, ou
n'est pas une personne en charge de le delivrer au destinataire voulu, vous
etes par la presente informe que vous avez recu ce document par erreur, et
que tout examen, transmission, distribution ou copie de ce message est
totalement interdit. Si vous avez recu cette communication par erreur, nous
vous remercions de bien vouloir nous avertir immediatement par e-mail et de
detruire le message d'origine.
This e-mail and any files transmitted with it are confidential and may be
privileged and are intended solely for the individual named/ for the use of
the individual or entity to whom they are addressed.If you are not the
intended addressee, you should not disseminate, distribute or copy this
e-mail.Please notify the sender immediately if you have received this e-mail
by mistake and delete this e-mail from your system.If you are not the
intended recipient, you are notified that reviewing, disclosing, copying,
distributing or taking any action in reliance on the contents of this e-mail
is strictly prohibited.Please note that any views or opinions expressed in
this e-mail are solely those of the author and do not necessarily represent
those of Traventec Limited.E-mail transmission cannot be guaranteed to be
secure or error-free as information could be intercepted, corrupted, lost,
destroyed, or arrive late or incomplete.Traventec Limited therefore does not
accept liability for any errors or omissions in the contents of this
message, which arise as a result of e-mail transmission.The recipient should
check this e-mail and any attachments for the presence of viruses.This
e-mail has been swept for computer viruses however Traventec Limited accepts
no liability for any damage caused by any virus transmitted by this e-mail.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message