Question on dependencies [message #155007] |
Fri, 02 June 2006 10:24 |
Eclipse User |
|
|
|
Originally posted by: fraguet.yahoo.com
I've just made the switch from codewarrior and have the following problem:
I have two projects in my workspace. The first generates some classes at
location 'path1'.
The second requires these classes. To build it, I include 'path1' as an
external class folder.
The classes generated by the second project require those of the first
project at runtime; how can I make eclipse include all dependent classes
(from the 1st proect) when building the second project?
Thanks in advance!
|
|
|
Re: Question on dependencies [message #155031 is a reply to message #155007] |
Fri, 02 June 2006 13:14 |
Eclipse User |
|
|
|
Originally posted by: jefmyers.us.ibm.com
Add the first project to the second's Java Build Path. Select the
second project, right click and select Properties->Java Build
Path->Projects and hit Add...
- Jeff
|
|
|
Re: Question on dependencies [message #155038 is a reply to message #155031] |
Fri, 02 June 2006 13:47 |
Eclipse User |
|
|
|
Originally posted by: fraguet.yahoo.com
Jeff Myers wrote:
> Add the first project to the second's Java Build Path. Select the
> second project, right click and select Properties->Java Build
> Path->Projects and hit Add...
> - Jeff
I did this, but the classes from Project1 did not get copied to the 'bin'
folder from Project2, which is what I would like. Many thanks for your
suggestions.
|
|
|
Re: Question on dependencies [message #155050 is a reply to message #155038] |
Fri, 02 June 2006 13:54 |
Eclipse User |
|
|
|
Originally posted by: jefmyers.us.ibm.com
This is not what Build Path function does. It'll add the files from
project 1 to the build path of project 2, and to the runtime classpath
of programs in project 2. If you want to copy the files into a common
directory you'll either have to combine these two projects into one
project (perhaps two source folders) or write an ant task to perform the
copy after build.
Hope this helps,
- Jeff
|
|
|
Powered by
FUDForum. Page generated in 0.04457 seconds