ant task email example

ant installjars
ant email



<?xml version="1.0" encoding="UTF-8"?>
<project name="SplashActivity" default="help">

<target description="Generates and send junit test reports" name="email">
  <mail mailhost="smtp.gmail.com"
      enableStartTLS="true"  
       mailport="465" password="*******" ssl="true" subject="1Q Transfer APK" user="kildongp@gmail.com"
       cclist="labj0812@gmail.com,wanna88@empal.com,amour10@daum.net"
       >
     <from address="amour10@finger.co.kr"></from>
     <replyto address="amour10@finger.co.kr"></replyto>
     <to address="bongfish@finger.co.kr"></to>
     
     <message>1Q 뱅킹이 성공적으로 빌드 되었습니다.</message>
     <attachments>
       <fileset dir="./bin">
          <include name="**/*debug.apk"></include>
      </fileset>
     </attachments>
  </mail>
</target>
<target name="install-jars" description="Install ANT optional jars">
        <mkdir dir="${user.home}/.ant/lib"/>
        <get dest="${user.home}/.ant/lib/mail.jar"       src="http://search.maven.org/remotecontent?filepath=javax/mail/mail/1.4.4/mail-1.4.4.jar"/>
        <get dest="${user.home}/.ant/lib/activation.jar" src="http://search.maven.org/remotecontent?filepath=javax/activation/activation/1.1/activation-1.1.jar"/>
    </target>

</project>

댓글