-
Type: New Feature
-
Status: Open
-
Priority: Minor
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: Postponed
-
Component/s: ant-assembly-maven-plugin
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>