From 0930c6ae9487745b69af8554724ad3a7ad0caa7e Mon Sep 17 00:00:00 2001
From: Kenneth Russel
+
+ cvs -d :pserver:guest@cvs.dev.java.net:/cvs co gluegen ++ +To build GlueGen, first download the current ANTLR jar file from antlr.org. (NOTE: do not place this jar +file in the Extensions directory of the JRE or JDK, as this will cause +the build to fail.) Next, copy
make/gluegen.properties
+from the GlueGen workspace to your home directory (pointed to by the
+Java system property user.home
; on Windows this is
+e.g. C:\Documents and Settings\username
). Edit the copy
+of gluegen.properties in your home directory to point the
+antlr.jar
property to the location of the ANTLR jar file
+on your local disk. Finally, cd to the make/
subdirectory
+and type "ant". Ant 1.6.x or later is required.
+
++ +
-GlueGen accepts four kinds of command-line arguments:
+GlueGen can be run either as an executable jar file (java -jar
+gluegen.jar
; note that antlr.jar must be in the same directory
+as gluegen.jar in order for this invocation to work) or from within
+Ant as described in the following section. When run from the command
+line, GlueGen accepts four kinds of command-line arguments:
+ +GlueGen can also be invoked as a subtask within Ant. In order to do +so, a path element should be defined as follows: + +
+ <path id="gluegen.classpath"> + <pathelement location="${gluegen.jar}" /> + <pathelement location="${antlr.jar}" /> + </path> ++ +where the
gluegen.jar
and antlr.jar
+properties point to the respective jar files. A taskdef defining the
+GlueGen task should then be specified as follows:
+
++ <taskdef name="gluegen" + classname="com.sun.gluegen.ant.GlueGenTask" + classpathref="gluegen.classpath" /> ++ +At this point GlueGen may be invoked as follows: + +
+ <gluegen src="[header to parse]" + config="[configuration file]" + includeRefid="[dirset for include path]" + emitter="com.sun.gluegen.JavaEmitter"> + <classpath refid="gluegen.classpath" /> + </gluegen> ++ +Please see the JOGL and JOAL build.xml files for +concrete, though non-trivial, examples of how to invoke GlueGen via +Ant. +
-- cgit v1.2.3