[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] RE: OSGI Bundles: alternate manifest.mf location

The problem with the PDE for those that want to use external build tools in conjunction with it, is that there is no 'build' step when executing the plugin from within the IDE. I understand the reasons for this, but it means that the plugin's directory layout on disk must be an identical mirror of the Jar layout - which you must concede is inflexible.

For those that are interested in using the PDE along with Maven then, you'll need to follow the standard PDE layout and tell Maven where to find the various resources in the POM file and set the finalName for the Jar to conform to Equinox's Jar-file naming conventions e.g.

<project>
 ...
 <build>
   <resources>
     <resource>
       <directory>.</directory>
       <includes>
         <include>plugin.xml</include>
         <include>splash.bmp</include>
         <include>icons/*</include>
       </includes>
     </resource>
     <resource>
       <directory>src/main/java</directory>
       <includes>
         <include>**/*.properties</include>
       </includes>
     </resource>
   </resources>
   <fileName>com.acme.plugins.MyPlugin_1.0.0</finalName>
</build>
</project>

--
Dale Peakall.
Senior Developer · OCLC PICA Ltd
Brincliffe House · 861 Ecclesall Road · Sheffield S11 7AE · United Kingdom
t +44-(0)114-281 64 68 · f +44-(0)114-281 60 41 e d.peakall@xxxxxxxxxxxx · w www.oclcpica.org