ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Duffey, Kevin" <>
Subject RE: date?
Date Tue, 13 May 2003 19:11:15 GMT
You know, it's not working. I do this:

<target name="deploy">
	<antcall target="date"/>
	<echo message="${}  ${build.time}"/>
	<antcall target="drop"/>

<target name="date">
		<format pattern="MMddyyyy" property=""/>
		<format pattern="hhmmss" property="build.time"/>
	<echo message="${}  ${build.time}"/>

<target name="drop">
	<copy file="${dist.dir}/" tofile="${drop.dir}/archive/file-${}-${build.time}.zip"

When I run the deploy target, the call to the "date" target DOES echo the right date/time
in the right format. The <echo> AFTER the date target and before the drop target (in
the deploy target) prints out ${} ${build.time}.

The file that gets dropped to the ${drop.dir} shows file-${}-${build.time}.zip and
NOT the actual date and time.

So what am I missing? I thought perhaps because I didn't declare the and build.time
as properties above, so I tried that and that doesn't do anything either. Is this a bug with
ANT? I am assuming I am doing something wrong here.


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.467 / Virus Database: 266 - Release Date: 4/1/2003

The information contained in this e-mail message may be 
confidential and  protected from disclosure. If you are 
not the intended recipient, any dissemination, distribution
or copying is strictly prohibited. If you think that you 
have received this e-mail message in error,
please e-mail the sender at

View raw message