Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Ant1.5.4: How to "accumulate " values into a string?

Ant1.5.4: How to "accumulate " values into a string?

2005-06-12       - By Jeffrey E Care
Reply:     1     2  

You could echo the strings to a temporary file (using append mode) & then
load the file into a property once all the antcall invocations are
complete.

--
Jeffrey E. Care (carej@(protected))
WebSphere Build SWAT Team Lead
WebSphere Build Tooling Lead (Project Mantis)
https://w3.opensource.ibm.com/projects/mantis


"Karr, David" <david.karr@(protected)> wrote on 06/12/2005 06:32:48 PM:

> Is there any way to "accumulate" values into a stringbuffer and then
> later get back the accumulation?  I can't do this with properties, as
> they apparently can't be used that way.
>
> I have a target that is going to call another target several times, each
> time passing a parameter.  In that target, I want to store the parameter
> so that after the main target has finished calling the subtarget N
> times, I want to then extract what has been accumulated.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.