org.pz.platypus.utilities
Class PlatypusHomeDirectory
java.lang.Object
org.pz.platypus.utilities.PlatypusHomeDirectory
public class PlatypusHomeDirectory
- extends java.lang.Object
Gets the home directory for Platypus as set in the user environment.
|
Method Summary |
java.lang.String |
get()
return the home directory name with a file separator at end |
(package private) java.lang.String |
getHomeDirectoryFromTextFile()
Looks to see if the current directory holds a file called 'platypus.home'. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
homeDirectory
private java.lang.String homeDirectory
PlatypusHomeDirectory
public PlatypusHomeDirectory()
PlatypusHomeDirectory
public PlatypusHomeDirectory(java.lang.Class gddClass)
- Creates a string of the home directory from the user environment and
makes sure it ends with a file separator.
- Parameters:
gddClass - used in the commented-out code
getHomeDirectoryFromTextFile
java.lang.String getHomeDirectoryFromTextFile()
- Looks to see if the current directory holds a file called 'platypus.home'. If it does, and there is
a subdirectory called 'config' than the current directory is deemed the home directory.
- Returns:
- home directory for Platypus
get
public java.lang.String get()
- return the home directory name with a file separator at end
- Returns:
- the directory name
Copyright © 2006-10 Pacific Data Works LLC. (platypus.pz.org)