<?xml version="1.0" encoding="UTF-8"?> | |||||
<classpath> | |||||
<classpathentry kind="src" path="src"/> | |||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | |||||
<classpathentry kind="output" path="bin"/> | |||||
</classpath> |
<?xml version="1.0" encoding="UTF-8"?> | |||||
<projectDescription> | |||||
<name>bcel-builder</name> | |||||
<comment></comment> | |||||
<projects> | |||||
</projects> | |||||
<buildSpec> | |||||
<buildCommand> | |||||
<name>org.eclipse.jdt.core.javabuilder</name> | |||||
<arguments> | |||||
</arguments> | |||||
</buildCommand> | |||||
</buildSpec> | |||||
<natures> | |||||
<nature>org.eclipse.jdt.core.javanature</nature> | |||||
</natures> | |||||
</projectDescription> |
<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> |
diff -N -a -u -r -b bcel-5.1/build.xml bcel/build.xml | |||||
--- bcel-5.1/build.xml 2003-04-25 09:06:14.000000000 -0700 | |||||
+++ bcel/build.xml 2004-01-27 11:15:53.460625000 -0800 | |||||
@@ -65,7 +65,7 @@ | |||||
<target name="build" depends="compile"/> | |||||
<!-- Jar the library --> | |||||
- <target name="jar" depends="examples"> | |||||
+ <target name="jar" depends="init,compile"> | |||||
<jar jarfile="${build.dir}/${name}.jar" | |||||
basedir="${build.dest}" | |||||
manifest="${basedir}/manifest.txt" | |||||
diff -N -a -u -r -b bcel-5.1/manifest.txt bcel/manifest.txt | |||||
--- bcel-5.1/manifest.txt 1969-12-31 16:00:00.000000000 -0800 | |||||
+++ bcel/manifest.txt 2004-01-27 11:14:51.835625000 -0800 | |||||
@@ -0,0 +1,3 @@ | |||||
+Created-By: Jakarta BCEL 5.1 | |||||
+Manifest-Version: 1.0 | |||||
+Main-Class: listclass |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> | |||||
<html> <head> | |||||
<title>The BCEL-builder module</title> | |||||
</head> | |||||
<body> | |||||
<h1>The BCEL-builder module</h1> | |||||
<p> The contents of this directory are: | |||||
</p> | |||||
<ul> | |||||
<li>This file</li> | |||||
<li>build.xml -- an ant script </li> | |||||
<li>patch.txt -- a diff patchfile</li> | |||||
</ul> | |||||
<p> And pretty much nothing else. Well, then, what do you do with | |||||
this directory? Well, the whole point is to generate bcel/bcel.jar in | |||||
the lib package. To do so, first stick | |||||
<strong>bcel-5.1-src.zip</strong> in this directory, then run ant. | |||||
After much unzipping, patching, and compiling, you should get an | |||||
appropriate bcel.jar file. Now put it in the appropriate place. </p> | |||||
<p> If there's something <em>wrong</em> with the bcel.jar in the lib | |||||
project, well, then you've got some development to do. You'll need | |||||
to know some more ant targets. But before anything, get that | |||||
<strong>bcel-5.1-src.zip</strong> and stick it in this directory. | |||||
</p> | |||||
<ul> | |||||
<li>ant unpack -- unpack the sources for the AspectJ-version of BCEL | |||||
into the <strong>src</strong> subdirectory. Though you probably | |||||
don't care, this invokes the following subtasks: </li> | |||||
<ul> | |||||
<li>ant extract -- extract the contents of bcel-5.1-src.zip | |||||
into the bcel-5.1 directory.</li> | |||||
<li>ant patch -- apply the patchfile patch.txt to the | |||||
<strong>bcel-5.1/src</strong> directory, creating | |||||
<strong>src</strong>.</li> | |||||
</ul> | |||||
<li>ant pack -- pack the sources for AspectJ's version of bcel back | |||||
into a tiny little patchfile. This uses exec, and requires that you | |||||
have diff somewhere on your path. Actually, it's much worse: it | |||||
requires you have diff.exe somewhere on your path. I hate that I'm | |||||
turning into a windows whore. </li> | |||||
<li>ant clean -- get rid of everything extraneous in preparation for | |||||
a checkin. </li> | |||||
</ul> | |||||
</body> </html> |