Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/SignedSealed/buildInitial2.sh
12626 views
1
#!/bin/sh
2
3
#
4
# Copyright (c) 2001, 2018 IBM Corp. and others
5
#
6
# This program and the accompanying materials are made available under
7
# the terms of the Eclipse Public License 2.0 which accompanies this
8
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
9
# or the Apache License, Version 2.0 which accompanies this distribution and
10
# is available at https://www.apache.org/licenses/LICENSE-2.0.
11
#
12
# This Source Code may also be made available under the following
13
# Secondary Licenses when the conditions for such availability set
14
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
15
# General Public License, version 2 with the GNU Classpath
16
# Exception [1] and GNU General Public License, version 2 with the
17
# OpenJDK Assembly Exception [2].
18
#
19
# [1] https://www.gnu.org/software/classpath/license.html
20
# [2] http://openjdk.java.net/legal/assembly-exception.html
21
#
22
# 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-exception
23
#
24
25
cd SignedSealed
26
rm *.jar
27
$1/javac jnurlcldr/shared/signedsealed/*.java
28
$1/javac jnurlcldr/shared/notsealed/*.java
29
$1/jar -cvf A.jar jnurlcldr/shared/signedsealed/A*.class
30
$1/jar -cvf B.jar jnurlcldr/shared/signedsealed/B*.class
31
$1/jar -cvf C.jar jnurlcldr/shared/notsealed/C*.class
32
if [[ `uname` == "OS/390" ]]
33
then
34
$1/jarsigner -keystore benKeyStore.forMVS -storepass benKeyStorePass -keypass benpass -signedjar sA.jar A.jar ben
35
$1/jarsigner -keystore benKeyStore.forMVS -storepass benKeyStorePass -keypass benpass -signedjar sB.jar B.jar ben
36
$1/jarsigner -keystore benKeyStore.forMVS -storepass benKeyStorePass -keypass benpass -signedjar sC.jar C.jar ben
37
else
38
$1/jarsigner -keystore benKeyStore -storepass benKeyStorePass -keypass benpass -signedjar sA.jar A.jar ben
39
$1/jarsigner -keystore benKeyStore -storepass benKeyStorePass -keypass benpass -signedjar sB.jar B.jar ben
40
$1/jarsigner -keystore benKeyStore -storepass benKeyStorePass -keypass benpass -signedjar sC.jar C.jar ben
41
fi
42
ls *.jar
43
cd ..
44