惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
MyScale Blog
MyScale Blog
Jina AI
Jina AI
爱范儿
爱范儿
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
I
Intezer
The Cloudflare Blog
T
Threat Research - Cisco Blogs
G
Google Developers Blog
Stack Overflow Blog
Stack Overflow Blog
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Docker
AI
AI
Scott Helme
Scott Helme
Attack and Defense Labs
Attack and Defense Labs
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
L
LangChain Blog
Recent Announcements
Recent Announcements
Security Latest
Security Latest
Hugging Face - Blog
Hugging Face - Blog
W
WeLiveSecurity
Last Week in AI
Last Week in AI
Security Archives - TechRepublic
Security Archives - TechRepublic
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
S
Securelist
S
Security Affairs
Project Zero
Project Zero
博客园 - 叶小钗
Google DeepMind News
Google DeepMind News
T
Tor Project blog
A
About on SuperTechFans
V2EX - 技术
V2EX - 技术
宝玉的分享
宝玉的分享
T
Tenable Blog
博客园 - 聂微东
人人都是产品经理
人人都是产品经理
Simon Willison's Weblog
Simon Willison's Weblog
Forbes - Security
Forbes - Security
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
V
V2EX
AWS News Blog
AWS News Blog
The GitHub Blog
The GitHub Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
P
Privacy & Cybersecurity Law Blog
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
C
CXSECURITY Database RSS Feed - CXSecurity.com
H
Hacker News: Front Page
美团技术团队

博客园 - bluesky4485

Elasticsearch及java客户端jest使用 在windows环境下基于sublime text3的node.js开发环境搭建 CentOS6.4安装及配置oracle Ant学习 Springframework3.1源码编译 如何测试java支持的最大内存 win7x64下安装oraclex64版本后,plsql Developer无法登录的问题 VMWare安装redhat9后上网的的问题 Tomcat中部署后JspFactory报异常的解决方案 Oracle连接池信息的修改 OPDS1.1 VMware下Redhat9鼠标选用usb后不能使用的解决办法 m2e插件安装 Java开发Maven环境配置和介绍 javadoc生成出现错误“编码 GBK 的不可映射字符” Google常用搜索技巧 设置Google不跳转到google.com.hk CodeSmith支持中文配置 jni和C++通信中文乱码的问题
MyEclipse10 中增加svn插件
bluesky4485 · 2012-04-23 · via 博客园 - bluesky4485

随着Myeclipse版本号的变大,插件的安装也越来越复杂了,在有了configuration center之后,明明eclipse都能正常使用的update site,在Myeclipse中就是不能使用,真纠结。我试了好几个插件的在线安装,没有一个能成功的,而且巨慢无比,等待很长一段时间之后告诉你,失败。所以安装插件最好还是采用离线安装。

网上有另类的解决办法,亲自尝试了一些,有些已经都不可用了,特记录一下可用的方式。

首先:下载svn插件,最新的已经是1.8版本了。svn插件网站:http://subclipse.tigris.org/,插件下载地址:http://subclipse.tigris.org/files/documents/906/49209/site-1.8.8.zip 

解压svn包,找到其中的两个文件夹features和plugins目录,在Myeclipse目录下面新建一个文件夹,名称随意,可以就叫svn,将解压的两个文件夹放在这个新建的目录中

找到Myeclipse的安装目录,在安装目录下的configuration\org.eclipse.equinox.simpleconfigurator这个目录中有个

bundles.info文件,需要在这个文件中增加插件的相关信息Myeclipse才会去加载。

添加的内容使用下面的类生成:

import java.io.File;       
import java.util.ArrayList;       
import java.util.List;       
/**    
 * MyEclipse10 插件配置代码生成器 
 */      
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 = "F:\\MyEclipse10.0\\myEclipsePlugin\\svn";       
        new PluginConfigCreator().print(plugin);       
    }       
}  
最后就是在bundles.info文件后增加上面代码生成的内容,然后重启下Myeclipse即可。