ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Martin" <antu...@gmail.com>
Subject Re: extract properties from file and corresponding template
Date Thu, 06 Sep 2007 08:47:55 GMT
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, Jan.Materne@rzf.fin-nrw.de <Jan.Materne@rzf.fin-nrw.de> 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:antuser@gmail.com]
> >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: 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