|Re: How does eclipse handle multi target projects? [message #545748]
||Thu, 08 July 2010 21:40
| Eric Rizzo
Registered: July 2009
On 7/8/10 10:49 AM, Darragh Bailey wrote:|
> Eric Rizzo wrote on Tue, 06 July 2010 11:05
>> If it were me, I'd probably break Project A into two separate Eclipse
>> projects, one that just owns the JAR library and the other a web
>> project. Then both Project B and Project A-web can depend on the JAR
>> project. That also forces you to think carefully about dependencies
>> among the packages, usually A Good Thing.
>> Your idea of using Ant to build the library JAR will also work,
>> although it adds an extra step to your build (which can likely be
>> automated, of course, using a custom builder). To make sure debugging
>> works as expected, you have to be careful with the launch
>> configurations, that their runtime classpaths include the project
>> sources instead of the JAR.
>> Hope this helps,
> We may well end up going down that route. If we do, it'll take some
> thought on how to keep components together in a nice way that makes
> packaging them realtively easy and not just exchange one complex problem
> for another.
> The other problem it introduces is how to pick up any classes from other
> projects that this one already depends on when building in eclipse. From
> the command line that's fine, I can ask the user to either set
> properties or enter a directory to where the required libraries are
> built and I already have the other projects all building using ant.
> Within eclipse I'm not sure how well I can receive input from users, so
> I'll have to look at possibly extracting some classpath information from
> the eclipse files I suspect.
> I have a feeling that a lot of the problems I'm going to run into with
> integrating ant builds with eclipse have likely solved already, anyone
> have pointers to documentation that covers this?
Can you give a concrete example of the kind of thing you're worried
about? Over the years I've configured a lot of different project
structures and dependencies, so I (or someone else here) might be able
to help you work out the details of specific situations.
I'm also copying the WTP forum group in case there are any specifics
involving WTP projects.
Powered by FUDForum
. Page generated in 0.24436 seconds