Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Parameterized product builds
Parameterized product builds [message #63390] Wed, 27 May 2009 09:49 Go to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
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 10: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 10:33 Go to previous messageGo to next message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
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 11: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 10:16 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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 10:33 Go to previous message
Jesper Eskilson is currently offline Jesper EskilsonFriend
Messages: 134
Registered: July 2009
Senior Member
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 11:34 Go to previous message
Mickael Istria is currently offline Mickael IstriaFriend
Messages: 865
Registered: July 2009
Location: Grenoble, France
Senior Member

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: Sat Dec 21 14:27:07 GMT 2024

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

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

Back to the top