ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dominique Devienne <DDevie...@lgc.com>
Subject RE: propertyfile and time format
Date Fri, 21 Mar 2003 19:37:51 GMT
Maybe <echoproperties> won't do the escaping!?!?!? Or write the file
manually using <echo>, if you have a finite and known set of properties that
is. --DD

-----Original Message-----
From: Donal Quinlan [mailto:donal@savvion.com] 
Sent: Friday, March 21, 2003 1:31 PM
To: Ant Users List
Subject: Re: propertyfile and time format

Thought it was something like that. Thanks Dominique. I should expect this
when <propertyfile> is used to generate something that won't be used as a
property file.

I can always parse it if it too many people are unhappy with the \. or maybe
even rely on the commented timestamp.

Thanks

Donal

----- Original Message -----
From: "Dominique Devienne" <DDevienne@lgc.com>
To: "'Ant Users List'" <user@ant.apache.org>
Sent: Friday, March 21, 2003 11:07 AM
Subject: RE: propertyfile and time format


> It's the Properties format, as defined in the JDK javadoc. Removing the \
> makes that properties file invalid... Has nothing to do with Ant. --DD
>
> -----Original Message-----
> From: Donal Quinlan [mailto:donal@savvion.com]
> Sent: Friday, March 21, 2003 1:05 PM
> To: Ant Users
> Subject: propertyfile and time format
>
> Does anyone know how to make
>
> #Build Information
> #Fri Mar 21 11:01:10 PST 2003
> build.time=11\:01
>
> appear as
>
> #Build Information
> #Fri Mar 21 11:01:10 PST 2003
> build.time=11:01
>
> that is without escaping the :
>
> This is how I am generating the time at the moment
> <entry key="build.time" type="date" value="now" pattern="HH:mm"/>
>
> The ant documentation gives me the impression that this \ is a feature.
> Unfortunately it is a feature I don't want in this case.
>
> Thanks
>
> Donal
>
> ---------------------------------------------------------------------
> 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