Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[wtp-jst-dev] Corollary to org.eclipse.jst.component.dependency in WTP 1.5

A coworker and I are working on an Ivy dependency management plugin targeted
at RAD7 (Eclipse 3.2.2, WTP 1.5.4).  The basic concept is wholly similar to
how the Maven plugin functions in that a classpath container is created to
hold the Ivy-managed dependencies in order that we can check our .classpath
into source control and it is not checked out each time we refresh
dependencies.

The issue at hand is how to add the jars and project references included in
this classpath container to the runtime classpath as well.  I see that Rob
Frost did some excellent work for WTP 2.0 in exposing a new classpath
attribute and API for tagging classpath containers among other entries for
the runtime classpath.

I was hoping to reproduce a similar behavior in our plugin to support the
already lagging RAD7.

It appears that the key to Rob Frost's extension point lies in 
org.eclipse.jst.j2ee.application.internal.operations.ClassPathSelection and
org.eclipse.jst.j2ee.internal.common.ClasspathModel.

While I can clearly see how Rob Frost is building up his classpath
references maps, creating IVirtualReference objects, it is unclear to me if
these IVirtualReference instances are what actually binds references in the
runtime classpath and what is being done with the instances after their
creation.  I am guessing I am just not noticing a core class a la
ContainerCore, JavaCore, and others that might expose service methods to
bind these references.

Surely there is some other way to add classpath resources to the runtime
classpath without modifying the WTP core.  I fail to understand how the J2EE
Module Dependencies mechanism worked prior to WTP 2.0 which would appear to
do what we want.

Any pointers as to how the runtime classpath is modified programatically
would be appreciated.

Thanks,

Jon Schneider
-- 
View this message in context: http://www.nabble.com/Corollary-to-org.eclipse.jst.component.dependency-in-WTP-1.5-tf4843947.html#a13858400
Sent from the Eclipse JST - Dev mailing list archive at Nabble.com.



Back to the top