summaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
Diffstat (limited to 'make')
-rwxr-xr-xmake/Manifest2
-rwxr-xr-xmake/build.xml8
2 files changed, 9 insertions, 1 deletions
diff --git a/make/Manifest b/make/Manifest
new file mode 100755
index 0000000..1677feb
--- /dev/null
+++ b/make/Manifest
@@ -0,0 +1,2 @@
+Main-Class: com.sun.gluegen.GlueGen
+Class-Path: antlr.jar
diff --git a/make/build.xml b/make/build.xml
index 440d194..2557fac 100755
--- a/make/build.xml
+++ b/make/build.xml
@@ -139,7 +139,7 @@
</javac>
<!-- Build gluegen.jar. -->
- <jar destfile="${build}/gluegen.jar">
+ <jar destfile="${build}/gluegen.jar" manifest="Manifest">
<fileset dir="${classes}">
<include name="**/*.class" />
</fileset>
@@ -151,6 +151,12 @@
<include name="com/sun/gluegen/runtime/*.class" />
</fileset>
</jar>
+
+ <!-- Copy antlr.jar into build directory for convenience so
+ gluegen.jar can be run via "java -jar". antlr.jar is
+ referenced via a Class-Path entry in the Manifest of
+ gluegen.jar. -->
+ <copy file="${antlr.jar}" todir="${build}" />
</target>
<target name="all" depends="gluegen.build" />