简单判断所选目录是否是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;
}
谢谢了 呵呵
楼主这个是结合Eclipse插件的吗? 我给你一个简单的实现
:D