aboutsummaryrefslogtreecommitdiffstats
path: root/make
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2006-01-17 06:34:45 +0000
committerKenneth Russel <[email protected]>2006-01-17 06:34:45 +0000
commit0930c6ae9487745b69af8554724ad3a7ad0caa7e (patch)
tree8e1e775518e0706387b8b60c2888b427d7718ca4 /make
parent9a75af4d242de84cff9c279bced4fe9e62c32c86 (diff)
Added download and build instructions to GlueGen manual. Added
Manifest to gluegen.jar to make it easier to run as an executable jar. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/gluegen/trunk@9 a78bb65f-1512-4460-ba86-f6dc96a7bf27
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" />