|
Re: Parameterized product builds [message #63415 is a reply to message #63390] |
Wed, 27 May 2009 10:16 |
Eclipse User |
|
|
|
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 #63459 is a reply to message #63437] |
Wed, 27 May 2009 11:34 |
Eclipse User |
|
|
|
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 |
|
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 #597915 is a reply to message #63437] |
Wed, 27 May 2009 11:34 |
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.04160 seconds