MyEclipse下如何安裝svn外掛程式

來源:互聯網
上載者:User

標籤:style   c   class   blog   code   java   

方法一:線上安裝

1.開啟HELP->MyEclipse Configuration    不過多數情況下再myeclipse實現不了  
Center。切換到SoftWare標籤頁。 

 

2.點擊Add Site 開啟對話方塊,在對話方塊Name輸入Svn,URL中輸入:http://subclipse.tigris.org/update_1.6.x
3.在左側邊欄中找到Personal Site中找到SVN展開。將Core SVNKit Library和Optional JNA
Library添加(右鍵Add to Profile),Subclipse下面的Subclipse Integration for Mylyn
3.0可以不添加(特別注意,此處不要添加)。
4.在右下角窗格(Pending Changes )中點擊Apply。安裝重啟後MyEclipse即可。

 

方法二:link安裝
安裝subclipse, MyEclipse9.0 SVN外掛程式
1、從官網下載site-1.6.10.zip檔案,網址是:subclipse.tigris.org,
2、從中解壓出features與 plugins檔案夾,複製到E:\MyEclipse\myPlugin\svn裡面,其它的*.xml檔案不要。
3、在 E:\MyEclipse\MyEclipse9.0\dropins下建立檔案svn.link,內容是:path=E:\\MyEclipse \\myPlugin\\svn儲存。
4、(嘜呆兒:這一步不確定,先不要刪除)刪除E:\MyEclipse\MyEclipse8.5\configuration \org.eclipse.update檔案夾
5、重啟myeclipse就一切正常了。[/size]
以上兩種方法都嘗試成功
方法三:直接解壓     (myeclipse10 親測可用)
下載SVN外掛程式:site-1.6.10.zip     http://pan.baidu.com/s/1bntOgxT
解壓後將其全部檔案拷貝至:D:\Program Files\Genuitec\MyEclipse 8.5\dropins(MyEclipse的安裝目錄)
重啟MyEclipse即可出現SVN!

 

方法四:肯定可行的方法

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 = "改成安裝目錄//Genuitec//svn";        new PluginConfigCreator().print(plugin);    }}
View Code

這裡需要注意的是修改成為剛才svn所在路徑,建議改為絕對路徑。比如d:/myplugins/svn/。。。
5、 找到“$myeclipse_home/configuration /org.eclipse.equinox.simpleconfigurator/”,開啟其中的“bundles.inf”檔案,為了防止分不清是不是我們自己後加的東西,在最後面多回幾次車,然後粘貼第4步運行後的代碼,儲存
6、重啟myeclipse

 

 

 

轉自:http://hi.baidu.com/294286540/blog/item/f89af3014404630d738b656d.html

 

 

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.