简单判断所选目录是否是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]