Login | Register
My pages Projects Community openCollabNet

Discussions > dev > [Subclipse-dev] svn not detected in linked resources ?

subclipse
Discussion topic

There will be a brief maintenance window every Friday at 17:00 Pacific.
For further details, see CollabNet's maintenance and upgrade policy.

Hide all messages in topic

All messages in topic

Re: [Subclipse-dev] svn not detected in linked resources ?

Author markphip
Full name Mark Phippard
Date 2011-11-20 13:51:05 PST
Message We support Linked Resources in the manner recommended in the Eclipse
documentation for Team providers. Namely, we tolerate their presence
but otherwise ignore them.

There is little chance of anything better ever being done in Subclipse
though anyone is certainly free to work on it and submit a patch.
Keep in mind we rely on Subversion API to do all the real work and
Subversion has its own idea of what a working copy looks like and it
has no awareness of Eclpse-specific concepts like linked resources.




On Sat, Nov 19, 2011 at 1:57 PM, Alexander Neundorf <neundorf at kde dot org> wrote:
> Hi,
>
> I'm maintaining the Eclipse CDT project generator in CMake, and we have
> basically one significant problem left.
>
> If the Eclipse project files (.project and .cproject) are created in-source,
> i.e. at the root of the source tree of the project, everything works fine.
>
> But building in-source is not recommended. We strongly recommend to use out-
> of-source builds, so sources and build are cleanly separated, and you can have
> e.g. multiple builds for one source tree.
>
> In such an out-of-source setup, the Eclipse project files (.project and
> .cproject) are created in the root directory of the build tree, which is
> typically a "sibling" directory of the source tree.
> This looks e.g. like this:
>
> Source tree:
> src/automoc/
> src/automoc/.svn/
> src/automoc/CMakeLists.txt
> src/automoc/main.cpp
>
> And a build tree for this source tree:
>
> src/automoc-build/
> src/automoc-build/.project
> src/automoc-build/.cproject
> src/automoc-build/Makefile
> src/automoc-build/CM​akeCache.txt
> src/automoc-build/main.o
> src/automoc-build/automoc
>
>
> In this case the source files are not present directly in the project tree
> (since we are out-of-source), and instead a linked resource is created which
> "points" to the source directory:
>
> <linkedResources>
>  <link>
>    <name>[Source directory]</name>
>    <type>2</type>
>    <location>/ho​me/alex/src/automoc​</location>
>  </link>
> </linkedResources>
>
>
> So via this linked resource the user has access to his source files.
>
> The problem is that subclipse does not work with the files in the linked
> resource, the "Team" stays empty.
>
> What can be done to make this work ?
>
> Can I do something in the created project file to make subclipse work ?
> Can I add some other project or config files to make it work ?
> Or can something be done in subclipse to make it work ?
>
> Thanks for any pointers
> Alex
>
> --------------------​--------------------​--------------
> http://subclipse.tig​ris.org/ds/viewMessa​ge.do?dsForumId=1043​&dsMessageId=288​1457
>
> To unsubscribe from this discussion, e-mail: [dev-unsubscribe@sub​clipse.tigris.org].
>



--
Thanks

Mark Phippard
http://markphip.blogspot.com/

[Subclipse-dev] svn not detected in linked resources ?

Author Alexander Neundorf <neundorf at kde dot org>
Full name Alexander Neundorf <neundorf at kde dot org>
Date 2011-11-19 11:00:04 PST
Message Hi,

I'm maintaining the Eclipse CDT project generator in CMake, and we have
basically one significant problem left.

If the Eclipse project files (.project and .cproject) are created in-source,
i.e. at the root of the source tree of the project, everything works fine.

But building in-source is not recommended. We strongly recommend to use out-
of-source builds, so sources and build are cleanly separated, and you can have
e.g. multiple builds for one source tree.

In such an out-of-source setup, the Eclipse project files (.project and
.cproject) are created in the root directory of the build tree, which is
typically a "sibling" directory of the source tree.
This looks e.g. like this:

Source tree:
src/automoc/
src/automoc/.svn/
src/automoc/CMakeLists.txt
src/automoc/main.cpp

And a build tree for this source tree:

src/automoc-build/
src/automoc-build/.project
src/automoc-build/.cproject
src/automoc-build/Makefile
src/automoc-build/CM​akeCache.txt
src/automoc-build/main.o
src/automoc-build/automoc


In this case the source files are not present directly in the project tree
(since we are out-of-source), and instead a linked resource is created which
"points" to the source directory:

<linkedResources>
  <link>
    <name>[Source directory]</name>
    <type>2</type>
    <location>/hom​e/alex/src/automoc​</location>
  </link>
</linkedResources>


So via this linked resource the user has access to his source files.

The problem is that subclipse does not work with the files in the linked
resource, the "Team" stays empty.

What can be done to make this work ?

Can I do something in the created project file to make subclipse work ?
Can I add some other project or config files to make it work ?
Or can something be done in subclipse to make it work ?

Thanks for any pointers
Alex
Messages per page: