[java-idp-plugin-jetty] 183/186: JJETTY-13 Implement Jetty-base plugin V2

Rod Widdowson rdw at steadingsoftware.com
Thu Jul 24 15:58:54 UTC 2025


This is an automated email from the git hooks/post-receive script.

rdw pushed a commit to branch dev/foo
in repository java-idp-plugin-jetty.

View the commit online:
http://git.shibboleth.net/view/?p=java-idp-plugin-jetty.git;a=commit;h=8dbc633ff3c6d77ff65de3f927d5a5d17c90c440

commit 8dbc633ff3c6d77ff65de3f927d5a5d17c90c440
Author: Rod Widdowson <rdw at steadingsoftware.com>
AuthorDate: Mon Jul 21 19:25:55 2025 +0100

    JJETTY-13 Implement Jetty-base plugin V2
    
    https://shibboleth.atlassian.net/browse/JJETTY-13
    
    Add tests.
---
 .../plugin/jetty/cli/impl/JettyDownloadArguments.java | 19 +++++++++++++++++++
 .../plugin/jetty/cli/impl/JettyDownloadCLITest.java   |  5 ++++-
 2 files changed, 23 insertions(+), 1 deletion(-)

diff --git a/jetty-cli/src/main/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadArguments.java b/jetty-cli/src/main/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadArguments.java
index 00d9de1..6ad8986 100644
--- a/jetty-cli/src/main/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadArguments.java
+++ b/jetty-cli/src/main/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadArguments.java
@@ -13,6 +13,8 @@
  */
 package net.shibboleth.idp.plugin.jetty.cli.impl;
 
+import java.io.PrintStream;
+
 import javax.annotation.Nonnull;
 import javax.annotation.Nullable;
 
@@ -76,6 +78,23 @@ public class JettyDownloadArguments extends AbstractIdPHomeAwareCommandLineArgum
     /** Whether to unpack. */
     @Parameter(names= {"--nounpack"})
     @Nonnull private boolean noUnpack;
+    
+    /** {@inheritDoc} */
+    @Override public void printHelp(final @Nonnull PrintStream out) {
+        super.printHelp(out);
+        out.println();
+        out.println(String.format("  %-22s %s", "-v, --downloadVersion", "(Maven) Version to download (REQUIRED)"));
+        out.println(String.format("  %-22s %s", "--noascfile", "Whether to download the gpg signature and do a sig check. Defaults false"));
+        out.println(String.format("  %-22s %s", "--nosigcheck", "Whether signature check the gpg signature against the trustore. Defaults false"));
+        out.println(String.format("  %-22s %s", "--nonounpack", "Whether unpack the zip/tar.gz file after download. Defaults false"));
+        out.println();
+        out.println(String.format("  %-22s %s", "--artifactId", "(Maven) ArtifactId to download. Defaults to \"jetty-home\"."));
+        out.println(String.format("  %-22s %s", "--type", "File type to download. Defaults to \"tar.gz\"."));
+        out.println(String.format("  %-22s %s", "--classifier", "(Maven) classifier to download"));
+        out.println(String.format("  %-22s %s", "--mavenbase", "Root URL for the Maven Repository to download from. Defaults to \"jetty-homehttps://repo1.maven.org/maven2\"."));
+        out.println(String.format("  %-22s %s", "--keystore", "(Maven) ArtifactId to download relative to idphome(defaults to \"credentials/jetty-base-download-keystore.gpg\"."));
+    }
+
 
     /** {@inheritDoc} */
     @Override
diff --git a/jetty-cli/src/test/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadCLITest.java b/jetty-cli/src/test/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadCLITest.java
index 30efc30..21e7a97 100644
--- a/jetty-cli/src/test/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadCLITest.java
+++ b/jetty-cli/src/test/java/net/shibboleth/idp/plugin/jetty/cli/impl/JettyDownloadCLITest.java
@@ -91,5 +91,8 @@ public class JettyDownloadCLITest {
                                                             }), AbstractCommandLine.RC_OK);
         assertTrue(idpHome.resolve("jetty-downloads/commons-daemon-1.4.1/LICENSE.txt").toFile().exists());
     }
-
+    
+    @Test public void TestHelp() {
+        assertEquals(JettyDownloadCLI.runMain(new String[] {"--help", }),  AbstractCommandLine.RC_OK);
+    }
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list