Hello,

I see what you mean and agree.
The worse case would be when we have something like
@prop1@@prop2@
in the template files

For the start of the property, I guess we can find it out in the
template (looking for the index of @). The end is much trickier.

Thank you anyway.

Patrick

On 9/6/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> No there isnt.
>
> And I think this cant be done:
> If you combine the template with the property values you doesnt have any 
> markers where a property value starts and where it ends (if your template 
> doesnt provide these). Therefore you cant parse the resulting file.
>
> Example:
>
> template
>   this @value@ file
> property
>   value=is a sample
> result
>   this is a sample file
>
> How you would parse the "this is a sample file" string?
>
>
> Jan
>
> >-----Ursprüngliche Nachricht-----
> >Von: Patrick Martin [mailto:[EMAIL PROTECTED]
> >Gesendet: Donnerstag, 6. September 2007 10:18
> >An: Ant User
> >Betreff: extract properties from file and corresponding template
> >
> >Hello,
> >
> >I have a file that was generated from a template and a set of
> >properties using ant filters.
> >Basically, the template contained tokens like @my.property@ which
> >where replaced by the corresponding value of ${my.property}.
> >template + properties >>> file
> >
> >Now, I'd like to be able to get the set of properties back from this
> >file and the corresponding template.
> >file + template >>> properties
> >
> >Is there any task out there that already exists for that?
> >
> >Thank you,
> >
> >Patrick
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to