- if (slcExecution == null) {\r
- // for log4j\r
- this.project = project;// FIXME\r
- if (!LogManager.getRootLogger().isAttached(this)) {\r
- LogManager.getRootLogger().addAppender(this);\r
- }\r
- \r
- slcExecution = new SlcExecution();\r
- slcExecution.setUuid(UUID.randomUUID().toString());\r
- try {\r
- slcExecution.setHost(InetAddress.getLocalHost().getHostName());\r
- } catch (UnknownHostException e) {\r
- slcExecution.setHost(SlcExecution.UNKOWN_HOST);\r
- }\r
-\r
- if (project.getReference(SlcProjectHelper.REF_ROOT_CONTEXT) != null) {\r
- slcExecution.setType(SLC_ANT_TYPE);\r
- } else {\r
- slcExecution.setType(ANT_TYPE);\r
- }\r
-\r
- slcExecution.setPath(project.getProperty("ant.file"));\r
- slcExecution.setStatus(SlcExecution.STATUS_RUNNING);\r
-\r
- project.addReference(REF_SLC_EXECUTION, slcExecution);\r
-\r
- for (SlcExecutionNotifier notifier : notifiers) {\r
- notifier.newExecution(slcExecution);\r
- }\r