ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Panwar, Vinay" <Vinay.Pan...@intertrade.com>
Subject mail issue
Date Thu, 05 Apr 2001 17:59:20 GMT
Hi

Hi

IM trying to send out email of the build results using the following code in
my build.xml.

<project name="iTrade" default="build" basedir=".">
...
...
..

<target name="build">
    <javac srcdir="${java.dir}"
      destdir="${build.classes}"
      debug="${debug}"
      deprecation="${deprecation}"
      optimize="${optimize}" >
      <classpath refid="classpath" />
</javac>
..
..
..

 <target name="mail" depends="build">   
   <mail from=" "
    tolist=" "
    mailhost="localhost"
    subject="Results of test build"
    message="Please read through the contents"
    files="d:\jakarta-ant-1.3\build.txt"/>
 </target>

What is happening is that the mail is getting sent out only when the build
is successful, ie, there are no javac errors. But if the build fails then no
mail is sent out. But in both the cases, the build.txt file is generated,
with the correct output. What am i doing wrong. Please let me know.

Thanks
-Vinay

Mime
View raw message