build.xml is deleted after exporting plugin [message #444339] |
Tue, 14 February 2006 01:35  |
Eclipse User |
|
|
|
Originally posted by: glenn.janet.co.jp
This problem has been going on for a while now.
I use Ant to build my jars.
The problem is, after I export an RCP project that contains
a build.xml Ant script, the build.xml is deleted. Why?
|
|
|
|
Re: build.xml is deleted after exporting plugin [message #444381 is a reply to message #444377] |
Tue, 14 February 2006 15:11  |
Eclipse User |
|
|
|
Originally posted by: cfieber.gmail.com
Alex Blewitt wrote:
>
> I've just verified that this is ineeded what happens if you don't have custom build selected. If you do have the build.xml, you must get it to define certain targets (e.g. build.jars) in order for it to co-exist peacefully with the Eclipse concept.
The exact targets you have to define are:
build.jars
gather.bin.parts
gather.logs
Of those targets, the one I've hooked into is gather.bin.parts. When
this target is called, the property 'destination.temp.folder' is set.
After this target runs, if you have created a folder called
${destination.temp.folder}/<Bundle-SymbolicName>_<Bundle-Version > and
filled it will the classes and resources for your plugin jar, it will
create the plugin jar (including signing if you've chosen that) in the
export directory.
The main downside is accessing the Bundle-SymbolicName and
Bundle-Version attributes. I set the project name attribute to the
Bundle-Symbolic name (needed for other stuff in my build setup anyway),
and set the plugin version as a property in build.properties (dirty,
I'll likely build / find a task to read it out of the Manifest file
directly).
I don't do anything in build.jars or gather.logs.
Regards,
-Cameron
|
|
|
Powered by
FUDForum. Page generated in 0.08395 seconds