+ Start a Discussion

Apex deployment with Ant script

If i want to deploy Apex classes in a particular order, do i need to write several targets and deploy each one in order?  I ask because when i had all classes in the same deployment target it seemed to try and deploy them in alphabetical order even though i had them listed in a particular order...

I have follow-on question around similar issue


can custom labels be deployed before classes so that classes gets compiled while getting deployed , also does the order of classes/pages/labels etc in package.xml affect the order of deployment ?