MyEclipse 7.0G安装SVN插件
2011-05-06 00:14
323 查看
1.将下载的site-1.6.15.zip文件解压到D:/Genuitec/Common/extend/svn1.6.15文件夹中
2.写一个java类,如下所示:
]/** * MyEclipse 7.0G安装插件代码生成器 * @author Administrator */ public class CreatePluginsConfig { private String path; public CreatePluginsConfig(String path) { this.path = path; } @SuppressWarnings("unchecked") public void print() { List list = getFileList(path); if (list == null) { return; } int length = list.size(); for (int i = 0; i < length; i++) { String result = ""; String thePath = getFormatPath(getString(list.get(i))); File file = new File(thePath); if (file.isDirectory()) { String fileName = file.getName(); if (fileName.indexOf("_") < 0) { continue; } String[] filenames = fileName.split("_"); String filename1 = filenames[0]; String filename2 = filenames[1]; result = filename1 + "," + filename2 + ",file:/" + path + "//" + fileName + "//,4,false"; System.out.println(result); } else if (file.isFile()) { String fileName = file.getName(); if (fileName.indexOf("_") < 0) { continue; } String[] filenames = fileName.split("_"); String filename1 = filenames[0]; String filename2 = filenames[1].substring(0, filenames[1].lastIndexOf(".")); result = filename1 + "," + filename2 + ",file:/" + path + "//" + fileName + ",4,false"; System.out.println(result); } } } public List getFileList(String path) { path = getFormatPath(path); path = path + "/"; File filePath = new File(path); if (!filePath.isDirectory()) { return null; } String[] filelist = filePath.list(); List filelistFilter = new ArrayList(); for (int i = 0; i < filelist.length; i++) { String tempfilename = getFormatPath(path + filelist[i]); filelistFilter.add(tempfilename); } return filelistFilter; } public String getString(Object object) { if (object == null) { return ""; } return String.valueOf(object); } public String getFormatPath(String path) { path = path.replaceAll("////", "/"); path = path.replaceAll("//", "/"); return path; } public static void main(String[] args) throws IOException { new CreatePluginsConfig("D://Genuitec//Common//extend//svn1.6.15//plugins").print(); // 插件路径 } }3.找到文件D:/Genuitec/MyEclipse 7.0/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info后打开,运行第2步的Java类,将输出的结果复制后粘贴到文件bundles.info的最后,然后重启MyEclipse就OK了。
相关文章推荐
- myeclipse 安装插件以SVN为例
- [IDE工具配置]myeclipse 2014 专业版 安装 svn插件
- MyEclipse8.5开发环境配置中SVN插件安装重点解析
- Myeclipse8.5中svn插件安装方法总结
- myeclipse安装svn插件的多种方式
- MyEclipse 8.6的SVN 插件安装,优化,配置
- MyEclipse使用总结——MyEclipse10安装SVN插件
- MyEclipse使用总结——MyEclipse10安装SVN插件
- MyEclipse6.5安装SVN插件(离线安装)
- MyEclipse10.0 采用插件方式安装 SVN
- MyEclipse10 安装SVN插件及SVN插件在MyEclipse10下使用方法
- MyEclipse6.5安装SVN插件的三种方法
- MyEclipse6.5安装SVN插件方法
- myeclipse安装svn插件
- MyEclipse6.5安装SVN插件的三种方法 以及基本操作
- MyEclipse8.5 SVN插件安装
- MyEclipse10安装SVN插件的几种方法
- myeclipse中svn插件安装使用
- MyEclipse 8.5 安装SVN插件
- Myeclipse安装svn插件