Pasting a CVS URL

There are a great many features in Eclipse that I take for granted. One is the handy way that the "Add CVS Repository" wizard handles CVS URLs. The wizard is opened from the "CVS Repositories" view, by selecting menu item "New > Repository location…".

When you first see the wizard, it looks like you have to cut and paste the different bits of your CVS URL into the different fields.
However, if you just paste your URL into the first field, it automagically parses the bits out and populates all the fields appropriately. For example, pasting the CVS URL, ":pserver:anonymous@dev.eclipse.org:/cvsroot/org.eclipse", fills in the fields as follows:

I don’t do this very often, but it’s sure handy when I do…

This entry was posted in Uncategorized. Bookmark the permalink.

2 Responses to Pasting a CVS URL

  1. AlBlue says:

    Yup, it’s a good tip. Feel free to post it onto the EclipseZone Tips’n’Tricks forum if you want ;-)You can also past snippets of Java code into an Eclipse Java project, too. So if you were to paste:— 8< —package com.example.hello;public class World { public static void main(String args[]) { System.out.println(“Hello, World!”); }}— 8< —then you’d have a runnable example, just like that🙂

  2. Willian says:

    On Eclipse 3.3 you can just paste it directly on CVS Repositories view.See: https://bugs.eclipse.org/bugs/show_bug.cgi?id=157250

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s