public class Paths extends java.lang.Object implements PathsInterface
for more details| Constructor and Description |
|---|
Paths(java.io.File openejbWarDir) |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
findOpenEJBJar(java.lang.String namePrefix) |
java.io.File |
findOpenEJBWebJar(java.lang.String namePrefix) |
java.io.File |
findTomEELibJar(java.lang.String prefix) |
java.io.File |
geOpenEJBTomcatCommonJar() |
java.io.File |
getCatalinaBaseDir()
Returns the directory represented by the catalina.base system property
|
java.io.File |
getCatalinaBatFile()
Returns the
getCatalinaBinDir()/catalina.bat file |
java.io.File |
getCatalinaBinDir()
Returns the directory representing
catalinaHomeDir/bin |
java.io.File |
getCatalinaConfDir()
Returns the directory representing
catalinaBaseDir/conf |
java.io.File |
getCatalinaHomeDir()
Returns the directory represented by the catalina.home system property
|
java.io.File |
getCatalinaLibDir()
Returns the directory representing
catalinaHomeDir/lib for Tomcat 6. |
java.io.File |
getCatalinaPolicy() |
java.io.File |
getCatalinaShFile()
Returns the
getCatalinaBinDir()/catalina.sh file |
java.util.List<java.lang.String> |
getErrors()
Returns a list of verification errors
|
java.io.File |
getHome() |
java.io.File |
getJavaEEAPIJar() |
java.io.File |
getOpenEJBCoreJar()
Returns the openejb-core.jar file
|
java.io.File |
getOpenEJBJavaagentJar()
Returns the openejb-javaagent.jar file
|
java.io.File |
getOpenEJBLibDir()
Returns the
openejbWarDir/lib directory. |
java.io.File |
getOpenEJBTomcatLoaderJar()
Returns the tomee-loader.jar file
|
java.io.File |
getOpenEJBWebLibDir() |
java.io.File |
getServerXmlFile()
Returns the file representing <
|
java.io.File |
getSetClasspathBat() |
java.io.File |
getSetClasspathSh() |
java.io.File |
getTomcatUsersXml() |
boolean |
hasErrors()
Checks to see if there are any verification errors
|
void |
reset()
Clears out all verification errors from the underlying list
|
void |
setCatalinaBaseDir(java.io.File catalinaBaseDir)
Sets the catalina base directory
|
void |
setCatalinaBaseDir(java.lang.String catalinaBaseDir)
Sets the catalina base directory
|
void |
setCatalinaHomeDir(java.io.File catalinaHomeDir)
Sets the catalina home directory
|
void |
setCatalinaHomeDir(java.lang.String catalinaHomeDir)
Sets the catalina home directory
|
void |
setServerXmlFile(java.io.File serverXmlFile)
Sets the server.xml file
|
void |
setServerXmlFile(java.lang.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
|
public java.io.File getCatalinaHomeDir()
getCatalinaHomeDir in interface PathsInterfacepublic void setCatalinaHomeDir(java.lang.String catalinaHomeDir)
setCatalinaHomeDir in interface PathsInterfacecatalinaHomeDir - the absolute path of the catalina home directorypublic void setCatalinaHomeDir(java.io.File catalinaHomeDir)
setCatalinaHomeDir in interface PathsInterfacecatalinaHomeDir - the file representing the absolute path of the catalina home directorypublic java.io.File getCatalinaBaseDir()
getCatalinaBaseDir in interface PathsInterfacepublic void setCatalinaBaseDir(java.lang.String catalinaBaseDir)
setCatalinaBaseDir in interface PathsInterfacecatalinaBaseDir - the absolute path of the catalina base directorypublic void setCatalinaBaseDir(java.io.File catalinaBaseDir)
setCatalinaBaseDir in interface PathsInterfacecatalinaBaseDir - the file representing the absolute path of the catalina base directorypublic java.io.File getServerXmlFile()
getServerXmlFile in interface PathsInterfacepublic java.io.File getHome()
getHome in interface PathsInterfacepublic void setServerXmlFile(java.lang.String serverXmlFile)
setServerXmlFile in interface PathsInterfaceserverXmlFile - the absolute path of the server.xml filepublic void setServerXmlFile(java.io.File serverXmlFile)
setServerXmlFile in interface PathsInterfaceserverXmlFile - the file representing the absolute path of the server.xml filepublic java.io.File getCatalinaLibDir()
catalinaHomeDir/lib for Tomcat 6. For Tomcat 5.x it returns catalinaHomeDir/server/libgetCatalinaLibDir in interface PathsInterfacecatalinaHomeDir/libpublic java.io.File getCatalinaConfDir()
catalinaBaseDir/confgetCatalinaConfDir in interface PathsInterfacecatalinaBaseDir/confpublic java.io.File getCatalinaBinDir()
catalinaHomeDir/bingetCatalinaBinDir in interface PathsInterfacecatalinaHomeDir/binpublic java.io.File getCatalinaShFile()
getCatalinaBinDir()/catalina.sh filegetCatalinaShFile in interface PathsInterfacegetCatalinaBinDir()/catalina.sh filepublic java.io.File getCatalinaBatFile()
getCatalinaBinDir()/catalina.bat filegetCatalinaBatFile in interface PathsInterfacegetCatalinaBinDir()/catalina.bat filepublic java.io.File getOpenEJBLibDir()
openejbWarDir/lib directory.
Returns null if openejbWarDir is nullgetOpenEJBLibDir in interface PathsInterfaceopenejbWarDir/lib directorypublic java.io.File getOpenEJBTomcatLoaderJar()
getOpenEJBTomcatLoaderJar in interface PathsInterfacepublic java.io.File getJavaEEAPIJar()
getJavaEEAPIJar in interface PathsInterfacepublic java.io.File getOpenEJBJavaagentJar()
getOpenEJBJavaagentJar in interface PathsInterfacepublic java.io.File getOpenEJBCoreJar()
getOpenEJBCoreJar in interface PathsInterfacepublic java.io.File geOpenEJBTomcatCommonJar()
geOpenEJBTomcatCommonJar in interface PathsInterfacepublic java.io.File findOpenEJBJar(java.lang.String namePrefix)
findOpenEJBJar in interface PathsInterfacepublic java.io.File findOpenEJBWebJar(java.lang.String namePrefix)
findOpenEJBWebJar in interface PathsInterfacepublic java.io.File findTomEELibJar(java.lang.String prefix)
findTomEELibJar in interface PathsInterfacepublic 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 verify in interface PathsInterfacepublic void reset()
reset in interface PathsInterfacepublic boolean hasErrors()
hasErrors in interface PathsInterfacepublic java.util.List<java.lang.String> getErrors()
getErrors in interface PathsInterfacepublic java.io.File getOpenEJBWebLibDir()
getOpenEJBWebLibDir in interface PathsInterfacepublic java.io.File getTomcatUsersXml()
getTomcatUsersXml in interface PathsInterfacepublic java.io.File getSetClasspathSh()
getSetClasspathSh in interface PathsInterfacepublic java.io.File getSetClasspathBat()
getSetClasspathBat in interface PathsInterfacepublic java.io.File getCatalinaPolicy()
getCatalinaPolicy in interface PathsInterface