import org.argeo.slc.core.process.SlcExecution;\r
import org.argeo.slc.core.process.SlcExecutionNotifier;\r
import org.argeo.slc.core.process.SlcExecutionStep;\r
+import org.argeo.slc.core.process.WebServiceSlcExecutionNotifier;\r
\r
public class SlcExecutionBuildListener extends AppenderSkeleton implements\r
ProjectRelatedBuildListener {\r
\r
public void init(Project project) {\r
if (this.project != null) {\r
- throw new SlcAntException("BuildListener already initialized");\r
+ throw new SlcAntException("Build listener already initialized");\r
}\r
\r
this.project = project;\r
if (currentStep == null) {\r
currentStep = new SlcExecutionStep("LOG", event.getMessage());\r
notifyStep(slcExecution, currentStep);\r
+ currentStep = null;\r
} else {\r
currentStep.addLog(event.getMessage());\r
}\r
// avoid StackOverflow if notification calls Log4j itself.\r
return;\r
}\r
+\r
+ if (event.getLoggerName().equals(\r
+ WebServiceSlcExecutionNotifier.class.getName())) {\r
+ return;\r
+ }\r
+\r
isLogging = true;\r
\r
try {\r
if (currentStep == null) {\r
currentStep = new SlcExecutionStep("LOG", event\r
.getMessage().toString());\r
- notifyStep(slcExecution, currentStep);\r
- } else {\r
- currentStep.addLog(event.getMessage().toString());\r
}\r
+ currentStep.addLog(event.getMessage().toString());\r
} else {\r
// TODO: log before initialization?\r
}\r