----- Roland Schulz <
roland@xxxxxxx> wrote:
> Hi,
>
> their is a problem with the build/runtime dependencies again. Ben's patch
> added dependencies to org.eclipse.ptp.core
> (for org.eclipse.ptp.core.attributes) which in turn depends on the "Plug-in
> dependencies" (org.eclipse.pde.core.requiredPlugins),
> e.g. com.ibm.icu.text.DateFormat.
>
> At the moment the dependencies from "Plug-in dependencies" are not
> automatically added to the Jar file (I wrote Dieter a separate email about
> that). It does not crash because the attribute definition configuration file
> currently does not include any date attribute. Thus currently the
> dependencies which are not included are not used at run-time. But obviously
> it is not acceptable that changing the configuration file causes a
> ClassNotFoundException.
>
> The problem is made worse, because com.ibm.icu is alone 6.2MB. Adding
> all "Plug-in dependencies" is 30MB. I think it is important that the proxy
> jar file (which has to be uploaded) is not >6MB.
>
> I see 5 options (ordered from most to least favored)
>
> 1) Should we move org.eclipse.ptp.core.attributes into its own package? Why
> is the com.ibm.icu.text.DateFormat required and why can't we use
> java.text.SimpleDateFormat?
>
> 2) Or should we copy the required Attribute classes to some of the proxy
> packages (e.g. rm.proxy.core) and modify the copy to not require any of the
> "Plugin Dependencies" (e.g. icu)
>
> 3) Use a JAR shrinker and hope that it can reduce it to a acceptable size. I
> tried ProGuard and couldn't make it work. Thus I'm not sure whether it would
> produce an acceptable size. Does someone has experience with a JAR shrinker?
>
> 4) Or should we live with the fact that the plugin jar is huge.
>
> 5) Have a manually list of classes which have to be added to the jar. The
> problem is that dependencies in seldom used code (e.g. Error
> handlers/Exceptions) are not noticed and the user doesn't see the error
> because the Proxy crashes with ClassNotFoundException.
>
> What do you think?
>
> Roland
>
> --
> ORNL/UT Center for Molecular Biophysics
cmb.ornl.gov
> 865-241-1537, ORNL PO BOX 2008 MS6309