// Properties and app logging initialization
initSystemProperties(properties);
Log4jUtils.initLog4j("classpath:" + DEFAULT_APP_LOG4J_PROPERTIES);
-
- log.info("### Start SLC execution " + slcExecution.getUuid() + " ###");
+
+ log.info("\n###\n### Start SLC execution " + slcExecution.getUuid()
+ + "\n###\n");
if (log.isDebugEnabled()) {
log.debug("rootDir=" + rootDir);
log.debug("confDir=" + confDir);
// Ant coordinates
Resource script = findAntScript(slcExecution);
List<String> targets = findAntTargets(slcExecution);
-
+
// Ant project initialization
Project project = new Project();
AntExecutionContext executionContext = new AntExecutionContext(project);
}
private static void initLogging(Properties userProperties) {
+ System.setProperty("log4j.defaultInitOverride", "true");
+
// Add log4j user properties to System properties
for (String key : userProperties.stringPropertyNames()) {
if (key.startsWith("log4j.")) {
- System.setProperty(key, userProperties.getProperty(key));
+ System.setProperty(key, userProperties.getProperty(key));
}
}
-
- System.setProperty("log4j.defaultInitOverride", "true");
Log4jUtils.initLog4j(System.getProperty("log4j.configuration",
"classpath:" + BOOTSTRAP_LOG4J_CONFIG));
log = LogFactory.getLog(SlcMain.class);