DeploymentStatus
200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
{ // check for new deployment File aFile = stagedFiles[i]; if (aFile.isFile() && !ignoreFile(aFile)) { DeploymentStatus status = null; Exception de = null; try { status = deploy(aFile); } catch (Exception e) { de = e; } if ( status != null && status.getStatus() == DeploymentStatus.STATUS_OKAY ) { if (aFile.exists()) { log.info("File: " + aFile.getAbsolutePath() + " deployed"); boolean result = aFile.delete(); if (!result) { log.error("Failed to remove: " + aFile); } } } else { if (status == null || status.getStatus() == DeploymentStatus.STATUS_EVAL) { log.warn("Unrecognized file " + aFile.getAbsolutePath()); } else if ( de != null ) {