aboutsummaryrefslogtreecommitdiffstats
path: root/bcel-builder/build.xml
blob: 0310d4c3f72fbce9490c2175d4ab64a6dde24e18 (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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<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/Regex.jar" />
    <ant dir="bcel" target="jar" />
    <copy file="bcel/bin/bcel.jar" toDir="." />
  </target>

  <target name="update">
    <copy file="bcel.jar" todir="../lib/bcel" />
  </target>

  <target name="pack">
    <move toDir="bcel/src/java">
      <fileset dir="src" />
    </move>
  </target>

  <target name="unpack" depends="extract,patch,srcclean">
    <move toDir="src">
      <fileset dir="bcel/src/java" />
    </move>
  </target>

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

  <target name="srcclean">
    <delete dir="src/org" />
  </target>

  <target name="clean" depends="srcclean">
    <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>