Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Export Feature produces empty bin directory
Export Feature produces empty bin directory [message #465236] Mon, 26 March 2007 15:23 Go to next message
Farokh Morshed is currently offline Farokh MorshedFriend
Messages: 53
Registered: July 2009
Member
I am implementing a plugin, and need to:
1)Build the plugin in our batch developer builds.
2)Create a software update site in our product kit (that includes
many other stuff). This way, our users would install our kit, and
then point the Eclipse update manager to the software update
site/directory in the installation, and update the plugin from there.

The above two things have one thing in common. I need to build the plugin
into a jar file.

So, from reading various things, I concluded that the way to do this is to
create a feature that includes my plugin, and then export the feature.
This would give me the jar file and some build file that I can stick into
our build scripts.

But, when I do this, I get an empty bin directory in the plugin
subdirectory of the build directory!! I do have the bin directory checked
off in the plugin project as a directory to include in a binary build.

Also, the "Save as Ant script" in the Export dialog (of the feature),
produces this ant script:

<project default="feature_export" name="build">
<target name="feature_export"/>
</project>

What do I do with this ant script?

Thank you.
Re: Export Feature produces empty bin directory [message #465243 is a reply to message #465236] Mon, 26 March 2007 17:19 Go to previous messageGo to next message
Farokh Morshed is currently offline Farokh MorshedFriend
Messages: 53
Registered: July 2009
Member
Just trying things...

I generated an Ant script for the plugin, and when I run it, I get a jar
file for the plugin, but it does not include my classes!

Do I need to define a library in the plugin.xml that contains my plugin's
jar file?
Re: Export Feature produces empty bin directory [message #465245 is a reply to message #465236] Mon, 26 March 2007 19:19 Go to previous message
Farokh Morshed is currently offline Farokh MorshedFriend
Messages: 53
Registered: July 2009
Member
Never mind... sigh.

Once I edited the plugin's build.properties to include the bin directory,
exporting the feature did produce a jar with all the plugin's stuff.

Also, don't forget to enumerate in bin.includes everything that you want
in the jar file. So, if you have .jar files, have a *.jar in the list.

Sorry for the false alarm.
Previous Topic:Using env var for default workspace in eclipse.ini
Next Topic:RCP gets locked up
Goto Forum:
  


Current Time: Sat Sep 07 11:05:47 GMT 2024

Powered by FUDForum. Page generated in 0.04124 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top