blob: 0b62f7888a0740f36e9c0d94cf518fd8e1e10a23 [file] [log] [blame]
mparkerd8b3ee12009-12-07 20:35:47 +00001<project name="findBugs">
2<!-- Copied from sourceediting/development/athena/org.eclipse.wst.xml.releng/findbugs.xml -->
3 <macrodef name="getFindBugs">
4 <attribute name="downloadDir"/>
5 <attribute name="destDir"/>
6 <sequential>
7 <mkdir dir="@{downloadDir}"/>
8 <get src="http://downloads.sourceforge.net/project/findbugs/findbugs/1.3.9/findbugs-1.3.9.zip?use_mirror=voxel" dest="@{downloadDir}/findbugs.zip"/>
9 <unzip src="${writableBuildRoot}/downloads/findbugs.zip" dest="@{destDir}"/>
10 </sequential>
11 </macrodef>
12
13 <macrodef name="extractJarsForAnalysis">
14 <attribute name="refid"/>
15 <attribute name="src"/>
16 <sequential>
17 <get src="@{src}" dest="${writableBuildRoot}/eclipse.zip"/>
18 <delete dir="${writableBuildRoot}/athena/findbugs"/>
19 <mkdir dir="${writableBuildRoot}/athena/findbugs"/>
20 <unzip src="${writableBuildRoot}/eclipse.zip" dest="${writableBuildRoot}/athena/findbugs/">
21 <patternset refid="@{refid}"/>
22 </unzip>
23 <unzip dest="${writableBuildRoot}/athena/findbugsclasses/">
24 <fileset dir="${writableBuildRoot}/athena/findbugs/">
25 <include name="**/*.jar"/>
26 </fileset>
27 </unzip>
28 </sequential>
29 </macrodef>
30
31 <macrodef name="findBugs">
32 <attribute name="outputfile"/>
33 <sequential>
34 <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask">
35 <classpath>
36 <path>
37 <fileset dir="${writableBuildRoot}/3rdPartyJars/findbugs/findbugs-1.3.9/lib" includes="*.jar"/>
38 </path>
39 </classpath>
40 </taskdef>
41
42 <findbugs home="${writableBuildRoot}/3rdPartyJars/findbugs/findbugs-1.3.9/lib"
43 output="xml"
44 outputFile="@{outputfile}" >
45 <class location="${writableBuildRoot}/athena/findbugsclasses"/>
46 </findbugs>
47 </sequential>
48 </macrodef>
49
50
51
52</project>