You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2022/11/13 11:15:13 UTC

[maven-assembly-plugin] branch MASSEMBLY-941 updated: [MASSEMBLY-941] add Windows case

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

hboutemy pushed a commit to branch MASSEMBLY-941
in repository https://gitbox.apache.org/repos/asf/maven-assembly-plugin.git


The following commit(s) were added to refs/heads/MASSEMBLY-941 by this push:
     new 70b27f13 [MASSEMBLY-941] add Windows case
70b27f13 is described below

commit 70b27f1301e7737c8554f4ba92e24eee842e459e
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Sun Nov 13 12:13:00 2022 +0100

    [MASSEMBLY-941] add Windows case
---
 src/it/projects/reproducible/verify.groovy       |  5 ++++-
 src/it/projects/reproducible/zip-content-win.txt | 25 ++++++++++++++++++++++++
 2 files changed, 29 insertions(+), 1 deletion(-)

diff --git a/src/it/projects/reproducible/verify.groovy b/src/it/projects/reproducible/verify.groovy
index 67041cad..b706e3df 100644
--- a/src/it/projects/reproducible/verify.groovy
+++ b/src/it/projects/reproducible/verify.groovy
@@ -39,7 +39,10 @@ for( String type : [ "zip", "jar", "tar" ] )
 
 effective = sb.toString()
 
-reference = "zip-content-" + ( effective.contains( "0775" ) ? "775" : "755" ) +  ".txt"
+// 3 different reference results:
+// 1. Windows does not support executable flag
+// 2. on *nix, based on system configuration, group flag differs
+reference = "zip-content-" + ( effective.contains( "644 executable" ) ? "win" : effective.contains( "0775" ) ? "775" : "755" ) + ".txt"
 content = new File( basedir, reference ).text.replace( "\r\n", "\n" )
 
 assert content == effective
diff --git a/src/it/projects/reproducible/zip-content-win.txt b/src/it/projects/reproducible/zip-content-win.txt
new file mode 100644
index 00000000..571758ce
--- /dev/null
+++ b/src/it/projects/reproducible/zip-content-win.txt
@@ -0,0 +1,25 @@
+40755 dir-A/
+40755 dir-C/
+40755 dir-b/
+40755 dir-b/B2/
+40755 dir-b/B4/
+40755 dir-b/b1/
+40755 dir-b/b3/
+40755 dir-d/
+100644 Uppercase.txt
+100644 dir-A/A2.txt
+100644 dir-A/A4.txt
+100644 dir-A/a1.txt
+100644 dir-A/a3.txt
+100644 dir-C/C.txt
+100644 dir-b/B2/B2.txt
+100644 dir-b/B4/B4.txt
+100644 dir-b/b.txt
+100644 dir-b/b1/b1.txt
+100644 dir-b/b3/b3.txt
+100644 dir-d/d.txt
+100644 executable.txt
+100644 lowercase.txt
+cb1dc226d702733bfa405b7090b74ab7e77bf39e reproducible-1.0-src.zip.sha1
+3b31d88a36985f526fb3fe6ba5987387e4887f23 reproducible-1.0-src.jar.sha1
+b85f960069d6a444f928a87761b63fde60ea687d reproducible-1.0-src.tar.sha1