[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.newcomer] Re: Eclipse + svn/subclipse + apache dir structure
|
"Sebastian Scheid" <mynewsgroup@xxxxxx> wrote in message
news:dv677o$nu$1@xxxxxxxxxxxxxxxxxxxx
> 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?
Yes.
>
> 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.
Initially i was trying to checkout the single trunk folder. Doing it this
way allows all the build files to work correctly.
I then tried checking out each project folder. After setting up the
libraries, this lets me edit the code like normal, and eclipse can build the
files and everything, but the ant build files no longer work. I beleive that
this is because they are missing the common build file that is located in
the trunk folder, and so therefore has now not been checked out. I cannot
check this out into the workspace to be at the root of the projects, like it
is when checking out the whole of the trunk Is there anyway of adding this
common build file, or is the only course of action to edit each of the
project build files to incorporate the elements of the common one?
Thanks
Chris
>
>
> Regards
> Sebastian