\r
// pass the project properties through the System properties\r
System.getProperties().putAll((Map<?, ?>) project.getUserProperties());\r
- Properties all = prepareAllProperties(slcRootFile);\r
+ Properties all = new Properties();\r
+ all.putAll(System.getProperties());\r
+ prepareAllProperties(slcRootFile,all);\r
\r
Log log = LogFactory.getLog(this.getClass());\r
for (Object o : all.keySet()) {\r
* @return the prepared properties. Note that it also contains the System\r
* and Ant properties which had previously been set.\r
*/\r
- protected Properties prepareAllProperties(File slcRootFile) {\r
+ public void prepareAllProperties(File slcRootFile, Properties all) {\r
try {\r
final String fileUrlPrefix = "";\r
\r
- Properties all = new Properties();\r
- all.putAll(System.getProperties());\r
all.put(ROOT_FILE_PROPERTY, slcRootFile.getCanonicalPath());\r
// Remove basedir property in order to avoid conflict with Maven\r
if (all.containsKey("basedir"))\r
Log4jConfigurer.initLogging(confDir.getCanonicalPath()\r
+ File.separator + "log4j.properties");\r
}\r
-\r
- return all;\r
} catch (Exception e) {\r
throw new SlcAntException("Unexpected exception while configuring",\r
e);\r