About Me

My photo
Author of Groovy modules: GBench, GProf, Co-author of a Java book パーフェクトJava, Game Developer at GREE

Wednesday, May 4, 2011

Gj is updated!

I updated "Gj" today. "Gj" is a script to convert Groovy program to distribution format quickly, easily, and without any effort (please see also my previous post).


Updates are as follows:


1. Option to bundle Groovy
-bg/--bundlegroovy option has been added. You can use the option to bundle Groovy instead to specify Groovy libraries directly.
----
> cat src\PrintHello.groovy
println 'hello'


> groovy Gj.groovy -bg -s src -m PrintHello printhello.jar


> java -jar printhello.jar
hello
----


2. The default Java version for javac
The default java version for javac has been changed to be the same version on your system.


3. Option to print Gj version
-ver/--version option has been added. You can use the option to check the Gj version.
----
> groovy Gj.groovy -ver
Gj version: 11.05.05
----


You can download new version from here. Please try it out ;-)

4 comments:

  1. Cool. But the new folder does not contain a gj.jar file.

    ReplyDelete
  2. FYI There is also http://groovy.codehaus.org/WrappingGroovyScript :)

    ReplyDelete
  3. > Cool. But the new folder does not contain a gj.jar file.
    Thank you, bootz15. I've put new version of gj.jar there.

    >FYI There is also http://groovy.codehaus.org/WrappingGroovyScript :)
    Yeah, I noticed there is the script after the first release of Gj. But I guess Gj has better points, for example, you can specify libraries to bundle without modifying script :-)

    ReplyDelete
  4. I removed the jar versions because I found that the jar versions have problem to bundle other not included versions of Groovy.

    ReplyDelete