Package org.forgerock.openig.config.env
Class IgInstanceDirFinder
- java.lang.Object
-
- org.forgerock.openig.config.env.IgInstanceDirFinder
-
public final class IgInstanceDirFinder extends Object
This class is responsible for locating the IG instance directory. It will iterate through some well-known environment variables, system properties and if none was specified by the user then it will default to the platform standard directory.
-
-
Field Summary
Fields Modifier and Type Field Description static String
BASE_SYSTEM_PROPERTY
System property name that can be specified through command line.static String
INSTANCE_SYSTEM_PROPERTY
System property name that can be specified through command line.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static File
find()
Find the directory that will be used as the base directory.
-
-
-
Field Detail
-
BASE_SYSTEM_PROPERTY
public static final String BASE_SYSTEM_PROPERTY
System property name that can be specified through command line.java -Dopenig.base=/my/openig/path ....
- See Also:
- Constant Field Values
-
INSTANCE_SYSTEM_PROPERTY
public static final String INSTANCE_SYSTEM_PROPERTY
System property name that can be specified through command line.java -Dig.instance.dir=/my/openig/path ....
- See Also:
- Constant Field Values
-
-
Method Detail
-
find
public static File find()
Find the directory that will be used as the base directory.- Returns:
- the directory that will be used as the base directory.
-
-