where to find the generated javascript after compile gwt project

113 views
Skip to first unread message

tong123123

unread,
Jan 20, 2012, 3:20:54 AM1/20/12
to Google Web Toolkit
in the tutorial
http://code.google.com/webtoolkit/doc/latest/tutorial/style.html
it mention
If, after you compile StockWatcher, you look at the generated
JavaScript for the Add button, you will see that the button has a
class attribute of gwt-Button:
<button class="gwt-Button" tabindex="0" type="button">Add</button>

but i cannot find such a javascript after compile even using eclipse
search function for the workspace, so where is the javascript saved?

Ed

unread,
Jan 20, 2012, 3:39:06 AM1/20/12
to google-we...@googlegroups.com
The generated Js will be obfuscated so you will need to generate "pretty" Js to be able to read it and find it with any text search.
See:

tong123123

unread,
Jan 20, 2012, 4:18:19 AM1/20/12
to Google Web Toolkit
Thanks for the reply.
I try to use "pretty" compile option but still cannot search
<button class="gwt-Button" tabindex="0" type="button">Add</button>
, there is error as follow:
[code]
Problems encountered during text search.
File 'gwtFirstLesson/war/gwtfirstlesson/
E720E054419B741AA727C0B7947BDC5D.gwt.rpc' has been skipped, problem
while reading: ('Resource is out of sync with the file system: '/
gwtFirstLesson/war/gwtfirstlesson/
E720E054419B741AA727C0B7947BDC5D.gwt.rpc'.').
Resource is out of sync with the file system: '/gwtFirstLesson/war/
gwtfirstlesson/E720E054419B741AA727C0B7947BDC5D.gwt.rpc'.
File 'gwtFirstLesson/war/WEB-INF/deploy/gwtfirstlesson/
rpcPolicyManifest/manifests/11788ECC1161BA1216712B0DB083DC1D.txt' has
been skipped, problem while reading: ('Resource is out of sync with
the file system: '/gwtFirstLesson/war/WEB-INF/deploy/gwtfirstlesson/
rpcPolicyManifest/manifests/11788ECC1161BA1216712B0DB083DC1D.txt'.').
Resource is out of sync with the file system: '/gwtFirstLesson/war/WEB-
INF/deploy/gwtfirstlesson/rpcPolicyManifest/manifests/
11788ECC1161BA1216712B0DB083DC1D.txt'.
File 'gwtFirstLesson/war/WEB-INF/deploy/gwtfirstlesson/
rpcPolicyManifest/manifest.txt' has been skipped, problem while
reading: ('Resource is out of sync with the file system: '/
gwtFirstLesson/war/WEB-INF/deploy/gwtfirstlesson/rpcPolicyManifest/
manifest.txt'.').
Resource is out of sync with the file system: '/gwtFirstLesson/war/WEB-
INF/deploy/gwtfirstlesson/rpcPolicyManifest/manifest.txt'.
[/code]

I see "'Resource is out of sync with the file system: ", but I already
select the project and right click > refresh in eclipse before search.
> PrettyCompile<http://code.google.com/webtoolkit/doc/1.6/FAQ_DebuggingAndCompiling.h...>

Ed Bras

unread,
Jan 20, 2012, 5:33:44 AM1/20/12
to google-we...@googlegroups.com
I would give the button a unique text and search on the text.
Refreshing in Eclipse after the above error/warning always helps in my case.
 


--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.


meir shmaiovitch

unread,
May 13, 2014, 5:34:23 AM5/13/14
to google-we...@googlegroups.com
did you find a solution? i am currently expiriancing the same issue.
Reply all
Reply to author
Forward
0 new messages