The process to upgrade the repo to a later quarterly release is fairly straight forward, but it needs to be repeated in each exercise branch as well as the main branch.
So this document is going to cover the steps necessary to update a single branch...
-
Update
settings.gradle
to use the latest version of the workspace plugin (corresponding to the version of Gradle being used). -
Update
gradle.properties
to use the newer version of quarterly release. -
Delete the
bundles
directory if it already exists. -
Use the
blade gw initBundle
command to create a new bundle using the new quarterly release. -
Go into the
bundles/data/hypersonic
folder. Use thejavac Shutdown.java
command to build the tool to shut down the HSQL database server that we're about to start. Use the commandjava -cp hsql.jar org.hsqldb.Server -database.0 file:lportal -dbname.0 lportal
to start up the standalone HSQL database server (necessary for the upgrade process to do its thing). -
In another terminal, navigate to
bundles/tools/portal-tools-db-upgrade-client
folder and execute the./db_upgrade_client.sh
script. The upgrade will likely leave you at theg!
gogo prompt. Execute the commandupgrade:executeAll
followed byverify:executeAll
and finallyquit
. These steps apply all pending upgrades and verifies the system is ready. Change to thebundles/data/hypersonic
directory and execute the commandjava -cp hsql.jar:. Shutdown
to shut down the standalone HSQL database service cleanly after the upgrade. -
Recommended Start the bundle, wait for the
Server startup
message, then shut down the bundle. This will complete the startup and indexing and may report startup exceptions due to indexing bugs. Start the bundle again and verify there are no exceptions from the startup. Note: The automatedds:unsatisfied
was reporting component startup failures for me, but telnetting into the Gogo shell and running the command manually showed that everything was resolved correctly. -
Copy the
bundles/data/hypersonic/lportal.*
files toconfigs/local/data/hypersonic
to replace the prior versions. -
Use
git add
on modified files andgit commit
to commit the changes to the branch and finish withgit push
to push the changes to the origin repo.