Sorry type-o on my end...
I am unfamiliar with <unset> - that's from ant contrib????
That is strange...the unset I mean not working...
How about trying
<var name="myVar" unset="true" value="@{package}"/>
On Thu, 22 Jan 2009, norken76 wrote:
<unset> does not support 'unset' attribute, unset itself is to unset a
variable.
I have even tried : <var name="myVar" unset="true"/>
but still no luck. it looks like the variable get's stuck somewhere only for
the called target :)
thanks
Scot P. Floess-2 wrote:
How about,
<unset name = "myVar" unset = "true"/>
On Thu, 22 Jan 2009, norken76 wrote:
sure here it is :
<!-- the 'myVar' variable gets the right value inside the sequential tag,
but not in the called target.
it keeps always the same value in there despite the 'unset' ??? -->
<target name="forTest">
<for param="package">
<path>
<fileset dir="folder" includes="*.zip"/>
</path>
<sequential>
<echo message="current package : @{package} "/>
<var name="myVar" value="@{package}"/>
<echo message="my var is : ${myVar} "/>
<call target="runtargetTest2"/>
<unset name="myVar"/>
</sequential>
</for>
</target>
<target name="runtargetTest2">
<echo message="Running test2 . package is : ${myVar}.."/>
</target>
thank you
--
View this message in context:
http://www.nabble.com/Call-a-target-with-parameter--tp12050352p21610828.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
--
View this message in context:
http://www.nabble.com/Call-a-target-with-parameter--tp12050352p21611257.html
Sent from the Ant - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
Scot P. Floess
27 Lake Royale
Louisburg, NC 27549
252-478-8087 (Home)
919-754-4592 (Work)
Chief Architect JPlate http://sourceforge.net/projects/jplate
Chief Architect JavaPIM http://sourceforge.net/projects/javapim
Architect Keros http://sourceforge.net/projects/keros
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]