return deployOptions;
}
public DeployOptions makeDefaultDeployOptions(boolean checkOnly) {
DeployOptions deployOptions = new DeployOptions();
// tell deploy to ignore missing files. this will save on the one component
deployOptions.setAllowMissingFiles(true);
// if successful, return refreshed component
deployOptions.setPerformRetrieve(true);
// send back update package manifest too
deployOptions.setAutoUpdatePackage(true);
// oh and, if other components don't comply (fail to compile, failed tests, etc), save the ones that do comply
// REVIEWME: apparently the api only handles test failures. so, if one component fails
// to compile (for example, the whole lot will fail to save).
deployOptions.setRollbackOnError(true);
deployOptions.setCheckOnly(checkOnly);
deployOptions.setRunAllTests(false);
deployOptions.setSinglePackage(true);
return deployOptions;
}