SVN use (2) - MyEclipse10.6 installation SVN plug-in method and plug-in download address

 There was something wrong with MyEclipse 10.6 today, so I reinstalled it. At the same time, I also reinstalled the svn plug-in, and recorded the online resources and my own experience here on the blog. It is recommended to look at the method directly , it is simple and convenient, and there is no need to toss too much.

Method 1: Direct decompression method

Download address: http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
Download SVN plugin: site-1.8.22.zip After
decompressing, copy all its files to: D:\MyEclipse\MyEclipse 10.6\dropins ( MyEclipse installation folder)
restart MyEclipse and SVN will appear!

(Additionally, copy the files downloaded into the svn plug-in (including features and other files) to the folder of the example above, restart MyEclipse, you can see the following in the import project, for example, "SVN" similar to the following figure .Haha, then congratulations, you successfully installed the plugin)


Method 2: link to install
and install subclipse, MyEclipse9.0 SVN plug-in
1. Download the site-1.6.10.zip file from the official website, the URL is: subclipse.tigris.org,
2. Extract the features and plugins directory from it and copy it to E: In \MyEclipse\myPlugin\svn, other *.xml files are not required.
3. Create a new file svn.link under E:\MyEclipse\MyEclipse9.0\dropins, the content is: path=E:\\MyEclipse \\myPlugin\\svn save.
4. (Marker: this step is uncertain, do not delete it first) Delete the E:\MyEclipse\MyEclipse8.5\configuration\org.eclipse.update directory
5. Restart myeclipse and everything will be normal.

[/size]The
above two methods have been tried successfully

Method 3: Online installation

1. Open HELP->MyEclipse Configuration
Center. Switch to the SoftWare tab.

 
2. Click Add Site to open the dialog. Enter Svn in the dialog Name. Enter in the URL: http://subclipse.tigris.org/update_1.6.x
3. Find the SVN deployment in Personal Site in the left column. Add Core SVNKit Library and Optional JNA
Library (right click Add to Profile), Subclipse Integration for Mylyn
3.0 below Subclipse can not be added (special attention, do not add here).
4. Click Apply in the lower right pane (Pending Changes). After installation restart MyEclipse will work.


Method 4: The sure-fire method

1. Download the latest SVN package:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
2. Create a directory anywhere on your disk: "myplugins/svn". The name can be arbitrary. To facilitate plugin management. The suggested name is "myplugins".
3. Copy the two directories in the decompressed svn to "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 = "改成安装文件夹//Genuitec//svn";
        new PluginConfigCreator().print(plugin);
    }
}
这里须要注意的是改动成为刚才svn所在路径。建议改为绝对路径。

比方d:/myplugins/svn/。

。。
5、 找到“$myeclipse_home/configuration /org.eclipse.equinox.simpleconfigurator/”,打开当中的“bundles.inf”文件,为了防止分不清是不 是我们自己后加的东西,在最后面多回几次车,然后粘贴第4步执行后的代码,保存
6、重新启动myeclipse

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324830031&siteId=291194637