Skip to Content »

Tech Life of Recht » New GWT task for Ant

 New GWT task for Ant

  • April 16th, 2009
  • 1:03 pm

GWT 1.6 was released recently, and because of some pretty major changes in the compiler, my old GWT task for Ant broke (with an InstantiationException when trying to run the task). For some reason, GWT is still not provided with a real Ant task for compiling GWT modules, so I decided to update my old task.

This means that a new version, 1.2, has been released. I’ve also moved the code to Google Code, so now issues can be filed there. I’ll try to move the instruction pages to the Google Code site also, but for now, only the issue tracker and Subversion repository is used.

The task works as always, but to use it with GWT 1.6, you have to add a version=”1.6″ attribute to the element in order to switch to 1.6. The version value can be 1.4, 1.5, or 1.6. 1.4 and 1.5 enables the old compiler, and is the default value.

Download the new version here and report issues here.

1 Person had this to say...

Gravatar
  • cayo
  • November 5th, 2009
  • 9:55 pm

I am with the following error: [gwtcompile] java.lang.OutOfMemoryError: Java heap space


[gwtcompile] [ERROR] Out of memory; to increase the amount of memory, use the -Xmx flag at startup (java -Xmx128M …)

I have already changed o ANT_OPTS of -Xmx512M to -Xmx768M and launch the same error.

Want your say?

* Required fields. Your e-mail address will not be published on this site

You can use the following XHTML tags:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>