[checkstyle] 10/14: Display the name of the exectutable instead of the class name in the help message
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue Nov 24 11:20:46 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository checkstyle.
commit 7360594395e10f17fc749b355f967452499132d9
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue Nov 24 11:20:27 2015 +0100
Display the name of the exectutable instead of the class name in the help message
---
debian/changelog | 2 ++
debian/patches/04_adjust_application_name.diff | 15 +++++++++++++++
debian/patches/series | 1 +
3 files changed, 18 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 2d8bca7..613ef4d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ checkstyle (6.12.1-1) UNRELEASED; urgency=medium
- Disabled the unit tests (too many missing dependencies)
- No longer install the contrib files (removed upstream)
- Updated the manpage and added an example
+ * Display the name of the exectutable instead of the class name
+ in the help message
-- Emmanuel Bourg <ebourg at apache.org> Thu, 21 May 2015 14:34:06 +0200
diff --git a/debian/patches/04_adjust_application_name.diff b/debian/patches/04_adjust_application_name.diff
new file mode 100644
index 0000000..e5db77b
--- /dev/null
+++ b/debian/patches/04_adjust_application_name.diff
@@ -0,0 +1,15 @@
+Description: Display the name of the application instead of the class name in the help message
+Author: Emmanuel Bourg <ebourg at apache.org>
+Forwarded: not-needed
+--- a/src/main/java/com/puppycrawl/tools/checkstyle/Main.java
++++ b/src/main/java/com/puppycrawl/tools/checkstyle/Main.java
+@@ -404,8 +404,7 @@
+ /** Prints the usage information. **/
+ private static void printUsage() {
+ final HelpFormatter formatter = new HelpFormatter();
+- formatter.printHelp(String.format("java %s [options] -c <config.xml> file...",
+- Main.class.getName()), buildOptions());
++ formatter.printHelp("checkstyle [options] -c <config.xml> file...", buildOptions());
+ }
+
+ /**
diff --git a/debian/patches/series b/debian/patches/series
index 0de757a..88f00ca 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
01_link_to_system_javadocs.diff
02_ignore_tests_requiring_internet_connectivity.diff
03_remove_maven3_prereq.diff
+04_adjust_application_name.diff
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/checkstyle.git
More information about the pkg-java-commits
mailing list