Skip to main content



      Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Parameterized product builds
Parameterized product builds [message #63390] Wed, 27 May 2009 05:49 Go to next message
Eclipse UserFriend
I'm trying to understand how we can move some strings out of the product
definition file (*.product). The primary things are the product name and
product versions:

<product name="Fantastic Product" version="42.4711.0">
....
</product>

When building this either headlessly using the PDE build scripts, or
from inside Eclipse, I would like to be able to maintain a separate
file containing the product names and versions. I tried doing

<product name="%productName" ... >
....
</product>

But that just made the product be called "%productName".

Is there a way to do this without resorting to automatically patching
the product definition file before building?

--
/Jesper
Re: Parameterized product builds [message #63415 is a reply to message #63390] Wed, 27 May 2009 06:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mickael.istria.openwide.fr

Hello,

You can externalize most of your string into the plugin.properties file,
that must be in the same folder as the .product file.

HTH
Mickael

Jesper Eskilson a écrit :
> I'm trying to understand how we can move some strings out of the product
> definition file (*.product). The primary things are the product name and
> product versions:
>
> <product name="Fantastic Product" version="42.4711.0">
> ...
> </product>
>
> When building this either headlessly using the PDE build scripts, or
> from inside Eclipse, I would like to be able to maintain a separate
> file containing the product names and versions. I tried doing
>
> <product name="%productName" ... >
> ...
> </product>
>
> But that just made the product be called "%productName".
>
> Is there a way to do this without resorting to automatically patching
> the product definition file before building?
>
> --
> /Jesper
Re: Parameterized product builds [message #63437 is a reply to message #63415] Wed, 27 May 2009 06:33 Go to previous messageGo to next message
Eclipse UserFriend
Mickael Istria wrote:
> Hello,
>
> You can externalize most of your string into the plugin.properties file,
> that must be in the same folder as the .product file.

I did do that. The plugin.properties file contained

productName=Fantastic Product

But when launching the product, I still got "%productName" as the name.

Is there any documentation anywhere on this?

--
/Jesper
Re: Parameterized product builds [message #63459 is a reply to message #63437] Wed, 27 May 2009 07:34 Go to previous message
Eclipse UserFriend
Originally posted by: mickael.istria.openwide.fr

Jesper Eskilson a écrit :
> Mickael Istria wrote:
>> Hello,
>>
>> You can externalize most of your string into the plugin.properties
>> file, that must be in the same folder as the .product file.
>
> I did do that. The plugin.properties file contained
>
> productName=Fantastic Product
>
> But when launching the product, I still got "%productName" as the name.

Ok,

Also ensure that
* You have a "Bundle-Localization: plugin" entry in your MANIFEST.MF
* plugin.properties is included in your build (build.properties must
contain plugin.properties in the bin.includes field)

Regards,
Mickael
Re: Parameterized product builds [message #597900 is a reply to message #63390] Wed, 27 May 2009 06:16 Go to previous message
Eclipse UserFriend
Hello,

You can externalize most of your string into the plugin.properties file,
that must be in the same folder as the .product file.

HTH
Mickael

Jesper Eskilson a écrit :
> I'm trying to understand how we can move some strings out of the product
> definition file (*.product). The primary things are the product name and
> product versions:
>
> <product name="Fantastic Product" version="42.4711.0">
> ...
> </product>
>
> When building this either headlessly using the PDE build scripts, or
> from inside Eclipse, I would like to be able to maintain a separate
> file containing the product names and versions. I tried doing
>
> <product name="%productName" ... >
> ...
> </product>
>
> But that just made the product be called "%productName".
>
> Is there a way to do this without resorting to automatically patching
> the product definition file before building?
>
> --
> /Jesper
Re: Parameterized product builds [message #597907 is a reply to message #63415] Wed, 27 May 2009 06:33 Go to previous message
Eclipse UserFriend
Mickael Istria wrote:
> Hello,
>
> You can externalize most of your string into the plugin.properties file,
> that must be in the same folder as the .product file.

I did do that. The plugin.properties file contained

productName=Fantastic Product

But when launching the product, I still got "%productName" as the name.

Is there any documentation anywhere on this?

--
/Jesper
Re: Parameterized product builds [message #597915 is a reply to message #63437] Wed, 27 May 2009 07:34 Go to previous message
Eclipse UserFriend
Jesper Eskilson a écrit :
> Mickael Istria wrote:
>> Hello,
>>
>> You can externalize most of your string into the plugin.properties
>> file, that must be in the same folder as the .product file.
>
> I did do that. The plugin.properties file contained
>
> productName=Fantastic Product
>
> But when launching the product, I still got "%productName" as the name.

Ok,

Also ensure that
* You have a "Bundle-Localization: plugin" entry in your MANIFEST.MF
* plugin.properties is included in your build (build.properties must
contain plugin.properties in the bin.includes field)

Regards,
Mickael
Previous Topic:Parameterized product builds
Next Topic:Signing jars built from site.xml?
Goto Forum:
  


Current Time: Thu May 01 01:53:35 EDT 2025

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

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

Back to the top