Hello
You can call directly com.jogamp.gluegen.GlueGen instead of using com.jogamp.gluegen.ant.GlueGenTask. You'll have to put the right version of Antlr into your classpath. Good luck.
P.S: By the way, this way of running GlueGen is possible but undocumented, don't expect to find a working example.