Hudson がコンパイラの警告を集計します。 このオプションを設定すると、警告数の推移や Web UIでの結果の参照など、警告に関する有益な情報が提供されます。 この機能を利用するには、すべての警告をログファイルに出力するよう設定を変更してください。

Ant での設定

Ant の javac タスクで、コンパイラの警告を出力するには、 (a) nowarn="on" と指定しない(デフォルトは"off"です) (b) コンパイラの引数などに -Xlint を追加する の2つが必要になります。 例:

    
<javac deprecation="true" destdir="classes">
  <compilerarg value="-Xlint"/>
</javac>
    
  

Maven での設定

mavenでコンパイルを行う場合、以下をpom.xmlに追加して、コンパイラの警告を有効にしてください。

    

<plugins>
  [...]
  <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <configuration>
      <showDeprecation>true</showDeprecation>
      <showWarnings>true</showWarnings>
    </configuration>
  </plugin>
[...]

</plugins>
    
  

Oracle Invalids Configuration

In order to visualize the invalids of your Oracle database you need to copy the output of the following SQL statement to the console log.
    
SELECT   dao.owner, dao.object_name, dao.object_type, dao.status, dae.line, dae.position, dae.text
    FROM dba_objects dao, dba_errors dae
   WHERE dao.status = 'INVALID'
     AND dao.owner = dae.owner(+)
     AND dao.object_name = dae.name(+)
     AND dao.object_type = dae.type(+)
ORDER BY object_type, object_name;