[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.newcomer] Re: Eclipse + svn/subclipse + apache dir structure

Chris Gates schrieb:
Hi,

We've got a few java projects submitted to svn which have dependancies on
each other. These projects are built in an apache directory structure with
src/build/resources/dist folders and an ant build file at the root.

Did you check in the .project and .classpath files to the root folder of each subproject as well? Subclipse is aware of this file an configures the nature and the buildpath of a project automatically when checking it out.



If I checkout the whole trunk of the svn, which includes all the projects
into Eclipse, then the ant scripts run fine, and projects can compile etc.
However, none of the projects seem to be registered as Java projects, and
therefore none of the editing tools work such as code completion, the '.'
notation to access methods etc, or finding the declarations of objects etc.

Your projects do not have the Java nature. Is your repository structure like this: ...myproject/trunk/ subproject1/src/... subproject2/src/... and with a build.xml, .project and .classpath in each subprojectX folder?

Do you checkout the single trunk folder (...myproject/trunk) or each project-folder that is in the trunk-folder? I think you have to do the latter because Subclipse assumes .project to be in the top-level folder that is checked out. So you need to select .../subproject1, .../subproject2 (a multi selection is possible) for checkout instead of only trunk. Then a Java project is created for each checked out folder and given the name from .project and the buildpath from .classpath.


Regards Sebastian