function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Raj R.Raj R. 

How does Ant migration tool know which class or trigger to upload based on last edit?

I am new ant migration tool. I am able to retrieve my desired triggers and classes perfectly fine. Lets say I make an update to only 1 out of 10 triggers and 2 our 15 classes in my codepkg folder. Does the Ant migration tool know which one it needs to update or will it update all 10 triggers and 15 classes because they are in my codepkg folder?

How does the Ant migration tool know which triggers and classes to update? Is there a particular command that I can use that specifies which ones to only update on the server? Also, if I update both the trigger and the trigger's metadata (xml) file, will that also be updated on the server?
Best Answer chosen by Raj R.
Hi , 

We can specify only those components which need to be migrated. 

You can deploy any set of components as a package or into your organization directly in the unpackaged package. The package used is not determined by the build.xml target, but by the project manifest (package.xml). A sample deployment target follows:
<target name="deployUnpackaged">

See more informaton in the link below,