1. 程式人生 > >準確獲取Eclipse Foundation專案的Git連結和版本

準確獲取Eclipse Foundation專案的Git連結和版本

最近又需要用上面提的這篇論文中的一些資料,但是發現Eclipse Foundation的專案還真是難下載,所以簡單總結一下。像之前說的,在這裡:http://git.eclipse.org/c/ 可以看到其所有專案的列表,但是我今天嘗試git clone的時候發現,很多專案的連結已經點不進去了,例如:

點連結之後又跳回原來這個頁面,真是百思不得其解。仔細分析了一下發現,這些專案的連結都是有規律的,例如Eclipse JDT Core的主頁是:https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/,其git clone的命令可以寫成:

git clone http://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git

所以相應的,每個專案的主頁地址其實就是:https://git.eclipse.org/c/ 加上專案名,例如剛才這個repo對應的專案名是:equinox,再加上上面這個git連結:rt.equinox.framework.git,所以這個Equinox Framework的主頁地址是:https://git.eclipse.org/c/equinox/rt.equinox.framework.git,其git clone的命令是:

git clone http://git.eclipse.org/gitroot/equinox/rt.equinox.framework.git

總結一下之前說的MSR 2010論文中的四個Eclipse專案的資訊:

Eclipse JDT Core:https://git.eclipse.org/c/jdt/eclipse.jdt.core.git/,git clone http://git.eclipse.org/gitroot/jdt/eclipse.jdt.core.git

Eclipse PDE UI:https://git.eclipse.org/c/pde/eclipse.pde.ui.git/,git clone http://git.eclipse.org/gitroot/pde/eclipse.pde.ui.git

Equinox framework:https://git.eclipse.org/c/equinox/rt.equinox.framework.git

,git clone http://git.eclipse.org/gitroot/equinox/rt.equinox.framework.git

就簡單總結這麼多。