Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected void checkValidServerHome(String home, String version) throws Exception {
- if (StringUtil.isEmptyOrSpaces(home)) {
- throw new Exception(TomcatBundle.message("error.message.tomcat.home.path.should.not.be.empty"));
- }
- checkDir(new File(home, "bin"));
- checkDir(new File(home, TomcatConstants.CATALINA_BIN_DIRECTORY_NAME));
- if (new Version(version).getMajor() >= 6) {
- checkDir(new File(home, TomcatConstants.CATALINA_LIB_DIRECTORY_NAME));
- }
- else {
- File common = new File(home, TomcatConstants.CATALINA_COMMON_DIRECTORY_NAME);
- checkDir(common);
- checkDir(new File(common, TomcatConstants.CATALINA_LIB_DIRECTORY_NAME));
- }
- if (isTomEE(home)) {
- if (!findLibByPattern(home, OPENEJB_CLIENT_JAR_PATTERN)
- || !findLibByPattern(home, OPENEJB_CORE_JAR_PATTERN)) {
- throw new FileNotFoundException("TomEE deployer jar(s) not found");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement