multiple projects and relative paths [message #275700] |
Thu, 11 November 2004 08:20  |
Eclipse User |
|
|
|
Originally posted by: f.egger.dpcom.de
hi all!
we want to have multiple eclipse-projects working on the same
overallproject structure, so that development teams can have the same
library-, src- and web-folders.
the structure should look like this:
/overallprojectroot
/classes
/lib
/src
[...]
/.classfile
/.projectfile1
/.projectfile2
the only difference between the projects is, that they work on different
packages in the src-folder. that means, i will have a project with the
source folder "src" including files with "de/company1/**". the other
project has the same source-directory (src) including files with
"de/company2/**".
now the problem is that i can neither have more than one project-file in
the overallprojectroot nor have several projects in subdirectories below
the overallprojectroot, because i cannot have relative paths from there to
the src or classes folder.
does anybody know, how we can solve the problem?
|
|
|
Re: multiple projects and relative paths [message #275709 is a reply to message #275700] |
Thu, 11 November 2004 10:19   |
Eclipse User |
|
|
|
Originally posted by: eclipse.rizzoweb.com
Frank Egger wrote:
> hi all!
>
> we want to have multiple eclipse-projects working on the same
> overallproject structure, so that development teams can have the same
> library-, src- and web-folders.
> the structure should look like this:
>
> /overallprojectroot
> /classes
> /lib
> /src
> [...]
> /.classfile
> /.projectfile1
> /.projectfile2
>
> the only difference between the projects is, that they work on different
> packages in the src-folder. that means, i will have a project with the
> source folder "src" including files with "de/company1/**". the other
> project has the same source-directory (src) including files with
> "de/company2/**".
>
> now the problem is that i can neither have more than one project-file in
> the overallprojectroot nor have several projects in subdirectories below
> the overallprojectroot, because i cannot have relative paths from there
> to the src or classes folder.
>
> does anybody know, how we can solve the problem?
You could use the Eclipse Project ability to include/exclude sets of
source folders. Assuming you're using CVS or some other CM system: for
each project, check out the entire project into an Eclipse Project. Then
specify the Java Build Path source folders of the Project to only
include the folders that Project is concerned with.
If you're using CVS, you could probably do something by defining
appropriate modules in your CVS repository, one module representing each
logical project and only including the source directories for that
project. But I would try to do it on the client (developer, Eclipse)
side first.
HTH,
Eric
|
|
|
Re: multiple projects and relative paths [message #275762 is a reply to message #275709] |
Fri, 12 November 2004 03:59  |
Eclipse User |
|
|
|
Originally posted by: f.egger.dpcom.de
dear eric,
thanks for your answer. the problem is not to use the
include/exclude-functionality of eclipse to get only parts of the
source-folder for a project. the problem is, that i want to have multiple
projects within ONE cvs-module so that there is one src, lib...-folder for
the whole "overall-project"/cvs-module.
by now, i can make subdirectories from the module-root and create
eclipse-projects, which reference either external directories or defined
variables as src or classes folder (because src and classes folder are not
below the project-roots). the situation looks like this:
/moduleroot
/projects
/project1
/.classpath
/.project
/project2
/.classpath
/.project
/src
/lib
/...
the first alternative is not very useful, because every developer has a
different absolut directory-structure. the second one implies that every
developer has to define variables to the cvs-module-src and -classes
folder.
if there would be a third alternative where i can define the src- and
classes folder in eclipse as relative paths ("../../src") from the
project-root, i would be lucky. but this is not possible by now :-(
so my question was, if there is a workaround to achive the described
situation.
greets,
frank
Eric Rizzo wrote:
> You could use the Eclipse Project ability to include/exclude sets of
> source folders. Assuming you're using CVS or some other CM system: for
> each project, check out the entire project into an Eclipse Project. Then
> specify the Java Build Path source folders of the Project to only
> include the folders that Project is concerned with.
> If you're using CVS, you could probably do something by defining
> appropriate modules in your CVS repository, one module representing each
> logical project and only including the source directories for that
> project. But I would try to do it on the client (developer, Eclipse)
> side first.
> HTH,
> Eric
|
|
|
Powered by
FUDForum. Page generated in 0.24158 seconds