Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-669

Make the zipdiff task generate a file to be reused by an explicit assembly

    XMLWordPrintable

    Details

      Description

      Write an explicit assembly using an "includes" file generated by the zipdiff task.
      For instance, instead of the current "includes" file containing:

      artifacts-diff.properties
      bundles/nuxeo-diff-content-5.7.2.1.jar
      bundles/nuxeo-diff-core-5.7.2.1.jar
      bundles/nuxeo-diff-jsf-5.7.2.1.jar
      lib/daisydiff-1.2-NX1.jar
      lib/eclipse-core-runtime-20070801.jar
      lib/html-1.9.8.jar
      lib/xmlunit-1.3.jar
      test-artifacts-diff.properties

      We would get something like:

      file=artifacts-diff.properties /
      artifact=org.nuxeo.ecm:nuxeo-diff-content::jar bundles/
      artifact=org.nuxeo.ecm:nuxeo-diff-core::jar bundles/
      artifact=org.nuxeo.ecm:nuxeo-diff-jsf::jar bundles/
      artifact=org.outerj.daisy:daisydiff::jar lib/
      artifact=org.eclipse.core.runtime:eclipse-core-runtime::jar lib/
      artifact=org.cyberneko:html::jar lib/
      artifact=xmlunit:xmlunit::jar lib/
      file=test-artifacts-diff.properties /

      Then the explicit assembly would be able to replace

          <copy todir="${outdir}/marketplace/install/bundles">
            <artifact:resolveFile key="org.nuxeo.ecm:nuxeo-diff-content::jar" />
            <!-- (...) -->
          </copy>
          <copy todir="${outdir}/marketplace/install/lib">
            <artifact:resolveFile key="org.outerj.daisy:daisydiff::jar" />
            <!-- (...) -->
          </copy>

      with something like:

          <loadfile property="jars" srcfile="${outdir}/includes" />
          <for param="line" list="${jars}" delimiter="${line.separator}">
            <sequential>
              <if>
                <matches ... />
                <then>
                  <echo>Including @{line}</echo>
                  <artifact:resolveFile key="..." todir="..." />
                  <!-- (...) -->
                </then>
              </if>
            </sequential>
          </for>

        Attachments

          Activity

            People

            • Assignee:
              jcarsique Julien Carsique
              Reporter:
              jcarsique Julien Carsique
              Participants:
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: