myeclipse10配置svn
来源:互联网 发布:知乎三角铁十级什么梗 编辑:程序博客网 时间:2024/06/05 13:29
1.下载svn插件
2.解压svn到自定义目录
* 例如:D:\java\MyEclipse10.7\svn
3.设置自定义目录位置,执行PluginConfigCreator.java
将生成的内容拷贝到 D:\java\MyEclipse10.7\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info 末尾
##################################33
PluginConfigCreator.java 如下
2.解压svn到自定义目录
* 例如:D:\java\MyEclipse10.7\svn
3.设置自定义目录位置,执行PluginConfigCreator.java
将生成的内容拷贝到 D:\java\MyEclipse10.7\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info 末尾
##################################33
PluginConfigCreator.java 如下
import java.io.File;import java.util.ArrayList;import java.util.List;public class PluginConfigCreator {public PluginConfigCreator() {}public void print(String path) {List<String> 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) {print(thePath);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;}int last = fileName.lastIndexOf("_");// 最后一个下划线的位置String filename1 = fileName.substring(0, last);String filename2 = fileName.substring(last + 1,fileName.length() - 4);result = filename1 + "," + filename2 + ",file:/" + path + "/"+ fileName + ",4,false";System.out.println(result);}}}public List<String> getFileList(String path) {path = getFormatPath(path);path = path + "/";File filePath = new File(path);if (!filePath.isDirectory()) {return null;}String[] filelist = filePath.list();List<String> filelistFilter = new ArrayList<String>();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) {/* 你的SVN的features 和 plugins复制后放的目录 */String plugin = "D:\\java\\MyEclipse10.7\\svn";new PluginConfigCreator().print(plugin);}}
0 0
- MyEclipse10.0 SVN配置
- myeclipse10配置SVN总结
- MyEclipse10 配置 SVN
- myeclipse10配置svn
- MyEclipse10 配置SVN
- Myeclipse10配置svn
- myeclipse10.0安装配置SVN
- myeclipse10.0优化及SVN安装配置
- myeclipse10.0优化及SVN安装配置
- myeclipse10.0优化及SVN安装配置
- myeclipse10.0优化及SVN安装配置
- myeclipse10.0优化及SVN安装配置
- myeclipse10.0优化及SVN安装配置
- myeclipse10优化及SVN安装配置
- myeclipse10.0优化及SVN安装配置
- myeclipse10.0优化及SVN安装配置
- myeclipse10配置
- MyEclipse10 svn插件安装。。
- CSU 1411: Longest Consecutive Ones
- C#之委托与事件
- 12个有趣的c语言面试题
- ZOJ-2740
- poj 2947 Widget Factory(模7环上的高斯消元)
- myeclipse10配置svn
- CodeForces 412D - Giving Awards (dfs)
- c++ 字符类型总结区别wchar_t,char,WCHAR
- SpringMVC中文乱码问题
- 软件文档中部分图的解释
- C/C++的堆栈,内存分配
- win8,win8.1的日记本应用(包含页面跳转)以及如何调用语音来朗读文本
- java Annotation 自定义实例
- 数据对接—kettle使用之十六