houbin 发表于 2017-1-31 14:03:29

简单判断所选目录是否是tomcat目录

public static boolean isValidTomcat(String path) {
Path installPath = new Path(path);
String id = "org.eclipse.jst.server.tomcat.60";
IStatus status = TomcatPlugin.getInstance()
.verifyInstallPathWithFolderCheck(installPath, id);
if (status.isOK())
return true;
return false;
}
页: [1]
查看完整版本: 简单判断所选目录是否是tomcat目录