How does one force running of a GwtTestCase to compile its js using detailed/pretty ?

9 views
Skip to first unread message

mP

unread,
Dec 5, 2006, 1:07:09 AM12/5/06
to Google Web Toolkit
Is this possible ?

Within GWTCompiler I tried calling setStylePretty() within both
constructors but the translated js in the temp dir still is obsfucated.
I have tried the usual things of deleting the temp dir starting again
etc.. but they all make no diff. It appears as if the compiler forces
obsfucated mode when running within a GwtTestCase. Argh shouldnt the
default be pretty/detailed mode ? At least one can examine the
translated js...

Mat Gessel

unread,
Dec 5, 2006, 2:23:04 AM12/5/06
to Google-We...@googlegroups.com
You have to pass a VM argument when launching the test runner. Below
are the VM args I use in my Eclipse launch config. I get "pretty"
source in the www-test output directory.

-enableassertions -Dgwt.args="-web -out www-test -style PRETTY"

To get the help message you pass -Dgwt.args="-help" to the test
runner. Here, I'll save you the trouble (scroll to the bottom):
http://www.asquare.net/gwt/usage.jsp

You also can set system property via a static initializer in the GWTTestCase:
static
{
System.setProperty("gwt.args", "-help");
}

--
Mat Gessel
http://www.asquare.net

Reply all
Reply to author
Forward
0 new messages