?? rejarforanalysis.html
字號:
<html><head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>Chapter 11. Using rejarForAnalysis</title><meta name="generator" content="DocBook XSL Stylesheets V1.71.1"><link rel="start" href="index.html" title="FindBugs™ Manual"><link rel="up" href="index.html" title="FindBugs™ 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="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 11. Using rejarForAnalysis</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="annotations.html">Prev</a> </td><th width="60%" align="center"> </th><td width="20%" align="right"> <a accesskey="n" href="datamining.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="rejarForAnalysis"></a>Chapter 11. Using rejarForAnalysis</h2></div></div></div><p>If your project consists of many jarfiles or the jarfiles are scatteredover many directories, you may wish to use the <span><strong class="command">rejarForAnalysis</strong></span> script to makeFindBugs invocation easier. The script collects many jarfiles and combines theminto a single, large jarfile that can then be easily passed to FindBugs foranalysis. This can be particularly useful in combination with the 'find' commandon unix systems; e.g. <span><strong class="command">find . -name '*.jar' | xargs rejarForAnalysis</strong></span>.</p><p>The <span><strong class="command">rejarForAnalysis</strong></span> scriptcan also be used to split a very large project up into a set of jarfiles withthe project classfiles evenly divided between them. This is useful when runningFindBugs on the entire project is not practical due to time or memory consumption.Instead of running FindBugs on the entire project, you may use <span><strong class="command">rejarForAnalysis</strong></span> build one large, all-inclusive jarfilecontaining all classes, invoke <span><strong class="command">rejarForAnalysis</strong></span>again to split the project into multiple jarfiles, then run FindBugson each divided jarfiles in turn, specifying the the all-inclusive jarfile inthe <span><strong class="command">-auxclasspath</strong></span>.</p><p>These are the options accepted by the <span><strong class="command">rejarForAnalysis</strong></span> script:</p><div class="variablelist"><dl><dt><span class="term"><span><strong class="command">-maxAge</strong></span> <em class="replaceable"><code>days</code></em></span></dt><dd><p> Maximum age in days (ignore jar files older than this). </p></dd><dt><span class="term"><span><strong class="command">-inputFileList</strong></span> <em class="replaceable"><code>filename</code></em></span></dt><dd><p> Text file containing names of jar files. </p></dd><dt><span class="term"><span><strong class="command">-maxClasses</strong></span> <em class="replaceable"><code>num</code></em></span></dt><dd><p> Maximum number of classes per analysis*.jar file. </p></dd><dt><span class="term"><span><strong class="command">-prefix</strong></span> <em class="replaceable"><code>class name prefix</code></em></span></dt><dd><p> Prefix of class names that should be analyzed (e.g., edu.umd.cs.). </p></dd></dl></div></div><div class="navfooter"><hr><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="annotations.html">Prev</a> </td><td width="20%" align="center"> </td><td width="40%" align="right"> <a accesskey="n" href="datamining.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 10. Annotations </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 12. Data mining of bugs with <span class="application">FindBugs</span>™</td></tr></table></div></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -