public class Paths extends Object implements PathsInterface
for more details| Modifier and Type | Method and Description |
|---|---|
File |
findOpenEJBJar(String namePrefix) |
File |
findOpenEJBWebJar(String namePrefix) |
File |
findTomEELibJar(String prefix) |
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 |
getHome() |
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 <
|
File |
getSetClasspathBat() |
File |
getSetClasspathSh() |
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(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
|
public Paths(File openejbWarDir)
public File getCatalinaHomeDir()
getCatalinaHomeDir in interface PathsInterfacepublic void setCatalinaHomeDir(String catalinaHomeDir)
setCatalinaHomeDir in interface PathsInterfacecatalinaHomeDir - the absolute path of the catalina home directorypublic void setCatalinaHomeDir(File catalinaHomeDir)
setCatalinaHomeDir in interface PathsInterfacecatalinaHomeDir - the file representing the absolute path of the catalina home directorypublic File getCatalinaBaseDir()
getCatalinaBaseDir in interface PathsInterfacepublic void setCatalinaBaseDir(String catalinaBaseDir)
setCatalinaBaseDir in interface PathsInterfacecatalinaBaseDir - the absolute path of the catalina base directorypublic void setCatalinaBaseDir(File catalinaBaseDir)
setCatalinaBaseDir in interface PathsInterfacecatalinaBaseDir - the file representing the absolute path of the catalina base directorypublic File getServerXmlFile()
getServerXmlFile in interface PathsInterfacepublic File getHome()
getHome in interface PathsInterfacepublic void setServerXmlFile(String serverXmlFile)
setServerXmlFile in interface PathsInterfaceserverXmlFile - the absolute path of the server.xml filepublic void setServerXmlFile(File serverXmlFile)
setServerXmlFile in interface PathsInterfaceserverXmlFile - 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/libgetCatalinaLibDir in interface PathsInterfacecatalinaHomeDir/libpublic File getCatalinaConfDir()
catalinaBaseDir/confgetCatalinaConfDir in interface PathsInterfacecatalinaBaseDir/confpublic File getCatalinaBinDir()
catalinaHomeDir/bingetCatalinaBinDir in interface PathsInterfacecatalinaHomeDir/binpublic File getCatalinaShFile()
getCatalinaBinDir()/catalina.sh filegetCatalinaShFile in interface PathsInterfacegetCatalinaBinDir()/catalina.sh filepublic File getCatalinaBatFile()
getCatalinaBinDir()/catalina.bat filegetCatalinaBatFile in interface PathsInterfacegetCatalinaBinDir()/catalina.bat filepublic File getOpenEJBLibDir()
openejbWarDir/lib directory.
Returns null if openejbWarDir is nullgetOpenEJBLibDir in interface PathsInterfaceopenejbWarDir/lib directorypublic File getOpenEJBTomcatLoaderJar()
getOpenEJBTomcatLoaderJar in interface PathsInterfacepublic File getJavaEEAPIJar()
getJavaEEAPIJar in interface PathsInterfacepublic File getJAXBImpl()
getJAXBImpl in interface PathsInterfacepublic File getOpenEJBJavaagentJar()
getOpenEJBJavaagentJar in interface PathsInterfacepublic File getOpenEJBCoreJar()
getOpenEJBCoreJar in interface PathsInterfacepublic File geOpenEJBTomcatCommonJar()
geOpenEJBTomcatCommonJar in interface PathsInterfacepublic File findOpenEJBJar(String namePrefix)
findOpenEJBJar in interface PathsInterfacepublic File findOpenEJBWebJar(String namePrefix)
findOpenEJBWebJar in interface PathsInterfacepublic File findTomEELibJar(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 List<String> getErrors()
getErrors in interface PathsInterfacepublic File getOpenEJBWebLibDir()
getOpenEJBWebLibDir in interface PathsInterfacepublic File getTomcatUsersXml()
getTomcatUsersXml in interface PathsInterfacepublic File getSetClasspathSh()
getSetClasspathSh in interface PathsInterfacepublic File getSetClasspathBat()
getSetClasspathBat in interface PathsInterfaceCopyright © 1999–2016 The Apache Software Foundation. All rights reserved.