[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: problem with checking out project into an eclipse workspace

From: Stephen McConnell <mcconnell_stephen_at_yahoo.com>
Date: 2005-02-25 15:26:31 CET

What I have found is that checking out and building the project
correctly is sort of a two step process.

I check the project out from the repository as a Java project and let
it build the project. Like you said the source and class files are
initially in the same directories.

Next, I go to the project properties dialog box, Java Build Path and
the source Tab. And click "Add Folder". That allows me to add the
actual source folder from the tree structure I've just checked out.
Then, I enter the output folder in the "Default output folder:" text
field at the bottom of that dialog box.

Sounds like a lot, but this ensures that ECLIPSE is building the
.classpath and .project files correctly. I can then add jar files etc
etc before I click "OK" and let Eclipse build the project.

Like I said, it may sound like a lot, but once you set it up... it
works like a champ...

Hope this helpls.

Stephen McConnell
--- aloys.oberthuer@gmx.net wrote:

> I am not sure I understand how to check out a project from a
> Subversion repository into
> Eclipse using Subclipse.
>
> The setup is as follows:
> Created a Subversion repository,
> created /branches, /tags and /trunk folders,
> shared a project "SubclipseTest" from Eclipse resulting in the
> following repository layout
>
> /branches
> /trunk/SubclipseTest/src/... (my Java code)
> /tags
>
> If I now have another Eclipse workspace, connect to the repository,
> choose
> /trunk/SubclipseTest I can
> 1) checkout as a Java project, which leads to the problem that it is
> not reconized I set up the
> project originally with /src and /bin folders and now the /src folder
> is seen as part of the Java
> package hierarchy. I.e. my application now is in src.test.subclipse
> and class files are
> compiled to the same folder.
>
> 2) checkout as..., Java project, give the project the same
> "SubclipseTest" name and choose
> "create separate source and output folders" I get the correct project
> structure but:
> - Eclipse does not show a .classpath file and does not build the new
> project
> - Project/Build project menu entries are disabled
> - on trying to add a JAR to the classpath, change the jdk... I see
> the following:
> - now src is seen as part of the package hierarchy as above, I get
> thus src.test.subclipse
> and class files are compiled to the same folder
>
> Need to do something else, right?
> Thanks, Aloys
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
> For additional commands, e-mail: users-help@subclipse.tigris.org
>
>

=====
Received on Sat Feb 26 01:26:31 2005

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.