Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Problems with Eclipse working with code that is in clearcase
Problems with Eclipse working with code that is in clearcase [message #128593] Thu, 18 December 2003 13:47 Go to next message
Eclipse UserFriend
Originally posted by: deon.horton.med.ge.com

I am having major problems integrating with clearcase and eclipse for java
on Win2000.

Do you have a doc. that shows this process?
I have clearcase on 2000, I can see my old view and I can edit code from a
basic text editor.
So, I guess this is setup right!

I have my view mounted on my Z drive.

My source path is:
Z:/srv/java/src
package ------ com/med/ct/
-------- img
*.java
-------- analysis
*.java
:
:

I have tried a few different approaches to get my code into eclipse.

First approach, was to create a project on my desktop hard drive, then
import
the code/ structure from the clearcase mounted directory. (This hangs
eclipse)

Second approach, was to create a project on my desktop hard drive, then
add a folder
to this project, that is linked to the code in the mounted directory, this
approach seems to
lose the file structure and I then have about 3000 compile error, for
wrong package structures
and import paths. Since there are about 4 people working on this code, it
would not be good
to change the import paths and package structure. This is only in my view
, but seems like
a problem when it is time to merge back into the main line.

My current design flow is the basic..... clearcase on UNIX, vim editor,
and compile with clearmake
all on UNIX.

So any design flow doc, would be great, or getting started doc for
importing or linking code together with clearcase.

I have been trying to get this to work for about a week!


Thanks!
Re: Problems with Eclipse working with code that is in clearcase [message #128672 is a reply to message #128593] Fri, 19 December 2003 05:04 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: neil_swingler.yahoo.com

> My source path is:
> Z:/srv/java/src
> package ------ com/med/ct/
> -------- img
> *.java
> -------- analysis
> *.java
> :
> :

> I have tried a few different approaches to get my code into eclipse.

> First approach, was to create a project on my desktop hard drive, then
> import
> the code/ structure from the clearcase mounted directory. (This hangs
> eclipse)

That will copy all the code into the project. You don't want to do that
since any changes you make will not be reflected in clearcase.

> Second approach, was to create a project on my desktop hard drive, then
> add a folder
> to this project, that is linked to the code in the mounted directory, this
> approach seems to
> lose the file structure and I then have about 3000 compile error, for
> wrong package structures
> and import paths. Since there are about 4 people working on this code, it
> would not be good
> to change the import paths and package structure. This is only in my view
> , but seems like
> a problem when it is time to merge back into the main line.

This approach should work. If you had problems with the package names not
being correct, then you probably didn't define the source folder correctly.
(look in project properties/build path/source folders). You need to add
Z:/srv/java/src as a source folder, not Z:/srv/java/src/com/med/ct.

My personal preference is to have the whole eclipse project in clearcase
(so the .project and .classpath files become elements). Originally, I had
a seperate eclipse project directory and used a clearcase symbolic link to
pull the source code in. Now the source code really lives in the eclipse
project directory.

All our 3rd party jars are in clearcase as well. I have a jar directory in
the eclipse project that contains clearcase sybolic links to their home
locations. Thus all project dependencies are inside the eclipse project
and specified as relative paths. This means we can use the same eclipse
project on both windows and unix.

So my project structure is like

/vobs/myvob/myproj
- .project (eclipse project file)
- .classpath (eclipse project file)
- src
- com/... (all the source code)
- jar
- jar1 -> /vobs/proj/jars/jar1
- jar2 ...

--
Neil Swingler
- classes
Re: Problems with Eclipse working with code that is in clearcase [message #129793 is a reply to message #128593] Wed, 24 December 2003 12:51 Go to previous message
Eclipse UserFriend
Originally posted by: d.wegener(spamblock).attbi.com

Why not create the project directly in the view? Try defining the project
location as Z:/srv and then defining the java/src directory as a source
path. If you check the .classpath and .project files into ClearCase, others
will be able to use Eclipse to work on the project as well.


"deon" <deon.horton@med.ge.com> wrote in message
news:brssnm$ubi$1@eclipse.org...
> I am having major problems integrating with clearcase and eclipse for java
> on Win2000.
>
> Do you have a doc. that shows this process?
> I have clearcase on 2000, I can see my old view and I can edit code from a
> basic text editor.
> So, I guess this is setup right!
>
> I have my view mounted on my Z drive.
>
> My source path is:
> Z:/srv/java/src
> package ------ com/med/ct/
> -------- img
> *.java
> -------- analysis
> *.java
> :
> :
>
> I have tried a few different approaches to get my code into eclipse.
>
> First approach, was to create a project on my desktop hard drive, then
> import
> the code/ structure from the clearcase mounted directory. (This hangs
> eclipse)
>
> Second approach, was to create a project on my desktop hard drive, then
> add a folder
> to this project, that is linked to the code in the mounted directory, this
> approach seems to
> lose the file structure and I then have about 3000 compile error, for
> wrong package structures
> and import paths. Since there are about 4 people working on this code, it
> would not be good
> to change the import paths and package structure. This is only in my view
> , but seems like
> a problem when it is time to merge back into the main line.
>
> My current design flow is the basic..... clearcase on UNIX, vim editor,
> and compile with clearmake
> all on UNIX.
>
> So any design flow doc, would be great, or getting started doc for
> importing or linking code together with clearcase.
>
> I have been trying to get this to work for about a week!
>
>
> Thanks!
>
>
Previous Topic:PDE Unit test
Next Topic:Eclipse represents the worst of Java
Goto Forum:
  


Current Time: Thu Jul 17 07:54:23 EDT 2025

Powered by FUDForum. Page generated in 0.08526 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top