Multiple ways to install svn plugin in myeclipse

Method 1: Online installation 
1. Open HELP->MyEclipse Configuration 
Center. Switch to the SoftWare tab.

 
2. Click Add Site to open the dialog box, enter Svn in the dialog box Name, and enter in the URL: http://subclipse.tigris.org/update_1.6.x
3. Find the Personal Site in the left column and find the SVN expansion. Add Core SVNKit Library and Optional JNA
Library (right-click Add to Profile), Subclipse Integration for Mylyn
3.0 under 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 can be.
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 folders from it and copy them to E :\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 folder E:\MyEclipse\MyEclipse8.5\configuration \org.eclipse.update 5. Restart myeclipse and everything will be normal. [/size]The
above two methods have been tried successfully
Method 3: Directly decompress and
download the SVN plug-in: site-1.6.10.zip After
decompressing, copy all its files to: D:\Program Files\Genuitec\MyEclipse 8.5\dropins (MyEclipse installation directory)
Restart MyEclipse and SVN will appear!

Method 4: The sure-fire method

1. Download the latest SVN package:
http://subclipse.tigris.org/servlets/ProjectDocumentList?folderID=2240
2. Create a folder anywhere on your disk: "myplugins/svn". You can choose any name. For the convenience of plug-in management, it is recommended to use the name "myplugins".
3. Copy the two folders in the decompressed svn to "myplugins/svn".
4. Copy the following java code, modify the path and execute:
package app;
import java.io.File;
import java.util.ArrayList;
import java.util.List;
/**
 * MyEclipse9 plugin configuration code generator
 *
 *
 */
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 = "Change to the installation directory //Genuitec//svn";
        new PluginConfigCreator().print(plugin);
    }
}
What needs to be noted here is to change to the path where svn is located, it is recommended to change to an absolute path. For example d:/myplugins/svn/. . .
5. Find "$myeclipse_home/configuration /org.eclipse.equinox.simpleconfigurator/" and open the "bundles.inf" file in it. In order to prevent it from being unclear whether it is something we added later, we will return it several times at the end. car, then paste the code after running in step 4, save it
6. Restart myeclipse

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326778639&siteId=291194637