在myeclipse配置subclipse插件,使用SVN服务器

[align=center][size=x-large][b][color=red] 在myeclipse配置subclipse插件,使用SVN服务器[/color][/b][/size][/align]


[color=green]项目管理软件:Subversion(SVN服务器客户端)下载[/color]:[url]http://subversion.apache.org/[/url]


[color=green]myeclipse使用SVN的插件subclipse下载[/color]:[url]http://www.tigris.org/[/url]
[color=green]现在很多SVN服务器端安装包已经内置了Apache服务器[/color]
[size=medium][color=red][b]一、通过MyEclipse Configuration Center在线安装[/b][/color][/size]
    1. 打开MyEclipse10,在菜单栏选择MyEclipse→MyEclipse Configuration Center,即可进入到MyEclipse Configuration Center。

    2. 在MyEclipse Configuration Center界面中点击Software选项卡,在Software界面中点击add site,在弹出框输入信息

      Name : SVN

      URL : http://subclipse.tigris.org/update_1.8.x

    3. 等待一段时间,MyEclipse Configuration Center界面右上角会出现 Apply change,点击即可完成安装。



[b][size=medium][color=red]二、解压安装[/color][/size][/b]
    下载SVN的zip文件 site-1.8.4.zip,直接把文件下的features目录和plugins目录解压到MyEclipse安装目录下的dropins目录即可(MyEclipse→MyEclipse 10→dropins),重启即可。




[size=medium][color=red][b]三、创建link文件指向插件位置(推荐)[/b][/color][/size]
    1. 同样下载SVN的zip文件 site-1.8.4.zip,把文件下的features目录和plugins目录解压到任意位置

    2. 在MyEclipse安装目录下的dropins目录创建.link文件,如svn.link。

    3. 编辑svn.link文件,输入 path=第一步解压的features文件夹和plugins文件夹所在的目录,如 path=D:/Plugin/SVN。重启即可。


[b][size=medium][color=red]方法四:肯定可行的方法[/color][/size][/b]
1、下载最新的SVN包:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
2、在你的磁盘上任意位置创建文件夹:“myplugins/svn”。名字可以任取,为了方便插件管理,建议名称为“myplugins”。
3、将解压的svn里的两个文件夹拷贝到“myplugins/svn”下。
4、复制下列java代码,修改路径并执行:
package app;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
* MyEclipse9 插件配置代码生成器
*
*
*/
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)
{
/*你的插件的安装目录*/
String plugin = "D://Genuitec//Common//myplugins//svn";
new PluginConfigCreator().print(plugin);
}
}
这里需要注意的是修改成为刚才svn所在路径,建议改为绝对路径。比如D:\Genuitec是Myeclipse安装的根目录
5、
找到D:\Genuitec\MyEclipse 8.5\configuration\org.eclipse.equinox.simpleconfigurator文件夹--》打开其中的“bundles.inf”文件,为了防止分不清是不 是我们自己后加的东西,在最后面多回几次车,然后粘贴第4步运行后的代码,保存

6、重启myeclipse


[color=red][size=medium][b]五、1.解压site-1.6.12文件夹 [/b][/size][/color]
  copy 文件名为features和plugins的文件夹
2.返回到myeclipse软件的安装路径下,进入到common路径下的plugins文件夹中,然后新建svn文件夹,把之间复制的两个文件夹粘贴到这个路径下面

3.返回到与common文件夹相同的路径下的myeclipse10文件夹中,在dropins文件夹里面新建文件svn.link

4.然后编辑svn.link文件,其中是键值对的形式,path=D:\\MyEclipse\\Common\\plugins\\svn


5.最后保存svn.link文件,重启myeclipse编译器就可以了

[size=large][color=red][b]六、1、首先下载插件,目前这个版本是最高最稳定的[/b][/color][/size]
[url]http://subclipse.tigris.org/files/documents/906/49209/site-1.8.8.zip[/url]


下载SVN插件:site-1.8.8.zip
解压后将其全部文件拷贝至:D:\Program Files\MyEclipse\MyEclipse 10\dropins[color=red](MyEclipse的安装目录)[/color]
[color=green](注意是整个文件夹都拷进去)[/color]重启MyEclipse即可出现SVN!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值