Path: blob/master/sourcetools/com.ibm.admincache/how-to-update.txt
5990 views
# Copyright (c) 2008, 2017 IBM Corp. and others1#2# This program and the accompanying materials are made available under3# the terms of the Eclipse Public License 2.0 which accompanies this4# distribution and is available at https://www.eclipse.org/legal/epl-2.0/5# or the Apache License, Version 2.0 which accompanies this distribution and6# is available at https://www.apache.org/licenses/LICENSE-2.0.7#8# This Source Code may also be made available under the following9# Secondary Licenses when the conditions for such availability set10# forth in the Eclipse Public License, v. 2.0 are satisfied: GNU11# General Public License, version 2 with the GNU Classpath12# Exception [1] and GNU General Public License, version 2 with the13# OpenJDK Assembly Exception [2].14#15# [1] https://www.gnu.org/software/classpath/license.html16# [2] http://openjdk.java.net/legal/assembly-exception.html17#18# 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-exception1920Steps for updating admincache.jar and committing it:21220. Ensure you have the HEAD of this project checked out.23241. Alter the files in src.25261a. Ensure the program version is updated in the call to setMyVersion() from27com.ibm.admincache.SharedCacheConfig.SharedCacheConfig(). This version is displayed when28admincache is run. It should be incremented every time a change is introduced, including29when an admincache.jar is distributed for testing.30312. To update a build or to generate a local distribution:3233LOCAL copy342a. Run build.xml file using "Ant Build...".352b. On configuration window, under JRE tab, add the JRE that this release is targeting and name it as "realtime latest".362c. On the same JRE tab, set "realtime latest" as the Runtime JRE to be used.372d. Run the ant target "prepare" in the build.xml file - this will update the files in the "final" directory.382e. Refresh the project in the Eclipse/Jazz/RTC workspace with the key "F5" or right-click and select "refresh".39This ensures that Eclipse is aware of the newly generated binary files in "final".4041HEAD builds42Run steps 2a-2e under LOCAL copy.432f. Commit all the modified files. The HEAD build will pick up admincache.jar from the HEAD of this project.44453. Tag the project with a tag identifying the version.46474. Commit the admincache.jar into the realtime_binaries project so it becomes part of the JVM builds4849