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.gradleto use the latest version of the workspace plugin (corresponding to the version of Gradle being used). -
Update
gradle.propertiesto use the newer version of quarterly release. -
Delete the
bundlesdirectory if it already exists. -
Use the
blade gw initBundlecommand to create a new bundle using the new quarterly release. -
Go into the
bundles/data/hypersonicfolder. Use thejavac Shutdown.javacommand 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 lportalto 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-clientfolder and execute the./db_upgrade_client.shscript. The upgrade will likely leave you at theg!gogo prompt. Execute the commandupgrade:executeAllfollowed byverify:executeAlland finallyquit. These steps apply all pending upgrades and verifies the system is ready. Change to thebundles/data/hypersonicdirectory and execute the commandjava -cp hsql.jar:. Shutdownto shut down the standalone HSQL database service cleanly after the upgrade. -
Recommended Start the bundle, wait for the
Server startupmessage, 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:unsatisfiedwas 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/hypersonicto replace the prior versions. -
Use
git addon modified files andgit committo commit the changes to the branch and finish withgit pushto push the changes to the origin repo.