aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder/build.xml
blob: a12e7ef7c49f7176604798e7f7994feaceaddc06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<project default="unpackAndJar" basedir=".">

  <target name="unpackAndJar" depends="unpack,jar" />

  <target name="jar">
    <copy file="../lib/regexp/jakarta-regexp-1.2.jar"
        tofile="bcel/lib/regexp-1.2.jar" />
    <ant dir="bcel" target="jar" />
    <copy file="bcel/bin/bcel.jar" toDir="." />
  </target>

  <target name="pack">
  </target>

  <target name="unpack" depends="extract,patch" />

  <target name="extract">
    <unzip src="bcel-5.1-src.zip" dest="." />
  </target>

  <target name="clean">
    <delete dir="bcel-5.1" />
    <delete dir="bcel" />
  </target>

  <target name="patch">
    <copy todir="bcel">
      <fileset dir="bcel-5.1" />
    </copy>
    <patch patchfile="patch.txt" strip="1" dir="bcel" />
  </target>

  <target name="diff">
    <exec dir="." executable="diff.exe" output="patch.txt">
      <arg line="-N"/>
      <arg line="-a"/>
      <arg line="-u"/>
      <arg line="-r"/>
      <arg line="-b"/>
      <arg line="bcel-5.1" />
      <arg line="bcel" />
    </exec>
  </target>

</project>