diff --git a/build.gradle b/build.gradle index b4e3cbd008c2bcb06d070f9207805553944ff26d..e44135566f1851569e30c31d2680e45e31cb4c7f 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 03dc80f5ed20922d2f6acf8e4e01787a2a786dcf..098a580155d801575395f9d44bb750c0f544c702 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(); }