// Check for the deployment unit associated with the name
boolean deploy=exec(new ProcessStoreImpl.Callable<Boolean>() {
public Boolean call(ConfStoreDAOConnection conn) {
boolean ret=false;
DeploymentUnitDAO dudao = conn.getDeploymentUnit(bdu.getName());
if (dudao == null)
return true;
try {
String dir=bdu.getDeploymentDescriptor().getParentFile().getCanonicalPath();
if (dudao.getDeploymentUnitDir() != null &&
dudao.getDeploymentUnitDir().equals(dir) == false) {
__log.debug("Updating deployunit directory from: "+dudao.getDeploymentUnitDir()+" to: "+dir);
dudao.setDeploymentUnitDir(dir);
}
// Check if process has changed, and needs to be redeployed
if (bdu.getLastModified() > dudao.getDeployDate().getTime()) {
ret = true;
} else {
__log.debug("Re-compiling: "+bdu.getDeploymentDescriptor().getParentFile());
DeploymentUnitDir du=new DeploymentUnitDir(bdu.getDeploymentDescriptor().getParentFile());