ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "EJ Ciramella" <>
Subject RE: Problems with property file task
Date Tue, 09 May 2006 15:57:14 GMT
Nevermind - my close target task is what was goofing it up. 

-----Original Message-----
From: EJ Ciramella [] 
Sent: Tuesday, May 09, 2006 11:10 AM
To: Ant Users List
Subject: Problems with property file task

Hey guys, I'm having a bit of an issue with the propertyfile task.  I
have a build script that captures a date range worth of changes to a
file then use that file as the message body for an email:
<project name="datetest" default="build" basedir=".">
 <target name="build">
   <property file=""/>
   <echo message="Grabbing changes between ${datestart} - ${dateend}"/>
   <exec dir="." executable="p4.exe" output="mailbody.txt">
      <arg line="changes -l
   <mail mailhost="<somehost>" 
     subject="Deployment of ${version} complete" 
      <from address="<fromadd>"/ <"/> >
      <replyto address="<replytoadd>"/
<"/> >
      <to address="<toadd>"/ <"/> >
   <!-- datestart=2006/05/06\:23\:00 -->
   <propertyfile file="">
     <entry  key="datestart" type="date" value="${dateend}"
     <entry  key="dateend" type="date" value="now"
   <delete file="mailbody.txt"/>
What's weird is, if I leave in the propertyfile task, the mailbody.txt
file is blank, if I comment it out, I get exactly what I'm expecting.
What is propertyfile doing and why is mailbody.txt blank?

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message