From 734a08e59fd2931c011a69fa09ef6299a00ec03a Mon Sep 17 00:00:00 2001 From: dgelessus <dgelessus@users.noreply.github.com> Date: Mon, 28 Oct 2024 14:29:28 +0100 Subject: [PATCH] Fix license display --- build.gradle | 8 ++++++++ src/main/java/org/sablecc/sablecc/SableCC.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index b4e3cbd..e441355 100644 --- a/build.gradle +++ b/build.gradle @@ -37,6 +37,14 @@ processResources { filesMatching("org/sablecc/sablecc/build.properties") { expand(version: project.version) } + + // Copy license-related files from repository root into resources + from(project.projectDir) { + rename({name -> "org/sablecc/sablecc/" + name}) + include("AUTHORS") + include("COPYING-LESSER") + include("LICENSE") + } } // Run this task to regenerate the SableCC parser using itself. diff --git a/src/main/java/org/sablecc/sablecc/SableCC.java b/src/main/java/org/sablecc/sablecc/SableCC.java index 03dc80f..098a580 100644 --- a/src/main/java/org/sablecc/sablecc/SableCC.java +++ b/src/main/java/org/sablecc/sablecc/SableCC.java @@ -45,7 +45,7 @@ public class SableCC { System.out .println("and you are welcome to redistribute it under certain conditions."); System.out.println(); - System.out.println("Type 'sablecc -license' to view"); + System.out.println("Type 'sablecc --license' to view"); System.out.println("the complete copyright notice and license."); System.out.println(); } -- GitLab