findbugs ships it own bcel (....)
Sylvestre Ledru
8 years ago
0 | Index: findbugs/build.xml | |
1 | =================================================================== | |
2 | --- findbugs.orig/build.xml 2013-08-29 17:12:15.000000000 +0200 | |
3 | +++ findbugs/build.xml 2013-08-29 17:26:47.000000000 +0200 | |
4 | @@ -143,7 +143,7 @@ | |
5 | ||
6 | <!-- Compile Java source files, and copy other files (properties, | |
7 | images, html, XSL stylesheets) that need to be part of the codebase. --> | |
8 | - <target name="classes" depends="init"> | |
9 | + <target name="classes" depends="init, build-patchbcel"> | |
10 | ||
11 | <!-- Compile Java source files. --> | |
12 | <echo level="info" message="compiling findbugs"/> | |
13 | @@ -1288,12 +1288,14 @@ | |
14 | <target name="patchbcel"> | |
15 | <delete dir="${build.dir}/bcel-5.2-src"/> | |
16 | <delete file="${build.dir}/bcel-5.2-src.zip"/> | |
17 | - <get src="http://www.apache.org/dist/jakarta/bcel/source/bcel-5.2-src.zip" | |
18 | + <get src="http://archive.apache.org/dist/jakarta/bcel/source/bcel-5.2-src.zip" | |
19 | dest="${build.dir}/bcel-5.2-src.zip" | |
20 | verbose="on"/> | |
21 | <unzip src="${build.dir}/bcel-5.2-src.zip" dest="${build.dir}/bcel-5.2-src"/> | |
22 | <delete file="${build.dir}/bcel-5.2-src/bcel-5.2/build.xml"/> | |
23 | <patch patchfile="${patch.dir}/bcel.diff" dir="${build.dir}/bcel-5.2-src/bcel-5.2" strip="7"/> | |
24 | + </target> | |
25 | + <target name="build-patchbcel"> | |
26 | <ant dir="${build.dir}/bcel-5.2-src/bcel-5.2" inheritAll="false"/> | |
27 | <copy file="${build.dir}/bcel-5.2-src/bcel-5.2/bcel.jar" tofile="${jar.dir}/bcel.jar"/> | |
28 | </target> |