From b3e7bfc1fc134853c91b2270b31ef48c44b94ccf Mon Sep 17 00:00:00 2001 From: Paul Schaub Date: Mon, 8 May 2023 14:44:31 +0200 Subject: [PATCH] Updated Improve Performance of PGPainless CLI with Nailgun (markdown) --- Improve-Performance-of-PGPainless-CLI-with-Nailgun.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Improve-Performance-of-PGPainless-CLI-with-Nailgun.md b/Improve-Performance-of-PGPainless-CLI-with-Nailgun.md index 351adc2..94d0af3 100644 --- a/Improve-Performance-of-PGPainless-CLI-with-Nailgun.md +++ b/Improve-Performance-of-PGPainless-CLI-with-Nailgun.md @@ -7,6 +7,12 @@ Programs run in the server (which is implemented in Java), and are triggered by To use nailgun to increase the performance of `pgpainless-cli`, the first thing you need is a Java 8 installation. This is because nailgun uses features from Java 8, which were removed in later releases. +Futher, you need to compile PGPainless using Java 8 to get a compatible jar file. +```shell +$ JAVA_HOME=$JAVA8_HOME gradle assemble +$ ls pgpainless-cli/build/libs/pgpainless-cli-XYZ-all.jar +``` + ## Start the nailgun server Simply execute the nailgun-server.jar on the Java 8 JVM: @@ -15,7 +21,7 @@ Simply execute the nailgun-server.jar on the Java 8 JVM: $ $JAVA8_HOME/bin/java -jar nailgun-server.jar ``` -Next, load the pgpainless-cli-XYZ-all.jar: +Next, load the freshly built pgpainless-cli-XYZ-all.jar: ```shell $ ng ng-cp /path/to/pgpainless-cli-XYZ-all.jar