Projects with source above in tree. [message #204224] |
Tue, 06 November 2007 23:11  |
Eclipse User |
|
|
|
Originally posted by: slide.o.mix+eclipse.gmail.com
At my work, we have a large set of "common" code that is used by every
application. The problem is, I don't want to have to go to the top level
of the source to include all of the files that I might want to look at
and possibly change. I would like to be able to add certain specific
files to my project, but they are above or parallel to my application in
the directory structure like below:
common_api
|
- logging
|
- database
myapplication
What is the best way to handle something like this? I would like my
project to rebuild if I change something in the common area, but I don't
want to include ALL of the common area as I perhaps will only change the
"database" portiong.
Any ideas?
Thanks!
slide
|
|
|
Re: Projects with source above in tree. [message #204241 is a reply to message #204224] |
Wed, 07 November 2007 00:55  |
Eclipse User |
|
|
|
Originally posted by: ronbermejo.yahoo.com
Hello slide!
Slide wrote:
> At my work, we have a large set of "common" code that is used by every
> application. The problem is, I don't want to have to go to the top level
> of the source to include all of the files that I might want to look at
> and possibly change. I would like to be able to add certain specific
> files to my project, but they are above or parallel to my application in
> the directory structure like below:
> common_api
> |
> - logging
> |
> - database
> myapplication
> What is the best way to handle something like this? I would like my
> project to rebuild if I change something in the common area, but I don't
> want to include ALL of the common area as I perhaps will only change the
> "database" portiong.
> Any ideas?
The ability to add/exclude files from anywhere in the filesystem is still
a work in progress (https://bugs.eclipse.org/bugs/show_bug.cgi?id=205300)
... so I guess you have the following options for now:
1. Create a folder inside 'myapplication' that is a link to the desired
'common_api' folder
You can do this by New->Folder..., then click the "Advanced>>" button, and
enable the 'Link to folder in the filesystem' option.
2. Create 2 projects, 'common_api' (shared or static lib) and
'myapplication' (exe)
Then you could link myapplication to the library produced by common_api
project.
However, be aware of this current limitation in 4.0.1 (w/c should be
addressed by 4.0.2):
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205113
Meaning, you would have to manually force a rebuild of 'myapplication'
whenever 'common_api' changes.
Hth!
Ron
|
|
|
Powered by
FUDForum. Page generated in 0.04889 seconds