[Yanel-dev] Speeding up compiling of resources containing GWT classes

Michael Wechner michael.wechner at wyona.com
Wed Nov 24 14:16:55 CET 2010


Hi

In case you are developing a resource type containing GWT classes, e.g.

src/contributions/resources/policymanager/src-gwt

but you only want to compile the "regular" classes, e.g.

src/contributions/resources/policymanager/src

then you might want to consider "patching" the following file in order 
to speed up compiling

Index: src/build/resource-types/GWT-RT.build.xml
===================================================================
--- src/build/resource-types/GWT-RT.build.xml    (revision 54828)
+++ src/build/resource-types/GWT-RT.build.xml    (working copy)
@@ -131,7 +131,11 @@
</delete>
</target>

+ <!-- @Override resource-type.build.xml#compile -->
<target name="compile" depends="yanel-resource-type.compile, 
gwt:compile" description="Compile Java classes and GWT files"/>
+<!-- INFO: Only compile regular java classes, but no gwt-classes
+ <target name="compile" depends="yanel-resource-type.compile" 
description="Compile Java classes and GWT files"/>
+-->

<target name="gwt:compile" depends="gwt:clean" description="Compile GWT 
files" unless="gwt.compile.skip">


This isn't very nice and it would be nicer to have this configurable, 
but it's a start ;-)

Cheers

Michael


More information about the Yanel-development mailing list