myeclipse7.0 安装 svn

http://imcoddy.wordpress.com/2009/12/13/%E6%89%8B%E5%B7%A5%E5%AE%89%E8%A3%85myeclipse7-0%E7%9A%84%E6%8F%92%E4%BB%B6/

 

myeclipse7.0 安装 svn, 真他妈的麻烦,搞了半天也搞不定,到网上找了很久也没有找到,今天特意花了一天的时间来搞,还是牛人多呀,最终找到了一个,不过第二种方法,我试了,没有反应,就不管了。 

 

手工安装MyEclipse7.0的插件

2009/12/13 — 邱頔

开发J2EE,当然首选MyEclipse。前阵子安装了MyEclipse7.0,想配个SVN插件,可是由于其插件安装方式改变了,每次通过Software Update都提示要升级到7.5先,而MyEclipse早被墙奸已久,是以一直更新不成功,也就造成安装插件失败。

今日心血来潮GOOGLE一番之后再试,终于找到了解决办法如下:

1.   下载SVN插件,解压到硬盘上,如d:\svn

2.   新建一个Test类,其内容如下:

 

import java.io.File;

import java.util.ArrayList;

import java.util.List;

 

public class Test {

        privateString path;

 

        publicTest(String path) {

               this.path= path;

        }

 

        publicvoid print() {

               Listlist = getFileList(path);

               if(list == null) {

                       return;

               }

 

               intlength = list.size();

               for(int i = 0; i < length; i++) {

                       Stringresult = "";

                       StringthePath = getFormatPath(getString(list.get(i)));

                       Filefile = new File(thePath);

                       if(file.isDirectory()) {

                               StringfileName = file.getName();

                               if(fileName.indexOf("_") < 0) {

                                      continue;

                               }

                               String[]filenames = fileName.split("_");

                               Stringfilename1 = filenames[0];

                               Stringfilename2 = filenames[1];

                               result= filename1 + "," + filename2 + ",file:/" + path +"\\"

                                              +fileName + "\\,4,false";

                               System.out.println(result);

                       }else if (file.isFile()) {

                               StringfileName = file.getName();

                               if(fileName.indexOf("_") < 0) {

                                      continue;

                               }

                               String[]filenames = fileName.split("_");

                               Stringfilename1 = filenames[0];

                               Stringfilename2 = filenames[1].substring(0, filenames[1]

                                              .lastIndexOf("."));

                               result= filename1 + "," + filename2 + ",file:/" + path +"\\"

                                              +fileName + ",4,false";

                               System.out.println(result);

                       }

 

               }

        }

 

        publicList getFileList(String path) {

               path= getFormatPath(path);

               path= path + "/";

               FilefilePath = new File(path);

               if(!filePath.isDirectory()) {

                       returnnull;

               }

               String[]filelist = filePath.list();

               ListfilelistFilter = new ArrayList();

 

               for(int i = 0; i < filelist.length; i++) {

                       Stringtempfilename = getFormatPath(path + filelist[i]);

                       filelistFilter.add(tempfilename);

               }

               returnfilelistFilter;

        }

 

        publicString getString(Object object) {

               if(object == null) {

                       return"";

               }

               returnString.valueOf(object);

        }

 

        publicString getFormatPath(String path) {

               path= path.replaceAll("\\\\", "/");

               path= path.replaceAll("//", "/");

               returnpath;

        }

 

        publicstatic void main(String[] args) {

               newTest("d:\\svn\\plugins").print();//这里设置成插件的位置

        }

}

 

1.   执行完之后,将控制台中打印出的执行结果,复制到MyEclipse7.0安装目录下面的\configuration\org.eclipse.equinox.simpleconfigurator\bundles.info文件末尾,然后重启MyEclipse即可

似乎还有一种方法,在MyEclipse 7.0的安装目录下面新建一个dropins文件夹,放置要安装的的插件即可。不过插件需要符合这样的路径:  dropins——>插件文件夹——>eclipse——>plugins+features。由于前面已经安装完了,这个方法没有试验。

PS:今天翻墙一看,原来MyEclipse8.0都已经出来了。。。

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值