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 <[email protected]>
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 <[email protected]>  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 <[email protected]>
+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

_______________________________________________
pkg-java-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-java-commits

Reply via email to