Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/test/functional/cmdLineTests/URLClassLoaderTests/FindStore/buildVerify.sh
12462 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
# ensure the new jar files are not created in the same second as the originals,
26
# otherwise the shared cache will not be able to determine the jar files have
27
# been modified
28
sleep 2
29
cd FindStore
30
rm -f *.jar
31
rm -f $2/I.jar $2/J.jar $2/K.jar $2/L.jar
32
rm -f M_Classes/jnurlcldr/shared/findstore/*.class
33
rm -f N_Classes/jnurlcldr/shared/findstore/*.class
34
rm -f O_Classes/jnurlcldr/shared/findstore/*.class
35
rm -f P_Classes/jnurlcldr/shared/findstore/*.class
36
cd VerifyClasses
37
$1/javac jnurlcldr/shared/findstore/*.java
38
$1/jar -cvf ../A.jar jnurlcldr/shared/findstore/A*.class
39
$1/jar -cvf ../B.jar jnurlcldr/shared/findstore/B*.class
40
$1/jar -cvf ../C.jar jnurlcldr/shared/findstore/C*.class
41
$1/jar -cvf ../D.jar jnurlcldr/shared/findstore/D*.class
42
$1/jar -cvf ../E.jar jnurlcldr/shared/findstore/E*.class
43
$1/jar -cvf ../F.jar jnurlcldr/shared/findstore/F*.class
44
$1/jar -cvf ../G.jar jnurlcldr/shared/findstore/G*.class
45
$1/jar -cvf ../H.jar jnurlcldr/shared/findstore/H*.class
46
$1/jar -cvf $2/I.jar jnurlcldr/shared/findstore/I*.class
47
$1/jar -cvf $2/J.jar jnurlcldr/shared/findstore/J*.class
48
$1/jar -cvf $2/K.jar jnurlcldr/shared/findstore/K*.class
49
$1/jar -cvf $2/L.jar jnurlcldr/shared/findstore/L*.class
50
cp jnurlcldr/shared/findstore/M*.class ../M_Classes/jnurlcldr/shared/findstore/
51
cp jnurlcldr/shared/findstore/N*.class ../N_Classes/jnurlcldr/shared/findstore/
52
cp jnurlcldr/shared/findstore/O*.class ../O_Classes/jnurlcldr/shared/findstore/
53
cp jnurlcldr/shared/findstore/P*.class ../P_Classes/jnurlcldr/shared/findstore/
54
cd ..
55
$1/jar -cvf Nothing.jar nothing.txt
56
ls *.jar
57
cd ..
58