aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse SVN checkout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse SVN checkout" Watch "Eclipse SVN checkout" New topic
Author

Eclipse SVN checkout

Leo Hola
Greenhorn

Joined: Oct 28, 2010
Posts: 1
Hi everyone,

Java greenhorn so bear with me,

I'm running eclipse with SVN. When checking out a project with the "check out as a project configured with the new project wizard" the default directory is 'WebContent'. Is there any way to change this to be 'web' by default? Only I have to change it every time, and if I forget the project doesn't copy correctly.

I've searched high and low for the answer!

Thanks.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Welcome to the JavaRanch, Leo!

I tend to forget details like this, but basically you have 2 options:

1. Check out a project as simple source.

2. Check out a project as a previously-defined Eclipse project.

I believe you're doing option #2. This can only be done if the project was previously checked in with included ".project" and ".classpath" files as used by Eclipse. The Eclipse project isn't exactly the same thing as the svn "project" (subdirectory tree), but in most cases, they'll have the same name.

You can do option #1 if you prefer. Create a new, empty generic project with whatever name you want and then check out the SVN source into it. When you do that, the SVN copies of .project and .classpath files will import along with the Java source code, which magically makes the project into a Java project.

With either option, you can rename the Eclipse project without changing the project's physical directory name. Just right-click on the project root using the project explorer view, select refactor/rename off the menu. You may notice that the project name in the Eclipse navigator changes, but the SVN archive path displayed next to it does not.

Overall, however, it's usually a lot easier and less confusing to simply have the same name for both. Unless you're working on a branch or something like that.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse SVN checkout