You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Marc Dugger <ma...@socotech.com> on 2003/12/11 14:15:22 UTC
returning var value to initial value
If I define 'foo=something' in a build.properties or project.properties and
I <j:set var="foo" value="bar" /> in maven.xml, is there a way I can return
'foo' to the original value (i.e. re-initialize?) defined in
build.properties or project.properties without having to <j:set var="foo"
value="something" />?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: returning var value to initial value
Posted by "Jefferson K. French" <je...@frenches.org>.
I don't know if there is a builtin way, but would this work?
<j:set var="foo.orig" value="${foo}" />
<j:set var="foo" value="bar" />
<!-- At some later point... -->
<j:set var="foo" value="${foo.orig}" />
I couldn't tell from your question if you were trying to avoid the
j:set altogether, or just avoid hardcoding the original value.
Jeff
On Thu, 11 Dec 2003, at 07:15:22 [GMT -0600] Marc Dugger wrote:
> If I define 'foo=something' in a build.properties or project.properties and
> I <j:set var="foo" value="bar" /> in maven.xml, is there a way I can return
> 'foo' to the original value (i.e. re-initialize?) defined in
> build.properties or project.properties without having to <j:set var="foo"
value="something" />>?
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
--
mailto:jeff@frenches.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org