From 3c3b19a2e5f25a3235a8c7b6d7c336781a6b506b Mon Sep 17 00:00:00 2001 From: Louis Date: Tue, 10 Mar 2020 17:44:58 +0100 Subject: [PATCH] Fix escape \\ --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0642cb0..226dba2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,10 +8,10 @@ sh 'javac -cp "./src" -d "./bin" $(find . -iname "*.java" -type f) -Xlint:deprecation' sh 'echo "BUILDING CLIENT"' sh 'echo Main-Class: clientP2P/ClientP2P > MANIFEST.MF' - sh 'jar -cvmf MANIFEST.MF client.jar $(find . \( -iname "*.class" -and ! -iwholename "*/clientP2P/*.class" \) -type f)' + sh 'jar -cvmf MANIFEST.MF client.jar $(find . \\( -iname "*.class" -and ! -iwholename "*/clientP2P/*.class" \\) -type f)' sh 'echo "BUILDING SERVER"' sh 'echo Main-Class: javaProjet2020/Server > MANIFEST.MF' - sh 'jar -cvmf MANIFEST.MF server.jar $(find . \( -iname "*.class" -and ! -iwholename "*/serverP2P/*.class" \) -type f)' + sh 'jar -cvmf MANIFEST.MF server.jar $(find . \\( -iname "*.class" -and ! -iwholename "*/serverP2P/*.class" \\) -type f)' sh 'tar -zcvf sources.tar.gz src/' } }