I am trying to integrate github with ant migration tool and here is the description of the problem I am facing:
I download code from Github everyday and upload to my server using force IDE by right clicking on the classes and triggers folder in eclipse..I would like to avoid this and let ant take care of this.
So here is what I am trying and the problem I am running into:
Below is my directory structure:
and here is inside the src
folder…
src/ ├── applications ├── classes ├── components ├── documents ├── labels ├── layouts ├── objects │ ├── CustomObject.object ├── package.xml ├── pages ├── permissionsets ├── profiles ├── staticresources ├── tabs └── triggers
I modified the below section in the build.xml
file as shown below:
<!-- Deploy the unpackaged set of metadata retrieved with retrieveUnpackaged -->
<target name="deployUnpackaged">
<sf:deploy username="${sf.username}" password="${sf.password}" serverurl="${sf.serverurl}" maxPoll="${sf.maxPoll}" deployRoot="src" rollbackOnError="true"/>
</target>
And when I run the command ant deployUnpackaged
here is the error I am getting:
Best Answer
I think it might be a problem with the location of your ant-salesforce.jar file. I always include it in my repos in a lib folder. Take a look at my example repo for a structure that works.
Then, your command would include the -lib switch
Note, another way to deploy from Github is to use Andy Fawcett's fancy button.