Package list findbugs / eb0be37
remove patch of 0008-help-information-for-findbugs yesx 8 years ago
4 changed file(s) with 3 addition(s) and 129 deletion(s). Raw diff Collapse all Expand all
0 debian/findbugs.1
0 debian/fb.1
+0
-125
debian/patches/0008-new-findbugs-help-options.patch less more
0 Index: findbugs-2.0.2/src/java/edu/umd/cs/findbugs/ShowHelp.java
1 ===================================================================
2 --- findbugs-2.0.2.orig/src/java/edu/umd/cs/findbugs/ShowHelp.java 2013-08-29 21:05:56.000000000 +0800
3 +++ findbugs-2.0.2/src/java/edu/umd/cs/findbugs/ShowHelp.java 2013-08-29 21:07:43.893829925 +0800
4 @@ -18,52 +18,59 @@
5 */
6 package edu.umd.cs.findbugs;
7
8 -import java.util.TreeSet;
9
10 /**
11 * Show command line help.
12 - *
13 + *
14 * @author David Hovemeyer
15 */
16 public class ShowHelp {
17 -
18 +
19 public static void main(String[] args) {
20
21 System.out.println("FindBugs version " + Version.RELEASE + ", " + Version.WEBSITE);
22 -
23 +
24 DetectorFactoryCollection.instance();
25 - System.out.println("Command line options");
26 -
27 + //System.out.println("Command line options");
28 +
29 + /*
30 TreeSet<FindBugsMain> cmds = new TreeSet<FindBugsMain>();
31 - for(Plugin p : Plugin.getAllPlugins())
32 - for(FindBugsMain m : p.getAllFindBugsMain())
33 + for(Plugin p : Plugin.getAllPlugins())
34 + for(FindBugsMain m : p.getAllFindBugsMain())
35 cmds.add(m);
36 - for(FindBugsMain m : cmds)
37 - System.out.printf("fb %-12s %-12s %s%n", m.cmd, m.kind, m.description);
38 -
39 -// System.out.println();
40 -// System.out.println("GUI Options:");
41 -// FindBugsCommandLine guiCmd = new FindBugsCommandLine(true) {
42 -// };
43 -// guiCmd.printUsage(System.out);
44 -// System.out.println();
45 -// System.out.println("TextUI Options:");
46 -// FindBugs.showCommandLineOptions();
47 + for(FindBugsMain m : cmds)
48 + System.out.printf("fb %-12s %-12s %s%n", m.cmd, m.kind, m.description);
49 + */
50 + System.out.println();
51 + showSynopsis();
52 +
53 System.out.println();
54 showGeneralOptions();
55 -
56 +
57 + System.out.println();
58 + System.out.println("GUI Options:");
59 + FindBugsCommandLine guiCmd = new FindBugsCommandLine(true) {
60 + };
61 + guiCmd.printUsage(System.out);
62 +
63 + System.out.println();
64 + System.out.println("TextUI Options:");
65 + FindBugs.showCommandLineOptions();
66 + System.out.println();
67 +
68 }
69
70 public static void showSynopsis() {
71 System.out.println("Usage: findbugs [general options] [gui options]");
72 + System.out.println(" or: findbugs [general options] -textui [textui options...] [jar/zip/class files, directories...]");
73 }
74
75 public static void showGeneralOptions() {
76 -
77 +
78 System.out.println("General options:");
79 System.out.println(" -jvmArgs args Pass args to JVM");
80 System.out.println(" -maxHeap size Maximum Java heap size in megabytes (default=768)");
81 System.out.println(" -javahome <dir> Specify location of JRE");
82 -
83 +
84 }
85 }
86 Index: findbugs-2.0.2/src/java/edu/umd/cs/findbugs/TextUICommandLine.java
87 ===================================================================
88 --- findbugs-2.0.2.orig/src/java/edu/umd/cs/findbugs/TextUICommandLine.java 2013-08-29 21:05:56.000000000 +0800
89 +++ findbugs-2.0.2/src/java/edu/umd/cs/findbugs/TextUICommandLine.java 2013-08-29 21:07:37.913800267 +0800
90 @@ -145,7 +145,7 @@
91 public TextUICommandLine() {
92 addSwitch("-showPlugins", "show list of available detector plugins");
93
94 - startOptionGroup("Output options:");
95 + startOptionGroup("\nOutput options:");
96 addSwitch("-justListOptions", "throw an exception that lists the provided options");
97 makeOptionUnlisted("-justListOptions");
98
99 @@ -177,7 +177,7 @@
100 makeOptionUnlisted("-outputFile");
101 addSwitchWithOptionalExtraPart("-nested", "true|false", "analyze nested jar/zip archives (default=true)");
102
103 - startOptionGroup("Output filtering options:");
104 + startOptionGroup("\nOutput filtering options:");
105 addOption("-bugCategories", "cat1[,cat2...]", "only report bugs in given categories");
106 addOption("-onlyAnalyze", "classes/packages",
107 "only analyze given classes and packages; end with .* to indicate classes in a package, .- to indicate a package prefix");
108 @@ -186,14 +186,14 @@
109 addOption("-include", "filter file", "include only bugs matching given filter");
110 addSwitch("-applySuppression", "Exclude any bugs that match suppression filter loaded from fbp file");
111
112 - startOptionGroup("Detector (visitor) configuration options:");
113 + startOptionGroup("\nDetector (visitor) configuration options:");
114 addOption("-visitors", "v1[,v2...]", "run only named visitors");
115 addOption("-omitVisitors", "v1[,v2...]", "omit named visitors");
116 addOption("-chooseVisitors", "+v1,-v2,...", "selectively enable/disable detectors");
117 addOption("-choosePlugins", "+p1,-p2,...", "selectively enable/disable plugins");
118 addOption("-adjustPriority", "v1=(raise|lower)[,...]", "raise/lower priority of warnings for given visitor(s)");
119
120 - startOptionGroup("Project configuration options:");
121 + startOptionGroup("\nProject configuration options:");
122 addOption("-auxclasspath", "classpath", "set aux classpath for analysis");
123 addSwitch("-auxclasspathFromInput", "read aux classpath from standard input");
124 addOption("-sourcepath", "source path", "set source path for analyzed classes");
55 0006-using-gtk-ui-settings.patch
66 0007-insert-in-script.patch
77 use-system-jar.patch
8 0008-new-findbugs-help-options.patch
98 0009-fix-buildxml-lib-denpendency-for-bcel-jformatstring.patch
2929 # prepare findbugs.1
3030 help2man -h "-help" -v "-version" \
3131 -n "Static Java Code Analyzer" \
32 $(CURDIR)/debian/findbugs/usr/bin/findbugs \
33 -o $(CURDIR)/debian/findbugs.1
32 $(CURDIR)/debian/findbugs/usr/bin/fb \
33 -o $(CURDIR)/debian/fb.1
3434
3535 override_dh_auto_test:
3636 ant test