add identifier to cmf + correspodence
-------------------------------------

                 Key: NXCM-239
                 URL: https://jira.nuxeo.org/browse/NXCM-239
             Project: Nuxeo Case Management
          Issue Type: New Feature
    Affects Versions: 1.3
            Reporter: Alexandre Russel
             Fix For: 1.4


See http://doc.nuxeo.com/display/CORG/Creating+distributions

For marketplace needs, all products need to be identified (NXP-5903).

Every assembly.xml creating a distribution must do the following:
Add a set-distribution-properties target:
  <target name="set-distribution-properties">
    <echo append="false" file="${distribution.properties.file}">
## DO NOT MANUALLY EDIT THIS FILE
org.nuxeo.distribution.name=${org.nuxeo.distribution.name}
org.nuxeo.distribution.server=${org.nuxeo.distribution.server}
org.nuxeo.distribution.version=${org.nuxeo.distribution.version}
org.nuxeo.distribution.date=${org.nuxeo.distribution.date}
    </echo>
  </target>
Just before zip and attach:artifact, do
    <antcall target="set-distribution-properties">
      <param name="distribution.properties.file" 
value="${distribution.dir}/templates/common/config/distribution.properties" />
      <param name="org.nuxeo.distribution.name" value="dm" />
      <param name="org.nuxeo.distribution.server" value="jboss"/>
      <param name="org.nuxeo.distribution.version" 
value="${maven.project.version}" />
      <param name="org.nuxeo.distribution.date" value="${DSTAMP}${TSTAMP}"/>
    </antcall>
Ask on dev if you're not sure about values:
org.nuxeo.distribution.name: cap, dm, dam, cmf, coreserver, correspondence, ...
org.nuxeo.distribution.server: jboss, tomcat, jetty, ...
org.nuxeo.distribution.version is the product version: 5.4.0-SNAPSHOT, 5.4.0, 
1.0, 1.1-SNAPSHOT, ...

<target name="init" unless="init.done">
    <tstamp/>
    ...
    <antcall target="expand" />
    <property name="init.done" value="true" />
</target>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.nuxeo.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets

Reply via email to