Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Resources (i.e messages.properties) in PDE Build not built into JAR correctly
Resources (i.e messages.properties) in PDE Build not built into JAR correctly [message #540645] Wed, 16 June 2010 19:50 Go to next message
Geejay is currently offline GeejayFriend
Messages: 160
Registered: February 2010
Senior Member
I am building an RCP product with PDE build.

I have a source folder called resources in the root of my project. The
resources folder follows the package heirarchy in the main src folder.

When I export the product, the result JAR file has the resources folder in
the root, i.e the resources are not copied into the same folder as the class
files.

How do I tell PDE build (the ant tasks) to move these resources into the
folder where the classes are?

Thanks

Greg
Re: Resources (i.e messages.properties) in PDE Build not built into JAR correctly [message #540887 is a reply to message #540645] Thu, 17 June 2010 14:08 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
In your build.properties files, there will be a property like:
source.. = src

Add your resources folder here:
source.. = src, resources

And you should probably remove it from the "bin.includes".

-Andrew

geejay wrote:

> I am building an RCP product with PDE build.
>
> I have a source folder called resources in the root of my project. The
> resources folder follows the package heirarchy in the main src folder.
>
> When I export the product, the result JAR file has the resources folder in
> the root, i.e the resources are not copied into the same folder as the
> class files.
>
> How do I tell PDE build (the ant tasks) to move these resources into the
> folder where the classes are?
>
> Thanks
>
> Greg
Re: Resources (i.e messages.properties) in PDE Build not built into JAR correctly [message #606102 is a reply to message #540645] Thu, 17 June 2010 14:08 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
In your build.properties files, there will be a property like:
source.. = src

Add your resources folder here:
source.. = src, resources

And you should probably remove it from the "bin.includes".

-Andrew

geejay wrote:

> I am building an RCP product with PDE build.
>
> I have a source folder called resources in the root of my project. The
> resources folder follows the package heirarchy in the main src folder.
>
> When I export the product, the result JAR file has the resources folder in
> the root, i.e the resources are not copied into the same folder as the
> class files.
>
> How do I tell PDE build (the ant tasks) to move these resources into the
> folder where the classes are?
>
> Thanks
>
> Greg
Previous Topic:Resources (i.e messages.properties) in PDE Build not built into JAR correctly
Next Topic:Starting DS for use by plug-in
Goto Forum:
  


Current Time: Fri Dec 19 04:48:31 GMT 2014

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

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