At 04:44 PM 6/5/01 +0100, Jose Alberto Fernandez wrote: >> From: Peter Donald [mailto:[EMAIL PROTECTED] >> >> >How can I pass a type-value as a parameter to <ant*> I >> probably do not want >> >to have to declare the value since I do not want a binding >> created on the >> >calling project. >> >> As datatype instances are just properties, you pass like any >> other property. >> >> <ant ... > >> <param name="blah" value="${my.fancy.new.fileset.instance}" /> >> </ant> >> > >What I meant to ask was whether is is possible to pass a value without >declaring a property in the CALLER project with that value. > > <ant ...> > <param name="myProp" value="3"/> <!-- I do not need to define a prop --> > <param name="filesetvalue" > > <fileset ....> <!-- I want to be able to use a locally defined fileset > like I can do on the <javac> task, for >example --> > </param> > </ant> > >That is what I would like to get solved.
It would be easy to implement (assuming we have a DataType interface). Not sure if it is a good idea though. I suppose it could be useful if you had a large number of ant-calls. Cheers, Pete *-----------------------------------------------------* | "Faced with the choice between changing one's mind, | | and proving that there is no need to do so - almost | | everyone gets busy on the proof." | | - John Kenneth Galbraith | *-----------------------------------------------------*
