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: Any way to optionally include an attribute in an ant task?
Date Tue, 24 Apr 2007 04:56:46 GMT
I dont know any ...

a) Why do you have "sometimes" the value for mainclass set and sometimes not? 
b) You could use conditional targets (<target if="mainclass">)


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Scott Simpson [mailto:ssimpson@local.com] 
>Gesendet: Montag, 23. April 2007 21:31
>An: user@ant.apache.org
>Betreff: Any way to optionally include an attribute in an ant task?
>
>I want to optionally include an attribute in a task. Is this possible?
>That is, I'm using the csc task and if I'm creating an executable, I
>want to include the attribute "mainclass" like
> 
><csc mainclass="..."
> 
>but if the "mainclass" property isn't set, I want it to run like
> 
><csc ...
> 
>without the mainclass attribute.
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message