Customize tolvenEAR Plugin
From DOC
Overview
The basic customization of the tolvenEAR, is achieved by assembling java modules (jar files) into the tolven.ear file. These can be considered as EAR-level libraries. Current java modules include bouncy-castle, tolvenLocale resource bundles, various Apache commons jars etc.
Add A JavaModule To tolvenEAR
For this example, we add a jar called some.jar as a library java module for the tolvenEAR file. Add the following entry to your manifest plugin:
<extension id="someJavaModuleProduct" plugin-id="org.tolven.component.tolvenear" point-id="javaModuleProduct">
<parameter id="jar" value="some.jar" />
</extension>
When using another plugin, you need to add an import tag to your plugin. There should be only on <requires> tag (which can contain many <import> tags) and it should appear before any <extension> tags.
<requires>
<import plugin-id="org.tolven.component.tolvenear" />
</requires>
Finally, you need to add the jar some.jar at the same level as the manifest within the plugin zip.
Add Files to META-INF
To add files to the tolvenEAR META-INF directory, you can add the following entry to your manifest. The example below indicates that the directory with the files in your plugin is called ear/META-INF.
<extension id="META-INF" plugin-id="org.tolven.component.tolvenear" point-id="META-INF">
<parameter id="dir" value="ear/META-INF" />
</extension>

