OLD | NEW |
1 <html><head> | 1 <html><head> |
2 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> | 2 <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> |
3 <title>Chapter 11. Using rejarForAnalysis</title><meta name="genera
tor" content="DocBook XSL Stylesheets V1.76.1"><link rel="home" href="index.html
" title="FindBugs™ Manual"><link rel="up" href="index.html" title="FindBug
s™ Manual"><link rel="prev" href="annotations.html" title="Chapter 10
. Annotations"><link rel="next" href="datamining.html" title="Chapter
12. Data mining of bugs with FindBugs™"></head><body bgcolor="white"
text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheade
r"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="ce
nter">Chapter 11. Using rejarForAnalysis</th></tr><tr><td width="20%"
align="left"><a accesskey="p" href="annotations.html">Prev</a> </td><th wid
th="60%" align="center"> </th><td width="20%" align="right"> <a access
key="n" href="datamining.html">Next</a></td></tr></table><hr></div><div class="c
hapter" title="Chapter 11. Using rejarForAnalysis"><div class="titlepa
ge"><div><div><h2 class="title"><a name="rejarForAnalysis"></a>Chapter 11.&
nbsp;Using rejarForAnalysis</h2></div></div></div><p> | 3 <title>Chapter 11. Using rejarForAnalysis</title><meta name="genera
tor" content="DocBook XSL Stylesheets V1.78.1"><link rel="home" href="index.html
" title="FindBugs™ Manual"><link rel="up" href="index.html" title="FindBug
s™ Manual"><link rel="prev" href="annotations.html" title="Chapter 10
. Annotations"><link rel="next" href="datamining.html" title="Chapter
12. Data mining of bugs with FindBugs™"></head><body bgcolor="white"
text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheade
r"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="ce
nter">Chapter 11. Using rejarForAnalysis</th></tr><tr><td width="20%"
align="left"><a accesskey="p" href="annotations.html">Prev</a> </td><th wid
th="60%" align="center"> </th><td width="20%" align="right"> <a access
key="n" href="datamining.html">Next</a></td></tr></table><hr></div><div class="c
hapter"><div class="titlepage"><div><div><h1 class="title"><a name="rejarForAnal
ysis"></a>Chapter 11. Using rejarForAnalysis</h1></div></div></div><p> |
4 If your project consists of many jarfiles or the jarfiles are scattered | 4 If your project consists of many jarfiles or the jarfiles are scattered |
5 over many directories, you may wish to use the <span class="command"><strong>rej
arForAnalysis | 5 over many directories, you may wish to use the <span class="command"><strong>rej
arForAnalysis |
6 </strong></span> script to make | 6 </strong></span> script to make |
7 FindBugs invocation easier. The script collects many jarfiles and combines them | 7 FindBugs invocation easier. The script collects many jarfiles and combines them |
8 into a single, large jarfile that can then be easily passed to FindBugs for | 8 into a single, large jarfile that can then be easily passed to FindBugs for |
9 analysis. This can be particularly useful in combination with the 'find' comman
d | 9 analysis. This can be particularly useful in combination with the 'find' comman
d |
10 on unix systems; e.g. <span class="command"><strong>find . -name '*.jar' | xargs
rejarForAnalysis | 10 on unix systems; e.g. <span class="command"><strong>find . -name '*.jar' | xargs
rejarForAnalysis |
11 </strong></span>. | 11 </strong></span>. |
12 </p><p> | 12 </p><p> |
13 The <span class="command"><strong>rejarForAnalysis</strong></span> script | 13 The <span class="command"><strong>rejarForAnalysis</strong></span> script |
14 can also be used to split a very large project up into a set of jarfiles with | 14 can also be used to split a very large project up into a set of jarfiles with |
15 the project classfiles evenly divided between them. This is useful when running | 15 the project classfiles evenly divided between them. This is useful when running |
16 FindBugs on the entire project is not practical due to time or memory consumptio
n. | 16 FindBugs on the entire project is not practical due to time or memory consumptio
n. |
17 Instead of running FindBugs on the entire project, you may use <span class="comm
and"><strong> | 17 Instead of running FindBugs on the entire project, you may use <span class="comm
and"><strong> |
18 rejarForAnalysis</strong></span> build one large, all-inclusive jarfile | 18 rejarForAnalysis</strong></span> build one large, all-inclusive jarfile |
19 containing all classes, invoke <span class="command"><strong>rejarForAnalysis</s
trong></span> | 19 containing all classes, invoke <span class="command"><strong>rejarForAnalysis</s
trong></span> |
20 again to split the project into multiple jarfiles, then run FindBugs | 20 again to split the project into multiple jarfiles, then run FindBugs |
21 on each divided jarfiles in turn, specifying the the all-inclusive jarfile in | 21 on each divided jarfiles in turn, specifying the the all-inclusive jarfile in |
22 the <span class="command"><strong>-auxclasspath</strong></span>. | 22 the <span class="command"><strong>-auxclasspath</strong></span>. |
23 </p><p> | 23 </p><p> |
24 These are the options accepted by the <span class="command"><strong>rejarForAnal
ysis</strong></span> script: | 24 These are the options accepted by the <span class="command"><strong>rejarForAnal
ysis</strong></span> script: |
25 </p><div class="variablelist"><dl><dt><span class="term"><span class="command"><
strong>-maxAge</strong></span> <em class="replaceable"><code>days</code></em></s
pan></dt><dd><p> | 25 </p><div class="variablelist"><dl class="variablelist"><dt><span class="term"><s
pan class="command"><strong>-maxAge</strong></span> <em class="replaceable"><cod
e>days</code></em></span></dt><dd><p> |
26 Maximum age in days (ignore jar files older than this). | 26 Maximum age in days (ignore jar files older than this). |
27 </p></dd><dt><span class="term"><span class="command"><strong>-inputFileL
ist</strong></span> <em class="replaceable"><code>filename</code></em></span></d
t><dd><p> | 27 </p></dd><dt><span class="term"><span class="command"><strong>-inputFileL
ist</strong></span> <em class="replaceable"><code>filename</code></em></span></d
t><dd><p> |
28 Text file containing names of jar files. | 28 Text file containing names of jar files. |
29 </p></dd><dt><span class="term"><span class="command"><strong>-maxClasses
</strong></span> <em class="replaceable"><code>num</code></em></span></dt><dd><p
> | 29 </p></dd><dt><span class="term"><span class="command"><strong>-maxClasses
</strong></span> <em class="replaceable"><code>num</code></em></span></dt><dd><p
> |
30 Maximum number of classes per analysis*.jar file. | 30 Maximum number of classes per analysis*.jar file. |
31 </p></dd><dt><span class="term"><span class="command"><strong>-prefix</st
rong></span> <em class="replaceable"><code>class name prefix</code></em></span><
/dt><dd><p> | 31 </p></dd><dt><span class="term"><span class="command"><strong>-prefix</st
rong></span> <em class="replaceable"><code>class name prefix</code></em></span><
/dt><dd><p> |
32 Prefix of class names that should be analyzed (e.g., edu.umd.cs.). | 32 Prefix of class names that should be analyzed (e.g., edu.umd.cs.). |
33 </p></dd></dl></div></div><div class="navfooter"><hr><table width="100%"
summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" hr
ef="annotations.html">Prev</a> </td><td width="20%" align="center"> </
td><td width="40%" align="right"> <a accesskey="n" href="datamining.html">N
ext</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 10.&
nbsp;Annotations </td><td width="20%" align="center"><a accesskey="h" href=
"index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapt
er 12. Data mining of bugs with <span class="application">FindBugs</sp
an>™</td></tr></table></div></body></html> | 33 </p></dd></dl></div></div><div class="navfooter"><hr><table width="100%"
summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" hr
ef="annotations.html">Prev</a> </td><td width="20%" align="center"> </
td><td width="40%" align="right"> <a accesskey="n" href="datamining.html">N
ext</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 10.&
nbsp;Annotations </td><td width="20%" align="center"><a accesskey="h" href=
"index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapt
er 12. Data mining of bugs with <span class="application">FindBugs</sp
an>™</td></tr></table></div></body></html> |
OLD | NEW |