In order to build versions that have various language translations, I can call the builder-cli.exe with a parameter project.allowedLanguages.
How can I only place the needed translation files (for our application) which are listed in that parameter?
The file names are of the form messages_xx.properties where the xx matches the codes in allowedLanguages, i.e. English is messages_en.properties, German is messages_de.properties.
It seems like it should be possible to only include these message.properties files that match the codes in the allowedLanguages list, but I'm not seeing a way to do it.
Thank you very much for any help you can offer.
asked 24 Jan, 15:01
Unfortunately it's not possible to conditionally add languages to the
it's possible though to pack only the custom language files from the languages in the
First in the <prebuildactionlist> you create a directory where the files will be copied.
... Then in the same <prebuildactionlist> you add a <foreach> action to iterate over the allowedLanguages property.
</prebuildactionlist> And ultimately you pack the files from your temporary folder /tmp/tempfiles:
The problem is that if the builder encounters a language in