| Parameterized product builds [message #63390] | 
Wed, 27 May 2009 05:49   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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 07: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 06:16   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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   | 
 
Eclipse User  | 
 | 
 | 
   | 
 
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.53848 seconds