/** Path to the root Spring application context */\r
public static String APPLICATION_CONTEXT_PROPERTY = "org.argeo.slc.ant.applicationContext";\r
\r
- private final File confDir;\r
- private final File rootDir;\r
- private final File workDir;\r
-\r
/** Retrieve all properties and set them as project user properties */\r
- public SlcAntConfig(Project project, File slcRootFile) {\r
+ public static void initProject(Project project, File slcRootFile) {\r
Properties p = loadFile(slcRootFile.getAbsolutePath());\r
\r
+ final File confDir;\r
+ final File workDir;\r
// Root dir\r
- rootDir = slcRootFile.getParentFile();\r
+ final File rootDir = slcRootFile.getParentFile();\r
project.setUserProperty(ROOT_DIR_PROPERTY, rootDir.getAbsolutePath());\r
\r
// Conf dir\r
}\r
}\r
\r
- private Properties loadFile(String path) {\r
+ private static Properties loadFile(String path) {\r
Properties p = new Properties();\r
try {\r
FileInputStream in = new FileInputStream(path);\r
return p;\r
}\r
\r
- public File getConfDir() {\r
- return confDir;\r
- }\r
-\r
- public File getRootDir() {\r
- return rootDir;\r
- }\r
-\r
- public File getWorkDir() {\r
- return workDir;\r
- }\r
-\r
}\r