Answering my own question.
Use something like teh following::

    <u:properties var="props" file="${jarsListFile}"
/>
    <j:set var="jarsFlist" value="${props.getProperty(
'jarsFlist' )}" />

Cheers,
-- Chris 

--- Chris Berry <[EMAIL PROTECTED]> wrote:

> Greetings,
> I am trying to read a mutable property from a file
> (I
> use it within a loop). I have tried using the
> ant-contrib <var> task with "unset=true" -- as shown
> below. But this is not reseting the Ant property?? 
> 
> Does anyone know a maven way of reading properties
> from a file which allows for the properties to be
> true, mutable variables??
> 
> Thanks,
> -- Chris 
> 
> ---------------------
> This is what I tried::
> 
>     <ant:echo> ENTER jarsFlist= ${jarsFlist}
> </ant:echo>
>     <ant:var name="jarsFlist" unset="true" /> 
>     <ant:echo> UNSET jarsFlist= ${jarsFlist}
> </ant:echo>                     
>     <ant:property file="${jarsListFile}"/>
>     <ant:echo> FINAL jarsFlist= ${jarsFlist}
> </ant:echo>
> 
> -------------------------
> And this is what I see::
>     [echo]  ENTER jarsFlist=
>
commons-beanutils/jars/commons-beanutils-1.7.0.jar,commons-cli/jars/commons-cli-1.0.jar,commons-collections/jar
>
s/commons-collections-3.1.jar,commons-dbcp/jars/commons-dbcp-1.2.1.jar,commons-digester/jars/commons-digester-1.5.jar,commons-logging/jars/c
>
ommons-logging-1.0.3.jar,commons-messenger/jars/commons-messenger-1.0-dev-14.jar,commons-pool/jars/commons-pool-1.2.jar,dom4j/jars/dom4j-1.4
>
.jar,junit/jars/junit-3.8.1.jar,jms/jars/jms-1.0.2.jar,log4j/jars/log4j-1.2.8.jar,spiritcache/jars/spirit-cache-2.0.14.jar,xalan/jars/xalan-
>
2.5.1.jar,xerces/jars/xercesImpl-2.6.1.jar,xml-apis/jars/xml-apis-1.0.b2.jar,
>     [echo]  UNSET jarsFlist=
>
commons-beanutils/jars/commons-beanutils-1.7.0.jar,commons-cli/jars/commons-cli-1.0.jar,commons-collections/jar
>
s/commons-collections-3.1.jar,commons-dbcp/jars/commons-dbcp-1.2.1.jar,commons-digester/jars/commons-digester-1.5.jar,commons-logging/jars/c
>
ommons-logging-1.0.3.jar,commons-messenger/jars/commons-messenger-1.0-dev-14.jar,commons-pool/jars/commons-pool-1.2.jar,dom4j/jars/dom4j-1.4
>
.jar,junit/jars/junit-3.8.1.jar,jms/jars/jms-1.0.2.jar,log4j/jars/log4j-1.2.8.jar,spiritcache/jars/spirit-cache-2.0.14.jar,xalan/jars/xalan-
>
2.5.1.jar,xerces/jars/xercesImpl-2.6.1.jar,xml-apis/jars/xml-apis-1.0.b2.jar,
>     [echo]  FINAL jarsFlist=
>
commons-beanutils/jars/commons-beanutils-1.7.0.jar,commons-cli/jars/commons-cli-1.0.jar,commons-collections/jar
>
s/commons-collections-3.1.jar,commons-dbcp/jars/commons-dbcp-1.2.1.jar,commons-digester/jars/commons-digester-1.5.jar,commons-logging/jars/c
>
ommons-logging-1.0.3.jar,commons-messenger/jars/commons-messenger-1.0-dev-14.jar,commons-pool/jars/commons-pool-1.2.jar,dom4j/jars/dom4j-1.4
>
.jar,junit/jars/junit-3.8.1.jar,jms/jars/jms-1.0.2.jar,log4j/jars/log4j-1.2.8.jar,spiritcache/jars/spirit-cache-2.0.14.jar,xalan/jars/xalan-
>
2.5.1.jar,xerces/jars/xercesImpl-2.6.1.jar,xml-apis/jars/xml-apis-1.0.b2.jar,
> 
> 
> 
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Mail - Find what you need with new enhanced
> search.
> http://info.mail.yahoo.com/mail_250
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to