import org.argeo.slc.core.process.SlcExecutionNotifier;\r
import org.argeo.slc.core.process.SlcExecutionStep;\r
import org.argeo.slc.ws.process.WebServiceSlcExecutionNotifier;\r
-import org.springframework.context.ApplicationContext;\r
-import org.springframework.context.support.AbstractApplicationContext;\r
\r
public class SlcExecutionBuildListener extends AppenderSkeleton implements\r
ProjectRelatedBuildListener {\r
- public static final String ANT_TYPE = "org.apache.tools.ant";\r
- public static final String SLC_ANT_TYPE = "org.argeo.slc.ant";\r
-\r
- public static final String REF_SLC_EXECUTION = "slcExecution";\r
-\r
private Project project;\r
\r
// to avoid stack overflow when logging for log4j\r
}\r
\r
SlcExecution slcExecution = (SlcExecution) project\r
- .getReference(REF_SLC_EXECUTION);\r
+ .getReference(SlcAntConstants.REF_SLC_EXECUTION);\r
if (slcExecution == null)\r
throw new SlcAntException("No SLC Execution registered.");\r
\r
+ " not consistent with listener project " + project);\r
\r
SlcExecution slcExecution = (SlcExecution) project\r
- .getReference(REF_SLC_EXECUTION);\r
+ .getReference(SlcAntConstants.REF_SLC_EXECUTION);\r
\r
if (slcExecution == null)\r
throw new SlcAntException("No SLC Execution registered.");\r
// avoid StackOverflow if notification calls Log4j itself.\r
return;\r
}\r
-\r
+ \r
// FIXME: make it more generic\r
if (event.getLoggerName().equals(\r
WebServiceSlcExecutionNotifier.class.getName())) {\r
\r
try {\r
SlcExecution slcExecution = (SlcExecution) project\r
- .getReference(REF_SLC_EXECUTION);\r
+ .getReference(SlcAntConstants.REF_SLC_EXECUTION);\r
if (slcExecution != null) {\r
if (currentStepNotified) {\r
slcExecution.getSteps().add(\r