个人工具

“UbuntuHelp:EclipseSubversion”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/EclipseSubversion}}
 
{{From|https://help.ubuntu.com/community/EclipseSubversion}}
 
{{Languages|UbuntuHelp:EclipseSubversion}}
 
{{Languages|UbuntuHelp:EclipseSubversion}}
 
 
 
== Introduction ==
 
== Introduction ==
 
 
Subclipse is an Eclipse plugin that provides project integration with Subversion repositories.  Using Subclipse you can checkout, browse, and share code from any Subversion repository.
 
Subclipse is an Eclipse plugin that provides project integration with Subversion repositories.  Using Subclipse you can checkout, browse, and share code from any Subversion repository.
 
 
See : SubVersion
 
See : SubVersion
 
 
See : [http://subclipse.tigris.org Official Subclipse Home Page]
 
See : [http://subclipse.tigris.org Official Subclipse Home Page]
 
 
See : [[UbuntuHelp:EclipseIDE]]
 
See : [[UbuntuHelp:EclipseIDE]]
 
 
The [http://wiki.ubuntu.org.cn/EclipseSubversion Chinese translation] of thie article.
 
The [http://wiki.ubuntu.org.cn/EclipseSubversion Chinese translation] of thie article.
 
 
== Subversion support ==
 
== Subversion support ==
 
 
First of all, install the <code><nowiki>subversion</nowiki></code> package (see InstallingSoftware)
 
First of all, install the <code><nowiki>subversion</nowiki></code> package (see InstallingSoftware)
 
 
== Installing Subclipse ==
 
== Installing Subclipse ==
 
 
To install Subclipse:
 
To install Subclipse:
 
 
* Open Eclipse, go into the menus : Help -> Software Updates -> Find and Install...
 
* Open Eclipse, go into the menus : Help -> Software Updates -> Find and Install...
 
* Search for new features to install
 
* Search for new features to install
第28行: 第16行:
 
* Next, next, next selecting ''subclipse'' and accepting the license.  Then click the ''"install all"'' button when ready.
 
* Next, next, next selecting ''subclipse'' and accepting the license.  Then click the ''"install all"'' button when ready.
 
* Restart Eclipse
 
* Restart Eclipse
 
 
 
=== Configuring a Subversion Repository ===
 
=== Configuring a Subversion Repository ===
 
 
To configure Subclipse to connect to a repository open the '''SVN Repository Exploring''' perspective:
 
To configure Subclipse to connect to a repository open the '''SVN Repository Exploring''' perspective:
 
 
* Click on Window -> Open Perspective -> Other
 
* Click on Window -> Open Perspective -> Other
 
* Highlight SVN Repository Exploring -> click Ok
 
* Highlight SVN Repository Exploring -> click Ok
 
 
You should now have the '''SVN Repository''' view open in the right hand column.  Now we can add our Subversion repository url:
 
You should now have the '''SVN Repository''' view open in the right hand column.  Now we can add our Subversion repository url:
 
 
* Right click in the SVN Repository column -> New -> Repository Location
 
* Right click in the SVN Repository column -> New -> Repository Location
 
* Enter the url of your repository -> click Ok
 
* Enter the url of your repository -> click Ok
 
 
 
== Using Subclipse ==
 
== Using Subclipse ==
 
 
Once you've configured your repository you can check out code into a new Eclipse project.  You can also create new project from Subversion repositories by:
 
Once you've configured your repository you can check out code into a new Eclipse project.  You can also create new project from Subversion repositories by:
 
 
* Clicking on File -> New -> Project  
 
* Clicking on File -> New -> Project  
 
* Expand the SVN folder -> Checkout Projects from SVN
 
* Expand the SVN folder -> Checkout Projects from SVN
 
 
You can upload your code into a Subversion repository by:
 
You can upload your code into a Subversion repository by:
 
 
* Right click the project -> Team -> Share Project
 
* Right click the project -> Team -> Share Project
 
* Highlight SVN -> Next  
 
* Highlight SVN -> Next  
 
* Select a Repository you've already configured and click Next, or choose ''create a new repository location''  and click Next.
 
* Select a Repository you've already configured and click Next, or choose ''create a new repository location''  and click Next.
 
* Choose the folder you want to upload to and click Finish.
 
* Choose the folder you want to upload to and click Finish.
 
 
Once you've shared your project or checked one out you can access most common svn functions by right clicking the project and selecting an item from the '''Team''' menu.
 
Once you've shared your project or checked one out you can access most common svn functions by right clicking the project and selecting an item from the '''Team''' menu.
 
 
 
'''Note:''' Old content about javahl to this page: SubversionAndJavahl.  I believe the content is rather old, so if you use javahl please feel free to update the page.
 
'''Note:''' Old content about javahl to this page: SubversionAndJavahl.  I believe the content is rather old, so if you use javahl please feel free to update the page.
 
 
 
'''Note:''' this guide has been tested on Ubuntu 7.06 (Feisty Fawn) and Ubuntu 7.10 (Gutsy Gibbon)
 
'''Note:''' this guide has been tested on Ubuntu 7.06 (Feisty Fawn) and Ubuntu 7.10 (Gutsy Gibbon)
 
----
 
----

2007年11月30日 (五) 16:56的版本

Introduction

Subclipse is an Eclipse plugin that provides project integration with Subversion repositories. Using Subclipse you can checkout, browse, and share code from any Subversion repository. See : SubVersion See : Official Subclipse Home Page See : UbuntuHelp:EclipseIDE The Chinese translation of thie article.

Subversion support

First of all, install the subversion package (see InstallingSoftware)

Installing Subclipse

To install Subclipse:

  • Open Eclipse, go into the menus : Help -> Software Updates -> Find and Install...
  • Search for new features to install
  • Add a new Remote Site with URL: http://subclipse.tigris.org/update
  • Next, next, next selecting subclipse and accepting the license. Then click the "install all" button when ready.
  • Restart Eclipse

Configuring a Subversion Repository

To configure Subclipse to connect to a repository open the SVN Repository Exploring perspective:

  • Click on Window -> Open Perspective -> Other
  • Highlight SVN Repository Exploring -> click Ok

You should now have the SVN Repository view open in the right hand column. Now we can add our Subversion repository url:

  • Right click in the SVN Repository column -> New -> Repository Location
  • Enter the url of your repository -> click Ok

Using Subclipse

Once you've configured your repository you can check out code into a new Eclipse project. You can also create new project from Subversion repositories by:

  • Clicking on File -> New -> Project
  • Expand the SVN folder -> Checkout Projects from SVN

You can upload your code into a Subversion repository by:

  • Right click the project -> Team -> Share Project
  • Highlight SVN -> Next
  • Select a Repository you've already configured and click Next, or choose create a new repository location and click Next.
  • Choose the folder you want to upload to and click Finish.

Once you've shared your project or checked one out you can access most common svn functions by right clicking the project and selecting an item from the Team menu. Note: Old content about javahl to this page: SubversionAndJavahl. I believe the content is rather old, so if you use javahl please feel free to update the page. Note: this guide has been tested on Ubuntu 7.06 (Feisty Fawn) and Ubuntu 7.10 (Gutsy Gibbon)