protected void append(LoggingEvent event) {\r
Project project = (Project) MDC.get(AntConstants.MDC_ANT_PROJECT);\r
if (project == null) {\r
- System.err.println("No Ant project registered in Log4j MDC.");\r
+ // TODO: find a way to notify it\r
+ //System.err.println("No Ant project registered in Log4j MDC.");\r
} else {\r
SlcExecution slcExecution = getSlcExecution(project);\r
if (currentStepNotified) {\r
package org.argeo.slc.core.runtime;
+import java.util.Map;
import java.util.Properties;
import org.apache.commons.logging.Log;
// TODO: in a separate process
Thread thread = new Thread("SlcExecution " + slcExecution.getUuid()) {
public void run() {
- slcApplication.execute(slcExecution, new Properties(), null,
- null);
+ Properties props = new Properties();
+ Map<String, String> attributes = slcExecution.getAttributes();
+ for (String key : attributes.keySet()) {
+ props.setProperty(key, attributes.get(key));
+ if (log.isTraceEnabled())
+ log.trace(key + "=" + props.getProperty(key));
+ }
+ slcApplication.execute(slcExecution, props, null, null);
log.debug("Thread for SLC execution #" + slcExecution.getUuid()
+ " finished.");
}