if (log.isDebugEnabled()) {
log.debug("StartupTask Deployment from file : " + fileName + " : Started");
}
try {
Startup st = StartupFinder.getInstance().getStartup(artifactConfig, properties);
st.setFileName((new File(fileName)).getName());
if (log.isDebugEnabled()) {
log.debug("StartupTask named '" + st.getName()
+ "' has been built from the file " + fileName);
}
st.init(getSynapseEnvironment());
if (log.isDebugEnabled()) {
log.debug("Initialized the StartupTask : " + st.getName());
}
getSynapseConfiguration().addStartup(st);
if (log.isDebugEnabled()) {
log.debug("StartupTask Deployment from file : " + fileName + " : Completed");
}
log.info("StartupTask named '" + st.getName()
+ "' has been deployed from file : " + fileName);
return st.getName();
} catch (Exception e) {
handleSynapseArtifactDeploymentError(
"StartupTask Deployment from the file : " + fileName + " : Failed.", e);
}