import java.util.Properties;\r
import java.util.StringTokenizer;\r
\r
+import org.springframework.util.Log4jConfigurer;\r
+\r
import org.apache.tools.ant.Project;\r
\r
/** Load reference to directories from an slcRoot.properties file */\r
PROPERTY_FILE_NAMES_PROPERTY, "slc.properties"), ",");\r
while (st.hasMoreTokens()) {\r
String fileName = st.nextToken();\r
- properties.putAll(loadFile(confDir.getAbsolutePath() + "/"\r
+ properties.putAll(loadFile(confDir.getAbsolutePath() + File.separator\r
+ fileName));\r
}\r
\r
all.setProperty(DEFAULT_TEST_RUN_PROPERTY, "defaultTestRun");\r
}\r
\r
+ // Default log4j\r
+ if (all.getProperty("log4j.configuration") == null) {\r
+ System.setProperty("log4j.configuration",confDir\r
+ .getCanonicalPath()\r
+ + File.separator + "log4j.properties" );\r
+ // TODO: fix dependency to log4j\r
+ Log4jConfigurer.initLogging(confDir\r
+ .getCanonicalPath()\r
+ + File.separator + "log4j.properties");\r
+ }\r
+\r
return all;\r
} catch (Exception e) {\r
throw new SlcAntException("Unexpected exception while configuring",\r