* application context and a structure registry with the Ant project.\r
*/\r
public class SlcProjectHelper extends ProjectHelperImpl {\r
- private static Log log = LogFactory.getLog(SlcProjectHelper.class);\r
+ private static Log log ;\r
\r
public static String REF_ROOT_CONTEXT = "slcApplicationContext";\r
public static String REF_STRUCTURE_REGISTRY = "slcStructureRegistry";\r
\r
@Override\r
public void parse(Project project, Object source) throws BuildException {\r
- log.debug("Entered SLC project helper");\r
\r
// look for root file\r
File projectBaseDir = project.getBaseDir();\r
throw new SlcAntException("Cannot find SLC root file");\r
}\r
SlcAntConfig.initProject(project, slcRootFile);\r
+ \r
+ if(log == null){\r
+ // log4j is initialized only now\r
+ log = LogFactory.getLog(SlcProjectHelper.class);\r
+ }\r
+ log.debug("SLC properties are set, starting initialization..");\r
\r
// init Spring application context\r
initSpringContext(project);\r