Skip to Content »

Tech Life of Recht » New version of the GWT Ant compiler task

 New version of the GWT Ant compiler task

  • August 12th, 2006
  • 1:19 pm

A new version of the Google Web Toolkit has been released (1.1.0), which means that my Ant task broke. It broke due to some re-organization of classes in the dev jar file, which was fixed without any problems. Worse, however, was the dependency on URLClassLoader deep down in the compiler, which was a problem, as the Ant task created an AntClassLoader, which is not an instance of URLClassLoader. After much fiddling with the classloaders, this problem was also fixed.

No new features have been added, so it should be easy to upgrade – just delete the old ant-gwt.jar and replace it with this new ant-gwt-1.1.0.jar. Documentation is still at

3 People had this to say...

[...] Update: I got a notice that the task doesn’t work under Windows – that should be fixed now. Update 2: Version 1.1.0 of GWT requires an new compiler. Get it here. [...]

Gravatar
  • Slava
  • August 17th, 2006
  • 1:25 pm

Hi. I still can’t get your ant task working.
I am using windows 2003. Ant 1.6.5.
I have project with many GWT modules.
Here is my classpath

Using it I get long stack trace with error:
[gwtcompile] Compiling client_identification.ClientIdentificationPage
[gwtcompile] Loading module ‘client_identification.ClientIdentificationPage’
[gwtcompile] [ERROR] Unable to find ‘client_identification/ClientIdentificati
onPage.gwt.xml’ on your classpath; could be a typo, or maybe you forgot to inclu
de a classpath entry for source?

After that i’ve tried to specify directory where client_identification located(but that directory is subdirectory of src-path ). After that ant task has found that module, but ClientIdentificationPage module inherits the other module named “Common” which is located in other directory. So it can’t find Common module now. I’ve specified directory that contains Common module in classpath too, but it won’t help. It seems like it wont searching modules in subdirectories of src-path in the right way.

Gravatar
  • david liu
  • December 19th, 2006
  • 7:45 am

Thanks for you the GWT Ant Task.
It’s very nice for me.

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>