它能夠探測代碼中的哪些功能可以用現存的開源項目代替,幫助提高代碼的可復用性,可維護性。
該項目還提供一個輔助使用的Eclipse插件。
本人測試一下該Eclipse插件,比較不錯,在些推薦給大家。
JNorm官方網址: http://www.jnorm.org/
Eclipse插件 Update Site: http://www.jnorm.org/eclipse/index.html
使用的截圖:

點擊Show details后:

Ant支持
配置方法如下:
?<?xml version="1.0"?>
<project default="main">
<taskdef name="jnorm" classname="org.jnorm.task.JNormTask">
<classpath>
<fileset dir="${jnorm.dist}">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<target name="main">
<jnorm report="c:\work\report.html">
<classpath>
<!-- analysed project classpath -->
</classpath>
<fileset dir="${source}">
<include name="**/*.java"/>
</fileset>
</jnorm>
</target>
</project>
<project default="main">
<taskdef name="jnorm" classname="org.jnorm.task.JNormTask">
<classpath>
<fileset dir="${jnorm.dist}">
<include name="*.jar"/>
</fileset>
</classpath>
</taskdef>
<target name="main">
<jnorm report="c:\work\report.html">
<classpath>
<!-- analysed project classpath -->
</classpath>
<fileset dir="${source}">
<include name="**/*.java"/>
</fileset>
</jnorm>
</target>
</project>
Good Luck!
Yours Matthew!