You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by ma...@apache.org on 2018/06/19 17:50:26 UTC

[incubator-netbeans] 03/04: [NETBEANS-833] Ensure license and notice information for o.apache.xml.resolver are present

This is an automated email from the ASF dual-hosted git repository.

matthiasblaesing pushed a commit to branch release90
in repository https://gitbox.apache.org/repos/asf/incubator-netbeans.git

commit 82c3f252038c3d59d138ac6905dadbcb413e6b19
Author: Matthias Bläsing <mb...@doppel-helix.eu>
AuthorDate: Mon Jun 18 21:28:44 2018 +0200

    [NETBEANS-833] Ensure license and notice information for o.apache.xml.resolver are present
    
    The resolver binary is patched and build from source. The license file
    references the source jar, but can not reference the build binary.
    
    The netbeans build has the option to embed teh CRC32 value of a base jar
    into a rebuild jar. This CRC32 value is used to map a new file back to
    the original file and the license file provided with that.
---
 o.apache.xml.resolver/build.xml | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/o.apache.xml.resolver/build.xml b/o.apache.xml.resolver/build.xml
index 977594f..d8b49f5 100644
--- a/o.apache.xml.resolver/build.xml
+++ b/o.apache.xml.resolver/build.xml
@@ -34,7 +34,9 @@
          (see external/binaries-list).
          Then if 'external/resolver-1.2.jar does NOT exist...
     -->
-    <target name="-prepare-patched-binary" depends="-check-requires-patching-maven-sources" unless="sources-already-patched">
+    <target name="-prepare-patched-binary" depends="-check-requires-patching-maven-sources,-define-FileCRC32Calculator" unless="sources-already-patched">
+        <FileCRC32Calculator file="external/xml-resolver-1.2-sources.jar" property="o.apache.xml.resolver.crc32" />
+
         <echo message="Patching xml-resolver-1.2-sources.jar for Netbeans..." />
         <taskdef name="patchfile" classname="org.netbeans.nbbuild.extlibs.PatchFile" classpath="${nbantext.jar}"/>
         <!-- ... 1. Prepares a 'build/external-patch/[sources|classes]' working directories -->
@@ -54,6 +56,9 @@
         <!-- ... 5. Creates a jar in 'external/resolver-1.2.jar' -->
         <jar destfile="external/resolver-1.2.jar">
             <fileset dir="build/external-patch/classes" />
+            <manifest>
+                <attribute name="NB-Original-CRC" value="${o.apache.xml.resolver.crc32}"/>
+            </manifest>
         </jar>
     </target>
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists