Output only generated Js

11 views
Skip to first unread message

Alain Ekambi

unread,
Aug 5, 2011, 2:29:01 PM8/5/11
to google-we...@googlegroups.com
Hi Folks,

Is it possible to make GWT only  output the Java to JS compilation ? 

--


David Goodenough

unread,
Aug 5, 2011, 2:46:10 PM8/5/11
to Google-We...@googlegroups.com
On Friday 05 Aug 2011, Alain Ekambi wrote:
> Hi Folks,
>
> Is it possible to make GWT only output the Java to JS compilation ?
You could try Java2Script (j2s.sf.net). Its nothing to do with GWT but it
does do Java to Javascript conversion.

David

Alain Ekambi

unread,
Aug 5, 2011, 3:38:32 PM8/5/11
to google-we...@googlegroups.com
Looks like it cant export GWT code to JS.

2011/8/5 David Goodenough <david.go...@btconnect.com>

--
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.

Jeff Larsen

unread,
Aug 5, 2011, 3:46:05 PM8/5/11
to google-we...@googlegroups.com
different browsers get different JS. I don't understand your question. 

Alain Ekambi

unread,
Aug 5, 2011, 3:57:23 PM8/5/11
to google-we...@googlegroups.com
Lets say i have the following code

public class Test(){

  public void sayHello(){
    Window.alert("Hello");
}
}


Is it possible to get a file that only contains the JS compilation of that class and not all the other generated stuff by gwt.
No matter which browser

2011/8/5 Jeff Larsen <lars...@gmail.com>
different browsers get different JS. I don't understand your question. 

--
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.

Alain Ekambi

unread,
Aug 5, 2011, 4:04:14 PM8/5/11
to google-we...@googlegroups.com
Well actually not quit exact

let s stay i have the following code in the EntryPoint

Test t = new Test();
t.sayHello();

is it possible to get only the corresponding JS ? 

and not all the other stuff GWT generates ?

2011/8/5 Alain Ekambi <jazzma...@googlemail.com>

Alain Ekambi

unread,
Aug 5, 2011, 6:30:57 PM8/5/11
to google-we...@googlegroups.com
For  those who might be interested the solution  is to use a linker that extends Abstraclinker and get the string from the compilation result

CompilationResult.getJavaScript()[0];



2011/8/5 Alain Ekambi <jazzma...@googlemail.com>
Reply all
Reply to author
Forward
0 new messages