|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.tomee.installer.Paths
public class Paths
This class is used to verify that all the main directories and files exist.
for more details| Constructor Summary | |
|---|---|
Paths(File openejbWarDir)
|
|
| Method Summary | |
|---|---|
File |
findOpenEJBJar(String namePrefix)
|
File |
findOpenEJBWebJar(String namePrefix)
|
File |
geOpenEJBTomcatCommonJar()
|
File |
getCatalinaBaseDir()
Returns the directory represented by the catalina.base system property |
File |
getCatalinaBatFile()
Returns the getCatalinaBinDir()/catalina.bat file |
File |
getCatalinaBinDir()
Returns the directory representing catalinaHomeDir/bin |
File |
getCatalinaConfDir()
Returns the directory representing catalinaBaseDir/conf |
File |
getCatalinaHomeDir()
Returns the directory represented by the catalina.home system property |
File |
getCatalinaLibDir()
Returns the directory representing catalinaHomeDir/lib for Tomcat 6. |
File |
getCatalinaShFile()
Returns the getCatalinaBinDir()/catalina.sh file |
List<String> |
getErrors()
Returns a list of verification errors |
File |
getJavaEEAPIJar()
|
File |
getJAXBImpl()
|
File |
getOpenEJBCoreJar()
Returns the openejb-core.jar file |
File |
getOpenEJBJavaagentJar()
Returns the openejb-javaagent.jar file |
File |
getOpenEJBLibDir()
Returns the openejbWarDir/lib directory. |
File |
getOpenEJBTomcatLoaderJar()
Returns the tomee-loader.jar file |
File |
getOpenEJBWebLibDir()
|
File |
getServerXmlFile()
Returns the file representing < |
boolean |
hasErrors()
Checks to see if there are any verification errors |
void |
reset()
Clears out all verification errors from the underlying list |
void |
setCatalinaBaseDir(File catalinaBaseDir)
Sets the catalina base directory |
void |
setCatalinaBaseDir(String catalinaBaseDir)
Sets the catalina base directory |
void |
setCatalinaHomeDir(File catalinaHomeDir)
Sets the catalina home directory |
void |
setCatalinaHomeDir(String catalinaHomeDir)
Sets the catalina home directory |
void |
setServerXmlFile(File serverXmlFile)
Sets the server.xml file |
void |
setServerXmlFile(String serverXmlFile)
Sets the server.xml file |
boolean |
verify()
Verifies the following: openejbWarDir is unpacked
catalinaHomeDir is defined
catalinaBaseDir is defined
catalinaHomeDir exists, is a directory and is readable
catalinaBaseDir exists, is a directory and is readable
getCatalinaLibDir() exists, is a directory , is readable and is writable
getCatalinaConfDir() exists, is a directory , is readable and is writable
getCatalinaBinDir() exists, is a directory , is readable
getCatalinaShFile() exists, is a File , is readable and is writable
getCatalinaBatFile()() exists, is a File , is readable and is writable
getServerXmlFile() exists, is a File , is readable and is writable
getOpenEJBLibDir() exists, is a directory and is readable
getOpenEJBTomcatLoaderJar() is not null, exists, is a File and is readable
getOpenEJBJavaagentJar() is not null, exists, is a File and is readable
getOpenEJBCoreJar() is not null, exists, is a File and is readable
getOpenEJBJavaagentJar() exists, is a File and is readable
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Paths(File openejbWarDir)
| Method Detail |
|---|
public File getCatalinaHomeDir()
public void setCatalinaHomeDir(String catalinaHomeDir)
catalinaHomeDir - the absolute path of the catalina home directorypublic void setCatalinaHomeDir(File catalinaHomeDir)
catalinaHomeDir - the file representing the absolute path of the catalina home directorypublic File getCatalinaBaseDir()
public void setCatalinaBaseDir(String catalinaBaseDir)
catalinaBaseDir - the absolute path of the catalina base directorypublic void setCatalinaBaseDir(File catalinaBaseDir)
catalinaBaseDir - the file representing the absolute path of the catalina base directorypublic File getServerXmlFile()
public void setServerXmlFile(String serverXmlFile)
serverXmlFile - the absolute path of the server.xml filepublic void setServerXmlFile(File serverXmlFile)
serverXmlFile - the file representing the absolute path of the server.xml filepublic File getCatalinaLibDir()
catalinaHomeDir/lib for Tomcat 6. For Tomcat 5.x it returns catalinaHomeDir/server/lib
catalinaHomeDir/libpublic File getCatalinaConfDir()
catalinaBaseDir/conf
catalinaBaseDir/confpublic File getCatalinaBinDir()
catalinaHomeDir/bin
catalinaHomeDir/binpublic File getCatalinaShFile()
getCatalinaBinDir()/catalina.sh file
getCatalinaBinDir()/catalina.sh filepublic File getCatalinaBatFile()
getCatalinaBinDir()/catalina.bat file
getCatalinaBinDir()/catalina.bat filepublic File getOpenEJBLibDir()
openejbWarDir/lib directory.
Returns null if openejbWarDir is null
openejbWarDir/lib directorypublic File getOpenEJBTomcatLoaderJar()
public File getJavaEEAPIJar()
public File getJAXBImpl()
public File getOpenEJBJavaagentJar()
public File getOpenEJBCoreJar()
public File geOpenEJBTomcatCommonJar()
public File findOpenEJBJar(String namePrefix)
public File findOpenEJBWebJar(String namePrefix)
public boolean verify()
openejbWarDir is unpackedcatalinaHomeDir is defined catalinaBaseDir is defined catalinaHomeDir exists, is a directory and is readable catalinaBaseDir exists, is a directory and is readable getCatalinaLibDir() exists, is a directory , is readable and is writable getCatalinaConfDir() exists, is a directory , is readable and is writable getCatalinaBinDir() exists, is a directory , is readablegetCatalinaShFile() exists, is a File , is readable and is writable getCatalinaBatFile()() exists, is a File , is readable and is writable getServerXmlFile() exists, is a File , is readable and is writable getOpenEJBLibDir() exists, is a directory and is readable getOpenEJBTomcatLoaderJar() is not null, exists, is a File and is readable getOpenEJBJavaagentJar() is not null, exists, is a File and is readable getOpenEJBCoreJar() is not null, exists, is a File and is readable getOpenEJBJavaagentJar() exists, is a File and is readable
public void reset()
public boolean hasErrors()
public List<String> getErrors()
public File getOpenEJBWebLibDir()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||