一个绝对可以安装MyEcipse插件的方法
来源:互联网 发布:java lamda 编辑:程序博客网 时间:2024/05/18 13:24
import java.io.File;import java.util.ArrayList;import java.util.List;public class CreatePluginsConfig {private String path;public CreatePluginsConfig(String path) {this.path = path;}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;}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 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) {new CreatePluginsConfig("F:\\Doc\\JavaScript\\skpet\\spket-1.6.23\\eclipse\\plugins").print();}}运行上面代码,建议改为你要安装插件的绝对路径。比如d:/myplugins/svn/。。。
找到“$myeclipse_home/configuration /org.eclipse.equinox.simpleconfigurator/”,打开其中的“bundles.inf”文件,为了防止分不清是不 是我们自己后加的东西,在最后面多回几次车,然后粘贴第4步运行后的代码,保存重启myeclipse
- 一个绝对可以安装MyEcipse插件的方法
- MyEclipse插件SVN安装绝对有效方法
- 自己写一个可以通过命令安装的cordova插件
- myeclipse安装svn绝对可行的方法
- 一个可以实现热部署的插件
- ButterKnife 一个可以提高工作效率的小插件
- excellentexport--一个可以导出报表的插件
- 安装插件的方法
- 我是如何在GitHub上开源一个项目的(截图说明) (VS2010可以安装git插件)
- 绝对定位的元素的水平居中的一个方法
- MyEclipse8.5(9.0也可以)安装插件的方法(以Spket为例)
- myclipse2014(其他版本也可以)安装插件的几种方法(详细)
- 分享一个css绝对定位的绝对好用的居中方法
- myeclipse8集成jbpm4方法,绝对可以用
- linux下 Apache mysql python mod_python Django 配置安装说明,绝对可以安装上的说明
- query.cookie() 方法:一个轻量级的cookie 插件,可以读取、写入、删除 cookie,下面有个不错的数量,大家可以学习下 一个轻量级的cookie 插件,可以读取、写入、删除 co
- #defind 语句也可以定义绝对内存空间,用以指向一个固定的字
- myeclipse9.0安装svn插件(此种方法可以安装任意插件)
- Android的分辨率
- JAVA 处理时间 - java.sql.Date、java.util.Date与数据库中的Date字段的转换方法
- Android错误:W/ResourceType(2411): No package identifier when getting value for resource number 0x
- 时间管理--给系统管理员1
- FreeBSD下使用山特UPS
- 一个绝对可以安装MyEcipse插件的方法
- MySQL优化
- struts.properties配置详解
- HDU1709 The Balance,母函数套题
- 【媒体报道】风起亚洲公有云—《程序员》杂志企业专栏报道
- MySQL: 基于 jdbc 远程操作
- 只有一个Service或Broadcast Reciver的android应用
- svn地址
- 自定义一个方言类——Hibernate Dialect