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 PathsInterface
public void setCatalinaHomeDir(java.lang.String catalinaHomeDir)
setCatalinaHomeDir
in interface PathsInterface
catalinaHomeDir
- the absolute path of the catalina home directorypublic void setCatalinaHomeDir(java.io.File catalinaHomeDir)
setCatalinaHomeDir
in interface PathsInterface
catalinaHomeDir
- the file representing the absolute path of the catalina home directorypublic java.io.File getCatalinaBaseDir()
getCatalinaBaseDir
in interface PathsInterface
public void setCatalinaBaseDir(java.lang.String catalinaBaseDir)
setCatalinaBaseDir
in interface PathsInterface
catalinaBaseDir
- the absolute path of the catalina base directorypublic void setCatalinaBaseDir(java.io.File catalinaBaseDir)
setCatalinaBaseDir
in interface PathsInterface
catalinaBaseDir
- the file representing the absolute path of the catalina base directorypublic java.io.File getServerXmlFile()
getServerXmlFile
in interface PathsInterface
public java.io.File getHome()
getHome
in interface PathsInterface
public void setServerXmlFile(java.lang.String serverXmlFile)
setServerXmlFile
in interface PathsInterface
serverXmlFile
- the absolute path of the server.xml filepublic void setServerXmlFile(java.io.File serverXmlFile)
setServerXmlFile
in interface PathsInterface
serverXmlFile
- 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 PathsInterface
catalinaHomeDir
/libpublic java.io.File getCatalinaConfDir()
catalinaBaseDir
/confgetCatalinaConfDir
in interface PathsInterface
catalinaBaseDir
/confpublic java.io.File getCatalinaBinDir()
catalinaHomeDir
/bingetCatalinaBinDir
in interface PathsInterface
catalinaHomeDir
/binpublic java.io.File getCatalinaShFile()
getCatalinaBinDir()
/catalina.sh filegetCatalinaShFile
in interface PathsInterface
getCatalinaBinDir()
/catalina.sh filepublic java.io.File getCatalinaBatFile()
getCatalinaBinDir()
/catalina.bat filegetCatalinaBatFile
in interface PathsInterface
getCatalinaBinDir()
/catalina.bat filepublic java.io.File getOpenEJBLibDir()
openejbWarDir
/lib directory.
Returns null if openejbWarDir
is nullgetOpenEJBLibDir
in interface PathsInterface
openejbWarDir
/lib directorypublic java.io.File getOpenEJBTomcatLoaderJar()
getOpenEJBTomcatLoaderJar
in interface PathsInterface
public java.io.File getJavaEEAPIJar()
getJavaEEAPIJar
in interface PathsInterface
public java.io.File getOpenEJBJavaagentJar()
getOpenEJBJavaagentJar
in interface PathsInterface
public java.io.File getOpenEJBCoreJar()
getOpenEJBCoreJar
in interface PathsInterface
public java.io.File geOpenEJBTomcatCommonJar()
geOpenEJBTomcatCommonJar
in interface PathsInterface
public java.io.File findOpenEJBJar(java.lang.String namePrefix)
findOpenEJBJar
in interface PathsInterface
public java.io.File findOpenEJBWebJar(java.lang.String namePrefix)
findOpenEJBWebJar
in interface PathsInterface
public java.io.File findTomEELibJar(java.lang.String prefix)
findTomEELibJar
in interface PathsInterface
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 verify
in interface PathsInterface
public void reset()
reset
in interface PathsInterface
public boolean hasErrors()
hasErrors
in interface PathsInterface
public java.util.List<java.lang.String> getErrors()
getErrors
in interface PathsInterface
public java.io.File getOpenEJBWebLibDir()
getOpenEJBWebLibDir
in interface PathsInterface
public java.io.File getTomcatUsersXml()
getTomcatUsersXml
in interface PathsInterface
public java.io.File getSetClasspathSh()
getSetClasspathSh
in interface PathsInterface
public java.io.File getSetClasspathBat()
getSetClasspathBat
in interface PathsInterface
public java.io.File getCatalinaPolicy()
getCatalinaPolicy
in interface PathsInterface