Posts Tagged ‘bugs’

Shay Shmeltzer's Oracle JDeveloper and ADF Blog

Picking up from yesterday’s post about using the External Tools->Ant Operation to integrate third party utilities into JDeveloper, here is a quick entry that shows how to integrate the FindBugs utility in a similar way. (You should probably watch the Checkstyle video first).

First get findBugs and extract it onto your hard drive (in my case I extracted it to C: to get the folder C:/findbugs-2.0.0.

Then in that directory I created the following ant build file:

<?xml version=”1.0″ encoding=”windows-1252″ ?>
<project xmlns=”antlib:org.apache.tools.ant” default=”init”>
<taskdef name=”findbugs” classname=”edu.umd.cs.findbugs.anttask.FindBugsTask”/>
<target name=”init”>
<tstamp/>
</target>
<property name=”findbugs.home” value=”C:/findbugs-2.0.0″ />
<target name=”findbugs”>
<findbugs home=”${findbugs.home}” output=”text”>
<sourcePath path=”${basedir2}/src/java” />
<class location=”${basedir2}/classes” />
</findbugs>
</target>
</project>

When you create the External Tools -> Ant operation you’ll point to that file and choose the findbugs operation. You then define basedir2 as a property of the Ant operation and uses the ${project.dir} value in JDeveloper. And you can…

View original post 78 more words