Fix escape \\
Some checks failed
Projet_JAVA_P2P_STRI2A/Projet_JAVA_P2P_STRI2A/pipeline/head There was a failure building this commit
flavien's git/Projet_JAVA_P2P_STRI2A/pipeline/head There was a failure building this commit

This commit is contained in:
Louis Royer 2020-03-10 17:44:58 +01:00
parent 2a14d07c7d
commit 3c3b19a2e5

4
Jenkinsfile vendored
View File

@ -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/'
}
}