Redirection of the thread to the Ant Users List as I feel it's no more a
developpement question so please don't reply to the dev-list.
Xeno
----- Original Message -----
From: "Dominique Devienne" <[EMAIL PROTECTED]>
> And if you don't use that 'ts' ANT property to generate a properties file?
>
> And even if you do, shouldn't it be <propertyfile> or whatever else that
> when generating the properties file from <entry name="" value=""/> (or the
> likes) do the proper escaping for the value!?!?!?
HU? D�sol�, but I don't realy understand your question so here what I'ave
got for now :
<project name="Main Project Controler" default="foobar" basedir=".">
<target name="foobar" description="Setup the test Distribution name"
depends="pre-init">
<antcall target="init">
<!-- Served as the project name and also as the name for the project
directory -->
<param name="pjkName" value="Foo_"/>
</antcall>
</target>
<target name="pre-init" description="set default value for all project">
<!-- I know I could have used <entry key="ts" type="date" value="now"
.../> but for my need [I think] I need such value -->
<tstamp>
<format property="ts" pattern="dd.MM.yyyy G HH:mm:ss.SSS"
locale="CANADA_FRENCH"/>
</tstamp>
<!-- Unrelated code here -->
</target>
<!-- Project name must be setup before calling init (see ${pjkName}) -->
<target name="init" description="-> initialisation phase"
depends="pre-init">
<!-- Creation/Validation/Minimal Correction phase of the distribution
properties -->
<propertyfile file="pjk${pjkName}.properties" comment="Project ${pjkName}
properties">
<!-- Unrelated code here -->
<!-- Time Stamp -->
<entry key="${pjkName}.ts" value="${ts}"/>
<!-- Unrelated code here -->
</propertyfile>
<!-- Unrelated code here -->
</target>
</project>
Result property file :
#Project Foo_ properties
#Wed May 22 13:22:16 EDT 2002
Foo_.ts=22.05.2002 ap. J.-C. 13\:22\:15.896
> I recently learned that there's no escaping character for ANT, or XML for
> that matter, so why is there one here? --DD
>
> -----Original Message-----
> From: Erik Hatcher [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 22, 2002 12:30 PM
> To: Ant Developers List
> Subject: Re: I may have found a bug??
>
> How are you displaying the "ts" property? In a properties file? If so,
the
> backslashes are appropriate.
>
>
> ----- Original Message -----
> From: "Xeno" <[EMAIL PROTECTED]>
> To: "Ant Developers List" <[EMAIL PROTECTED]>
> Sent: Wednesday, May 22, 2002 1:02 PM
> Subject: I may have found a bug??
>
>
> > Hello all,
> > I'm somewhat new to ant and I think I have found a bug. I want some hint
> to
> > track it down. I'm using Ant 1.5b2 with JRE1.4.0 and Win2k. I'm trying
to
> > make a TimeStamp using this command :
> > <tstamp>
> > <format property="ts"
> > pattern="dd.MM.yyyy G HH:mm:ss.SSS "
> > locale="CANADA_FRENCH"/>
> > </tstamp>
> > I espected the given result to be like this: 22.05.2002 ap. J.-C.
> > 00:33:48.086
> > but I got this : 22.05.2002 ap. J.-C. 00\:33\:48.086
> >
> > Are the trailling slash appearing after I call the hour or the minute in
> the
> > pattern are normal? I got the same result without local... but only when
I
> > used pattern.
> >
> > Xeno,
> > French Student in a Frog world :P
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>