> Is there anyway to hook into the eclipse plug-in and have it reference
> other projects in the workspace if they are present?

It depends what kind of 'referencing' do you mean.

1. If you mean 'project references' from the Eclipse's project
properties then you can do it via 'referencedProjects' property of the
eclipseProject task. However, those project references are not very
useful because the only feature they provide in Eclipse is they will
open automatically when you open the project that refer them
(similarly, it affects the "close unrelated projects feature").

2. I guess what you mean is the java build path reference, that is
making the binary output of one project available on the classpath of
the other? In that case, some of your options include:
a - update the dependencies section to contain relevant projects
b - manipulate the classpath entries via
project.eclipseClasspath.whenConfigured { classpath -> }

The thread is a bit old but I wanted to clear up few thing :) The
referencedProjects property works fine although it does not serve for
manipulating the classpath dependencies.

Cheers!

On Thu, Jun 16, 2011 at 6:00 PM, James Carr <[email protected]> wrote:
> Is there anyway to hook into the eclipse plug-in and have it reference
> other projects in the workspace if they are present?
>
> Thanks,
> James
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



-- 
Szczepan Faber
Principal engineer@gradleware
Lead@mockito

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to