[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.rcp] Re: RPC application dependent on Java Project and jars

I solved my concern this way (comments are welcome):

1) MyAppDeps is a plugin created from existing JAR files (WITHOUT decompressing them)
2) In MyAppDeps I added a link to the sources of MyProject (context-menu on MyAppDeps | Build Path | Link Additional Source to Project). This step is NOT allowed if the JAR files of step 1) were decompressed (?!?)
3) In MyAppDeps I added all MyProject packages to the exported ones (Runtime tab of plug-in editor)
4) MyApp has a dependency on MyAppDeps


This way every change at My project is immediately reflected to MyApp.

IlBalla

IlBalla wrote:

Hi all,

I have the following situation, that I think is quite usual:

1 - MyApp (RPC Application)
2 - MyAppDeps (Plug-in with jar files)
     + log4j.jar
3 - MyProject (some POJO classes)

MyApp depends on MyAppDeps, the dependency is declared in the "Dependencies" tab of the plugin.xml file and everything seems to work fine: log4j.jar classes are recognized both at compile- and run-time.

I do not know how to set the dependency with MyProject: both at compile- and run-time. The only solution I found was: a) export MyProject to a jar and b) include the jar in MyAppDeps, but it is too complicated to reflect a change to 3 in 1.

Is there a better solution ?

Thanx in advance,

IlBalla