deployOptions.setSinglePackage(true);
deployOptions.setAutoUpdatePackage(true);
deployOptions.setAllowMissingFiles(true);
deployOptions.setPurgeOnDelete(deleteProperty.getPurgeSchemaOnDelete());
MetadataConnection metadatabinding = mconn.getMetadataConnection();
createZipFile(schemaFiles.toArray(new File[schemaFiles.size()]), DEPLOY_ZIP);
AsyncResult asyncResult = metadatabinding.deploy(readZipFile(DEPLOY_ZIP), deployOptions);
// Wait for the deploy to complete
waitForAsyncResult(metadatabinding, new AsyncResult[] {asyncResult}, true, DEPLOY_ZIP);
DeployResult result = metadatabinding.checkDeployStatus(asyncResult.getId());
// Log any messages
StringBuilder buf = new StringBuilder();
if (result.getMessages() != null) {
for (DeployMessage rm : result.getMessages()) {