Package nz.ac.waikato.cms.core
Class Project
java.lang.Object
nz.ac.waikato.cms.core.Project
Helper class related to the project and it's "home" directory.
- Version:
- $Revision: 407 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FileexpandFile(String file) Adds the home directory to the file.static FilegetHome()Returns the "home" directory of Meka, where to store the config files.static booleanMakes sure that the project's home directory is present.
-
Field Details
-
DIR_WINDOWS
the windows directory.- See Also:
-
DIR_UNIX
the unix directory.- See Also:
-
-
Constructor Details
-
Project
public Project()
-
-
Method Details
-
getHome
Returns the "home" directory of Meka, where to store the config files.- Returns:
- the directory
-
expandFile
Adds the home directory to the file.- Parameters:
file- the file without path- Returns:
- the expanded path
-
initialize
public static boolean initialize()Makes sure that the project's home directory is present.- Returns:
- true if home directory present (or successfully created)
-