|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.sun.jaw.impl.common.DefaultPaths
This class represents a set of default directories used by Java DMK.
Constructor Summary | |
DefaultPaths()
|
Method Summary | |
static java.lang.String |
getEtcDir()
Returns the etc directory for Java DMK. |
static java.lang.String |
getEtcDir(java.lang.String dirname)
Returns the etc directory for Java DMK concatenated with dirname. |
static java.lang.String |
getInstallDir()
Returns the installation directory for Java DMK. |
static java.lang.String |
getInstallDir(java.lang.String dirname)
Returns the installation directory for Java DMK concatenated with dirname. |
static java.lang.String |
getTmpDir()
Returns the tmp directory for Java DMK. |
static java.lang.String |
getTmpDir(java.lang.String dirname)
Returns the tmp directory for Java DMK concatenated with dirname. |
static java.lang.String |
getVarDir()
Returns the var directory for Java DMK. |
static java.lang.String |
getVarDir(java.lang.String dirname)
Returns the var directory for Java DMK concatenated with dirname. |
static void |
setEtcDir(java.lang.String dirname)
Sets the etc directory for Java DMK. |
static void |
setInstallDir(java.lang.String dirname)
Sets the installation directory for Java DMK. |
static void |
setTmpDir(java.lang.String dirname)
Sets the tmp directory for Java DMK. |
static void |
setVarDir(java.lang.String dirname)
Sets the var directory for Java DMK. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DefaultPaths()
Method Detail |
public static java.lang.String getInstallDir()
<basedir> + File.separator + SUNWconn + File.separator + jaw
or,
System.getProperty("user.dir")
if the JDMK installation directory could not be derived from the CLASSPATH.
public static java.lang.String getInstallDir(java.lang.String dirname)
<basedir> + File.separator + SUNWconn + File.separator + jaw
or,
System.getProperty("user.dir")
if the JDMK installation directory could not be derived from the CLASSPATH.
dirname
- directory to be appended.public static void setInstallDir(java.lang.String dirname)
dirname
- the directory where Java DMK resides.public static java.lang.String getEtcDir()
The default value of the etc directory is:
DefaultPaths.getInstallDir("etc")
.
public static java.lang.String getEtcDir(java.lang.String dirname)
The default value of the etc directory is:
DefaultPaths.getInstallDir("etc")
.
dirname
- directory to be appended.public static void setEtcDir(java.lang.String dirname)
dirname
- the etc directory for Java DMK.public static java.lang.String getVarDir()
The default value of the var directory is:
DefaultPaths.getInstallDir("var")
.
public static java.lang.String getVarDir(java.lang.String dirname)
The default value of the var directory is:
DefaultPaths.getInstallDir("var")
.
dirname
- directory to be appended.public static void setVarDir(java.lang.String dirname)
dirname
- the var directory for Java DMK.public static java.lang.String getTmpDir()
The default value of the tmp directory is:
DefaultPaths.getInstallDir("tmp")
.
public static java.lang.String getTmpDir(java.lang.String dirname)
The default value of the tmp directory is:
DefaultPaths.getInstallDir("tmp")
.
dirname
- directory to be appended.public static void setTmpDir(java.lang.String dirname)
dirname
- the tmp directory for Java DMK.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |