M
moi
Hello,
how can i use the "mail" task in my Ant script without modifying my system
CLASSPATH? I would like to change the classpath in the build.xml file, but
i don't manage to make the mail task to use the new classpath.
Does anyone know how to do this?
<project basedir="." default="mail" name="myProject">
<target name="mail">
<!-- How to use this ? -->
<classpath>
<pathelement path="${java.class.path}"/>
<fileset dir="javamail/lib">
<include name="*.jar"/>
</fileset>
</classpath>
<!-- Warning: needs javamail libs in the classpath -->
<mail mailhost="mail.lan"
subject="Performance tests results"
encoding="mime">
<from address="from@lan" />
<replyto address="from@lan" />
<to address="to@lan" />
<message>Report files</message>
<fileset file="file1.txt"/>
<fileset file="file2.txt"/>
</mail>
</target>
</project>
how can i use the "mail" task in my Ant script without modifying my system
CLASSPATH? I would like to change the classpath in the build.xml file, but
i don't manage to make the mail task to use the new classpath.
Does anyone know how to do this?
<project basedir="." default="mail" name="myProject">
<target name="mail">
<!-- How to use this ? -->
<classpath>
<pathelement path="${java.class.path}"/>
<fileset dir="javamail/lib">
<include name="*.jar"/>
</fileset>
</classpath>
<!-- Warning: needs javamail libs in the classpath -->
<mail mailhost="mail.lan"
subject="Performance tests results"
encoding="mime">
<from address="from@lan" />
<replyto address="from@lan" />
<to address="to@lan" />
<message>Report files</message>
<fileset file="file1.txt"/>
<fileset file="file2.txt"/>
</mail>
</target>
</project>