Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/SignedSealed/buildInitial2.sh
12626 views
#!/bin/sh12#3# Copyright (c) 2001, 2018 IBM Corp. and others4#5# This program and the accompanying materials are made available under6# the terms of the Eclipse Public License 2.0 which accompanies this7# distribution and is available at https://www.eclipse.org/legal/epl-2.0/8# or the Apache License, Version 2.0 which accompanies this distribution and9# is available at https://www.apache.org/licenses/LICENSE-2.0.10#11# This Source Code may also be made available under the following12# Secondary Licenses when the conditions for such availability set13# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU14# General Public License, version 2 with the GNU Classpath15# Exception [1] and GNU General Public License, version 2 with the16# OpenJDK Assembly Exception [2].17#18# [1] https://www.gnu.org/software/classpath/license.html19# [2] http://openjdk.java.net/legal/assembly-exception.html20#21# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception22#2324cd SignedSealed25rm *.jar26$1/javac jnurlcldr/shared/signedsealed/*.java27$1/javac jnurlcldr/shared/notsealed/*.java28$1/jar -cvf A.jar jnurlcldr/shared/signedsealed/A*.class29$1/jar -cvf B.jar jnurlcldr/shared/signedsealed/B*.class30$1/jar -cvf C.jar jnurlcldr/shared/notsealed/C*.class31if [[ `uname` == "OS/390" ]]32then33$1/jarsigner -keystore benKeyStore.forMVS -storepass benKeyStorePass -keypass benpass -signedjar sA.jar A.jar ben34$1/jarsigner -keystore benKeyStore.forMVS -storepass benKeyStorePass -keypass benpass -signedjar sB.jar B.jar ben35$1/jarsigner -keystore benKeyStore.forMVS -storepass benKeyStorePass -keypass benpass -signedjar sC.jar C.jar ben36else37$1/jarsigner -keystore benKeyStore -storepass benKeyStorePass -keypass benpass -signedjar sA.jar A.jar ben38$1/jarsigner -keystore benKeyStore -storepass benKeyStorePass -keypass benpass -signedjar sB.jar B.jar ben39$1/jarsigner -keystore benKeyStore -storepass benKeyStorePass -keypass benpass -signedjar sC.jar C.jar ben40fi41ls *.jar42cd ..4344