Struggling with PDEBuild and products [message #728577] |
Fri, 23 September 2011 09:52  |
Eclipse User |
|
|
|
OK. So I've got a product configuration (.product) file and when I use the "Eclipse Product" export wizard I get what I want out of it. I'm now trying to automate the process using PDE Build, following the instructions in the "Building an RCP application from a product configuration file" section of the Plugin Development Environment help.
My current problem appears to be that it's not actually building the java source code for my plugins. It's unclear from the documentation whether it is intended to do that or not, it just says "copy your plugins into the build directory". Am I supposed to be copying the fully built plugins? Or do I copy the source plugins and is the PDE Build supposed to build my java files and bundle up the jars? I've got build.properties files in all of the plugins. However all I get in the output from the product build is a copy of the files that are selected for inclusion (i.e the files in the bin.includes property). I don't get the build jar containing the compiled java code.
The other issue I have is how I get PDEBuild to package each of my plugins as a jar file, rather than as a directory.
Help on either of these topics would be great!
[Updated on: Fri, 23 September 2011 09:53] by Moderator
|
|
|
Re: Struggling with PDEBuild and products [message #728656 is a reply to message #728577] |
Fri, 23 September 2011 11:38   |
Eclipse User |
|
|
|
In my PDE build I get the plug-ins as Jars.
The build.properties of such a plug-in looks like:
---
source.. = src/
output.. = bin/
bin.includes = plugin.xml,\
META-INF/,\
.,\
plugin.properties,\
about.html,\
about.ini,\
about.properties,\
about.mappings,\
icons/,\
intro/
---
The classes are at root of the Jar (indicated by the second dot in 'output.. = bin/'.
'bin' is the output folder of the builder. It is shown in the build tab of the plug-in manifest editor as a library.
|
|
|
|
|
|
Re: Struggling with PDEBuild and products [message #729601 is a reply to message #728716] |
Mon, 26 September 2011 11:42  |
Eclipse User |
|
|
|
are the plug-ins build as Jars?
Or are they installed unpacked or as Jars (packed)?
feature.xml defines this only for the installation.
BTW, there is a property Bundle-Shape for the plug-in manifest, which defines the same. Advantage is: the bundle defines it itself. It is consistent, when the bundle is included in two or more features.
|
|
|
Powered by
FUDForum. Page generated in 0.04383 seconds