I am trying to deploy just classes
folder as I am not able to deploy entire src
folder because of size issue as mentioned in this post
Here is the task I added in my build.xml
:
<target name="deployClasses">
<sf:deploy username="${SFDC.username}" password="${SFDC.password}"
sessionId="${SFDC.sessionId}" serverurl="${SFDC.serverurl}"
maxPoll="600" deployRoot="../src/classes" rollbackOnError="true"
allowMissingFiles="true" pollWaitMillis="30000"/>
</target>
and here is the log when I run ant deployClasses
from command prompt:
john@john:~/mm_workspace/my_SFDC_Project/ant_deploy$ ant deployClasses
Buildfile: /home/john/mm_workspace/my_SFDC_Project/ant_deploy/build.xml
deployClasses:
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request ID for the current deploy task: 0Af29000001K8MECA0
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: Pending
[sf:deploy] Request Status: Succeeded
[sf:deploy] *********** DEPLOYMENT SUCCEEDED ***********
[sf:deploy] Finished request 0Af29000001K8MECA0 successfully.
BUILD SUCCESSFUL
Total time: 1 minute 28 seconds
Log shows everything deployed successfully but in the below screenshot it shows zero:
Also here is my package.xml
contents present inside the src/classes
directory:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
<members>*</members>
<name>ApexClass</name>
</types>
<version>31.0</version>
</Package>
EDIT:
Here is my directory structure as requested in the comments:
john@john:~/mm_workspace/my_SFDC_Project$ tree -R
.
├── ant_deploy
│ ├── build.properties
│ ├── build.xml
├── salesforce.schema
└── src
├── classes
│ ├── some_class.cls
│ ├── some_class.cls-meta.xml
│ └── package.xml
├── objects
├── package.xml
└── pages
├── some_page.page
└── some_page.page-meta.xml
Could somebody please help me on what is wrong I am doing here? Thanks!
allowMissingFiles=true
, and your specifieddeployRoot
. I don't see any<sf:retrieve>
in the target definition that you provided. Are you sure that../src/Classes
(which would be the path relative to the basedir specified in the ANT project definition) exists and contains the .cls and .cls-meta files?allowMissingFiles=true
and still same result. Also I ran the commandls ../src/classes/
from the directory where I am running ant command and I do see that .cls and .cls-meta.xml files exist.basedir
specified in the project definition? It might help if you edited your question to include more of yourbuild.xml
classes
folder I don't want to deploy everything in thesrc
folder because of size issues as mentioned above.