No, it's not necessary to delete the folder. You can modify it.

You can append your new keys to existing properties in the "install" section of 
the deployment-fragment.xml:

<install>
    <!--  unzip the war template -->
    <unzip from="${bundle.fileName}" to="/">
      <include>nuxeo.war/**</include>
    </unzip>
    
    <!--  create a temp dir -->
    <!--  be sure no directory with that name exists -->
    <delete path="nxtagweb.tmp"/>
    <mkdir path="nxtagweb.tmp"/>

    <unzip from="${bundle.fileName}" to="nxtagweb.tmp">
      <include>OSGI-INF/l10n/**</include>
    </unzip>

    <append from="nxtagweb.tmp/OSGI-INF/l10n/messages.properties"
        to="nuxeo.war/WEB-INF/classes/messages.properties"
        addNewLine="true"/>
    <append
        from="nxtagweb.tmp/OSGI-INF/l10n/messages_en.properties"
        to="nuxeo.war/WEB-INF/classes/messages_en.properties"
        addNewLine="true"/>
    <append
        from="nxtagweb.tmp/OSGI-INF/l10n/messages_fr.properties"
        to="nuxeo.war/WEB-INF/classes/messages_fr.properties"
        addNewLine="true"/>

    <delete path="nxtagweb.tmp"/>    
  </install>  

Regards.
--
Posted by "enriqueperez" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3295#9914>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to