]> source.dussan.org Git - poi.git/commitdiff
Add SHA256 to release-prep and legal/* to ooxml-schemas
authorAndreas Beeker <kiwiwings@apache.org>
Sat, 1 Sep 2018 22:58:51 +0000 (22:58 +0000)
committerAndreas Beeker <kiwiwings@apache.org>
Sat, 1 Sep 2018 22:58:51 +0000 (22:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1839861 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index 930b7a7148b0b7497d5200f17fc05d63a77d4cf4..ac7e645faceb80620fff9fce25def698607923f5 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -958,8 +958,14 @@ under the License.
                 <classpath refid="ooxml.classpath"/>
             </javac>
 
-            <jar basedir="${xmlbean.classes.dir}" destfile="@{classes-jar}" excludes="org/apache/**" level="9" />
-            <jar basedir="${xmlbean.sources.dir}" destfile="@{sources-jar}" excludes="org/apache/**" level="9" />
+            <jar destfile="@{classes-jar}" level="9">
+                <fileset dir="${xmlbean.classes.dir}" excludes="org/apache/**"/>
+                <metainf dir="legal"/>
+            </jar>
+            <jar destfile="@{sources-jar}" level="9">
+                <fileset dir="${xmlbean.sources.dir}" excludes="org/apache/**"/>
+                <metainf dir="legal"/>
+            </jar>
 
             <delete file="${xmlbean.xsds.dir}.jar"/>
             <delete dir="${xmlbean.xsds.dir}"/>
@@ -2129,7 +2135,7 @@ under the License.
         <antcall target="maven-poms"/>
 
         <echo>Distribution located in ${dist.dir}</echo>
-        <echo>Use "ant dist-checksum" to create md5/sha1/sha512 checksums and GPG signatures</echo>
+        <echo>Use "ant dist-checksum" to create sha256/sha512 checksums and GPG signatures</echo>
     </target>
 
     <target name="osgi" depends="mvn-install">
@@ -2375,17 +2381,20 @@ under the License.
     <target name="dist-checksum" depends="load-maven-server-settings">
         <fileset id="dist-archives" dir="${dist.dir}" includes="**/*.jar,**/*.pom,**/*.zip,**/*.tar.gz"/>
 
-        <checksum algorithm="SHA-512" fileext=".sha512" format="MD5SUM">
-            <fileset refid="dist-archives"/>
-        </checksum>
         <checksum algorithm="sha1" format="MD5SUM">
             <fileset refid="dist-archives"/>
         </checksum>
         <checksum algorithm="md5" format="MD5SUM">
             <fileset refid="dist-archives"/>
         </checksum>
+        <checksum algorithm="SHA-256" fileext=".sha256" format="MD5SUM">
+            <fileset refid="dist-archives"/>
+        </checksum>
+        <checksum algorithm="SHA-512" fileext=".sha512" format="MD5SUM">
+            <fileset refid="dist-archives"/>
+        </checksum>
 
-        <fixcrlf srcDir="${dist.dir}" includes="**/*.md5,**/*.sha1,**/*.sha512" eol="unix"/>
+        <fixcrlf srcDir="${dist.dir}" includes="**/*.md5,**/*.sha1,**/*.sha256,**/*.sha512" eol="unix"/>
 
         <downloadfile src="${dist.bouncycastle-prov.url}" dest="${dist.bouncycastle-prov.jar}"/>
         <downloadfile src="${dist.bouncycastle-bcpg.url}" dest="${dist.bouncycastle-bcpg.jar}"/>
@@ -2466,7 +2475,7 @@ under the License.
                 <fileset dir="${metadir}" includes="maven-metadata.xml"/>
             </checksum>
 
-            <fixcrlf srcDir="${metadir}" includes="*.md5,*.sha1,*.sha512" eol="unix"/>
+            <fixcrlf srcDir="${metadir}" includes="*.md5,*.sha1,*.sha256,*.sha512" eol="unix"/>
 
             <downloadfile src="${dist.nexus-staging.url}" dest="${dist.nexus-staging.jar}"/>
             <taskdef uri="antlib:org.sonatype.nexus.ant.staging" resource="org/sonatype/nexus/ant/staging/antlib.xml">