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:[EMAIL PROTECTED] >Gesendet: Montag, 23. April 2007 21:31 >An: [email protected] >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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
