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 15:50 Go to next message
Geejay is currently offline Geejay
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 10:08 Go to previous message
Andrew Niefer is currently offline Andrew Niefer
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 10:08 Go to previous message
Andrew Niefer is currently offline Andrew Niefer
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 Jul 25 11:57:49 EDT 2014

Powered by FUDForum. Page generated in 0.01567 seconds