Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/sourcetools/com.ibm.admincache/how-to-update.txt
5990 views
1
# Copyright (c) 2008, 2017 IBM Corp. and others
2
#
3
# This program and the accompanying materials are made available under
4
# the terms of the Eclipse Public License 2.0 which accompanies this
5
# distribution and is available at https://www.eclipse.org/legal/epl-2.0/
6
# or the Apache License, Version 2.0 which accompanies this distribution and
7
# is available at https://www.apache.org/licenses/LICENSE-2.0.
8
#
9
# This Source Code may also be made available under the following
10
# Secondary Licenses when the conditions for such availability set
11
# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
12
# General Public License, version 2 with the GNU Classpath
13
# Exception [1] and GNU General Public License, version 2 with the
14
# OpenJDK Assembly Exception [2].
15
#
16
# [1] https://www.gnu.org/software/classpath/license.html
17
# [2] http://openjdk.java.net/legal/assembly-exception.html
18
#
19
# 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
20
21
Steps for updating admincache.jar and committing it:
22
23
0. Ensure you have the HEAD of this project checked out.
24
25
1. Alter the files in src.
26
27
1a. Ensure the program version is updated in the call to setMyVersion() from
28
com.ibm.admincache.SharedCacheConfig.SharedCacheConfig(). This version is displayed when
29
admincache is run. It should be incremented every time a change is introduced, including
30
when an admincache.jar is distributed for testing.
31
32
2. To update a build or to generate a local distribution:
33
34
LOCAL copy
35
2a. Run build.xml file using "Ant Build...".
36
2b. On configuration window, under JRE tab, add the JRE that this release is targeting and name it as "realtime latest".
37
2c. On the same JRE tab, set "realtime latest" as the Runtime JRE to be used.
38
2d. Run the ant target "prepare" in the build.xml file - this will update the files in the "final" directory.
39
2e. Refresh the project in the Eclipse/Jazz/RTC workspace with the key "F5" or right-click and select "refresh".
40
This ensures that Eclipse is aware of the newly generated binary files in "final".
41
42
HEAD builds
43
Run steps 2a-2e under LOCAL copy.
44
2f. Commit all the modified files. The HEAD build will pick up admincache.jar from the HEAD of this project.
45
46
3. Tag the project with a tag identifying the version.
47
48
4. Commit the admincache.jar into the realtime_binaries project so it becomes part of the JVM builds
49