ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ioan Mitrea <ioan.mit...@lutris.com>
Subject Re: How to get property value in task arguments?
Date Wed, 17 Jan 2001 13:30:55 GMT
maybe the properties prop1 prop2 prop3 were already assigned values
before you declared them: they were set in an properties file or they
were inherited from
a parent project ?
 

Ioan


Vineet Bhatia wrote:
> 
> Hi all,
> 
> I have written a task which makes use of the VSSGET task.
> In my build.xml file I invoke it like this -
> 
> ...
> ...
> <property name="prop1"  value="prop1 value" />
> <property name="prop2" value="prop2 value" />
> <property name="prop3" value="prop3 value" />
> ...
> ...
> <target name="main">
>         <myTask arg1="${prop1}"
>                 arg2="${prop2}"
>                 arg3="${prop3}"
>                 blah="blah"
>         />
> </target>
> 
> For some reason this does not work.
> I do not get the value of the argument for myTask.
> I get ${prop1} as the value for arg1??
> What am I doing wrong?
> 
> - vineet
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ant-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: ant-dev-help@jakarta.apache.org

Mime
View raw message