ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Srikrishna_Parthasara...@timeinc.com>
Subject RE: Problems with property file task
Date Tue, 09 May 2006 16:30:04 GMT


-----Original Message-----
From: EJ Ciramella [mailto:ejciramella@upromise.com] 
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="build.properties"/>
   <echo message="Grabbing changes between ${datestart} - ${dateend}"/>
   <exec dir="." executable="p4.exe" output="mailbody.txt">
      <arg line="changes -l
//depot/up-svcs/lty/rel/LTY-R25.0/...@${datestart},@${dateend}"/>
   </exec>
   <mail mailhost="<somehost>" 
     subject="Deployment of ${version} complete" 
     messagefile="mailbody.txt">
      <from address="<fromadd>"/ <mailto:eciramella@upromise.com"/> >
      <replyto address="<replytoadd>"/
<mailto:eciramella@upromise.com"/> >
      <to address="<toadd>"/ <mailto:eciramella@upromise.com"/> >
    </mail>
  </target>
   <!-- datestart=2006/05/06\:23\:00 -->
   <propertyfile file="build.properties">
     <entry  key="datestart" type="date" value="${dateend}"
pattern="yyyy/MM/dd:HH:mm:ss"/>
     <entry  key="dateend" type="date" value="now"
pattern="yyyy/MM/dd:HH:mm:ss"/>
   </propertyfile>
   <delete file="mailbody.txt"/>
</project>
 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message