Q: Best way to work with an existing CVS tree [message #214024] |
Sat, 20 March 2004 15:25  |
Eclipse User |
|
|
|
Originally posted by: igough.istop.com
Our devteam currently uses Netbeans as our Java IDE and I would like to
start using Eclipse as the IDE. Our major barrier seems to be that we
cannot figure out a method to use Eclipse on our existing CVS tree that
doesn't seem clunky. I assume this is just due to a misunderstanding of
the Eclipse model.
Our existing CVS project looks similar to the following :
projMain
C
api
util
...
java
com
company
...
I would like to use Eclipse in a manner that allows me to use the CVS
interface from Eclipse AND to also use Eclipse as the java IDE. To date,
I have only been able to do one or the other.
These are the things I have tried:
1) Create a java project called JTest and do a Check Out as... Existing
project JTest of the projMain CVS project. This results in Eclipse
complaining about the package names being wrong withing the java files
since the packages are of the form "com.company...." but Eclipse
believes the packages should be rooted at projMain.
2) Create a java project at projMain/java. This fixes the package
mismatch issue, but Eclipse does not think the files are under CVS control.
3) A mixture of the 2, where I create a simple project as in 1 above,
and then attempt to create a java project as in 2 above. This doesn't
work as Eclipse disallows a project to be created within projMain and
another one below it in projMain/java.
I'd love to hear from people on how they handle this same scenario. Note
that responses along the line of "create a different CVS project
structure" are not helpful 'cause thats not gonna happen. :-)
Ian
|
|
|
|
|
Re: Q: Best way to work with an existing CVS tree [message #214440 is a reply to message #214024] |
Mon, 22 March 2004 12:08  |
Eclipse User |
|
|
|
Originally posted by: eclipse-user.jibeinc.com
Ian Gough wrote:
> Our existing CVS project looks similar to the following :
>
> projMain
> C
> api
> util
> ...
> java
> com
> company
> ...
>
> I would like to use Eclipse in a manner that allows me to use the CVS
> interface from Eclipse AND to also use Eclipse as the java IDE. To date,
> I have only been able to do one or the other.
>
> These are the things I have tried:
> 1) Create a java project called JTest and do a Check Out as... Existing
> project JTest of the projMain CVS project. This results in Eclipse
> complaining about the package names being wrong withing the java files
> since the packages are of the form "com.company...." but Eclipse
> believes the packages should be rooted at projMain.
I'm not sure if this is clear from the other responses, so I'm going to
state it simply: it appears the key you have missed is that you must
tell the Eclipse project where its Java source folder is rooted at. In
your case, it is the directory named "java" under the root of the project.
To do this, select the project and choose Properties from the
right-click pop-up menu, then choose Java Build Path - once you specify
the source folder I'm betting it will behave just as you expect.
HTH,
Eric
--
Eric Rizzo
Software Architect
Jibe, Inc.
http://www.jibeinc.com
|
|
|
Powered by
FUDForum. Page generated in 0.03124 seconds