一旦 RunTests 完成,我想调用 sendmail,但它不起作用
<project name="Sample usage of Salesforce Ant tasks" basedir="." xmlns:sf="antlib:com.salesforce" default="RunTests">
<!--******************************************* P R O P E R T Y F I L E *********************************************-->
<property file="build.properties"/>
<property environment="env"/>
<!--*******************************************RunTests***********************************************************-->
<target name="RunTests">
<record name="RunTest.log" action="start"/>
<sf:compileAndTest username="${sf.backup_username}" password="${sf.backup_password}" serverurl="${sf.backup_serverurl}" >
<runTests Alltests="true"/>
</sf:compileAndTest>
<record name="RunTest.log" action="stop"/>
</target>
<target name="sendmail" depends="RunTests">
<mail mailhost="email.corp.testcompany.com" mailport="25" subject="Run all tests - Sandbox 1337" messagefile="RunTest.log">
<from address="user2@testcompany.com"/>
<replyto address="user2@testcompany.com"/>
<to address="user2@testcompany.com"/>
</mail>
</target>
</project>
我得到以下失败 -
构建失败 C:\ANT_HOME\QA_1337_TestRunner\build.xml:8: 失败:
即使早期任务失败,有什么方法可以执行“sendemails”任务。