You need to sign in to do that
Don't have an account?
ANT deploy problems
<project name="LeadCleaner2" basedir="." xmlns:sf="antlib:com.salesforce">
<property file="build.properties"/>
<property environment="env"/>
<!-- Deploy to server -->
<target name="deploy">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="12.0"
baseDir=".">
<runTests>
<class>LeadCleaner2</class>
</runTests>
</sf:compileAndTest>
</target>
<!-- Cleans up above. (Deletes can be combined with compiles.) -->
<target name="delete">
<sf:compileAndTest username="${sf.username}" password="${sf.password}" server="${sf.serverurl}" apiversion="12.0">
<deleteClass>LeadCleaner2</deleteClass>
<deleteTrigger>LeadCleaner2</deleteTrigger>
</sf:compileAndTest>
</target>
</project>
What am I doing wrong, and how is it the LeadCleaner project in the build.xml file doesn't reference the LeadCleaner2 class and trigger?
What's weird though is that in spite of the 'BUILD FAILED' and the error message I provided, the trigger and class were both deployed anyway into production. I remember seeing upper and lower case variations of how I wrote 'LeadCleaner2", so I'm wondering if the ANT command is case sensitive when checking the name in the build file, the name in the trigger and class files, as well as how I wrote it in the command.
Fortunately (or not) I was able to load and delete the trigger as necessary, but I still don't understand the error message or why it loaded the trigger and class even though the Build Failed.