ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank W. Zammetti" <fzli...@omnytex.com>
Subject Re: AW: Way to refresh properties?
Date Tue, 14 Feb 2006 17:04:27 GMT
That didn't work for me... maybe I should explain in more detail...

I have an external properties file.  This file has some properties that
all either have the value true or false.  In a target I use Antform to set
these properties.  Antform rewrites that properties file with the
appropriate values.

Now, within that target, the properties are set according to what I do on
the form (and matches the properties file written at that point). 
However, in a later target, the value of a given property is the value
that was in the file BEFORE Antform rewrote it, i.e., it is the value is
started out as when the script ran.

So, I need a way to tell Ant to reload that properties file and update the
values accordingly.  Alternatively, I need a way for the property values
set in the one task to replicate to the rest of the script (some sort of
scoping issue, but I'm not sure how to deal with it).

Thanks!

P.S., I just noticed <LoadProperties>, but that didn't seem to do it either.

-- 
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM: fzammetti
Yahoo: fzammetti
MSN: fzammetti@hotmail.com

On Tue, February 14, 2006 11:57 am, Jan.Materne@rzf.fin-nrw.de said:
> <echoproperties destfile=""/>
>
> Jan
>
>>-----Urspr√ľngliche Nachricht-----
>>Von: Frank W. Zammetti [mailto:fzlists@omnytex.com]
>>Gesendet: Dienstag, 14. Februar 2006 17:54
>>An: user@ant.apache.org
>>Betreff: Way to refresh properties?
>>
>>Is there a way to refresh properties stored in an external
>>properties file?
>>
>>I'm playing with Antform, and the situation I have is that
>>when I set some properties with it, they don't get changed
>>right away apparently... so, one way to solve it would be if I
>>could tell Ant to reload the properties from the file that was
>>written out by Antform.
>>
>>Is that possible?  Thanks!
>>
>>--
>>Frank W. Zammetti
>>Founder and Chief Software Architect
>>Omnytex Technologies
>>http://www.omnytex.com
>>AIM: fzammetti
>>Yahoo: fzammetti
>>MSN: fzammetti@hotmail.com
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For
>>additional commands, e-mail: user-help@ant.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message