- How to send email out of ant
<!-- send mail --> <mail mailhost="${email.smtp.host}" mailport="25" subject="Failure: EODCheck ${BatchZone}" from ="${email.supp.addr}" tolist="${email.supp.addr}" encoding="mime" messagemimetype="text/html" > <message>The EOD Check failed, please find the attached query and result for more details.</message> <attachments> <filelist > <file name="@{file}.out"/> <file name="@{file}"/> </filelist> </attachments></mail>- How to include jar file without adding to %ANT_HOME%/lib
use the -lib command option.
e.g. below command will load the .jar files in the .\lib\jar folder. ant -lib lib\jar PreEOD_US