I need to create a custom translation for Nuxeo DM.
I created a bundle to deploy the files but append doesn't work.
I tried the following in deployment-fragment.xml:
Try number 1:
<unzip from="${bundle.fileName}" to="/" prefix="web">
<include>/web/nuxeo.war/**</include>
</unzip>
<delete path="language.tmp" />
<mkdir path="language.tmp" />
<unzip from="${bundle.fileName}" to="language.tmp" prefix="web">
<include>/web/language/**</include>
</unzip>
<append from="language.tmp/language/messages_en.properties"
to="nuxeo.war/WEB-INF/classes/messages_en.properties" addNewLine="true" />
try number 2:
<unzip from="${bundle.fileName}" to="/" prefix="web">
<include>web/nuxeo.war/**</include>
</unzip>
<delete path="${bundle.fileName}.tmp" />
<mkdir path="${bundle.fileName}.tmp" />
<unzip from="${bundle.fileName}" to="${bundle.fileName}.tmp" />
<append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages.properties"
to="nuxeo.war/WEB-INF/classes/messages.properties" addNewLine="true" />
<append from="${bundle.fileName}.tmp/OSGI-INF/l10n/messages_en.properties"
to="nuxeo.war/WEB-INF/classes/messages_en.properties" addNewLine="true" />
----------------------------------------------------------
Deploying any of the above will unzip the contents to the right places, so the bundle works, I can even put new files on the deployment but no appending to existing files is done.
Supposely the append command should add the lines from the unzipped file to the messages properties files, but nothing happens although the files are correctly unzipped.
There is no error in the server.log file.
I created the bundle following the cookbook example from nuxeo documentation, build the jar using maven and put the jar on the plugins folder.
I'm getting desperate, can you help me.