Package list findbugs / 327be35
Merge branch 'master' of git+ssh://git.debian.org/git/pkg-java/findbugs Conflicts: debian/patches/series Sylvestre Ledru 8 years ago
5 changed file(s) with 134 addition(s) and 43 deletion(s). Raw diff Collapse all Expand all
+0
-41
debian/doc/findbugs.1 less more
0 .\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.40.11.
1 .TH FINDBUGS "1" "August 2013" "findbugs 2.0.2" "User Commands"
2 .SH NAME
3 findbugs \- manual page for findbugs 2.0.2
4 .SH DESCRIPTION
5 FindBugs version 2.0.2, http://findbugs.sourceforge.net
6 Command line options
7 fb analyze Perform FindBugs Analysis
8 fb filter Filter analysis results
9 fb gui Launch FindBugs GUI
10 fb help Provide help for commands
11 fb list Convert analysis results to textual form
12 fb set Set project configuration/options
13 fb version List FindBugs version
14 fb history history List details from multi\-version analysis results
15 fb merge history Combine analysis results from different versions of software to produce multi\-version analysis results
16 fb union history Merge analysis results from disjoint components
17 fb addMessages poweruser add msgs (e.g., textual descriptions of bugs) to analysis results
18 fb dis utility Disassemble a class file
19 .SS "General options:"
20 .TP
21 \fB\-jvmArgs\fR args
22 Pass args to JVM
23 .TP
24 \fB\-maxHeap\fR size
25 Maximum Java heap size in megabytes (default=768)
26 .TP
27 \fB\-javahome\fR <dir>
28 Specify location of JRE
29 .SH "SEE ALSO"
30 The full documentation for
31 .B findbugs
32 is maintained as a Texinfo manual. If the
33 .B info
34 and
35 .B findbugs
36 programs are properly installed at your site, the command
37 .IP
38 .B info findbugs
39 .PP
40 should give you access to the complete manual.
0 debian/doc/findbugs.1
0 debian/findbugs.1
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");
44 0005-remove-lib-AppleJavaExtensions.patch
55 0006-using-gtk-ui-settings.patch
66 0007-insert-in-script.patch
7
87 use-system-jar.patch
98 bcel-package.diff
9 0008-new-findbugs-help-options.patch
2626
2727 dh_install --sourcedir=$(CURDIR)
2828
29 # prepare findbugs.1
30 help2man -h "-help" -v "-version" \
31 -n "Static Java Code Analyzer" \
32 $(CURDIR)/debian/findbugs/usr/bin/findbugs \
33 -o $(CURDIR)/debian/findbugs.1
34
2935 override_dh_auto_test:
3036 ant test
3137 dh_auto_test
38