Merged V2.2 to HEAD

7498: Deployment callback and event changes
   7499: Build fix
   7505: Fixed deployment script issue in IE
   7525: Added sample job that will clean deployment attempts older than 180 days (by default)
   7526: Typo compilation fix


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8383 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2008-02-26 15:13:48 +00:00
parent 225eca438c
commit 71d11e9d79
2 changed files with 12 additions and 17 deletions

View File

@@ -94,28 +94,23 @@ public class DeploymentMonitor implements DeploymentCallback, Serializable
this.successful = true;
this.finished = true;
}
else if (event.getType().equals(Type.FAILED))
{
// if we get the FAILED event the deployment was unsuccessful
this.successful = false;
this.finished = true;
this.reason = event.getMessage();
if (logger.isDebugEnabled())
logger.debug(this.targetServerName + ": ERROR: " + this.reason);
}
if (logger.isDebugEnabled())
logger.debug(this.targetServerName + ": " + event.getType() +
" " + event.getDestination());
}
/**
* Informs the monitor an error occurred during deployment
*
* @param err The error that caused the deployment to fail
*/
public void errorOccurred(Throwable err)
{
this.reason = err.getMessage();
if (logger.isDebugEnabled())
logger.debug(this.targetServerName + ": ERROR: " + this.reason);
this.successful = false;
this.finished = true;
}
@Override
public String toString()
{