Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the Difference between com.google.gwt.dev.Compiler and com.google.gwt.dev.GWTCompiler

When i go through the com.google.gwt.dev package i found that there are two compilers available in com.google.gwt.dev.

My need is to compile a GWT project programatically from my Java Application. Which one is suited?

like image 266
Abin Manathoor Devasia Avatar asked Oct 24 '25 19:10

Abin Manathoor Devasia


2 Answers

GWTCompiler is the old entry point. The class has been deprecated for years, and has finally been removed starting with GWT 2.5.1-rc1.

like image 98
Thomas Broyer Avatar answered Oct 26 '25 22:10

Thomas Broyer


 Both the classes are the main executable entry point 
 for the GWT Java to JavaScript compiler. 

But com.google.gwt.dev.GWTCompiler is deprecated

Use com.google.gwt.dev.Compiler (latest compiler from 2.5)

Here you can find the both classes api:

GWTCompiler // here you can find that its deprecated

Compiler

like image 24
Suresh Atta Avatar answered Oct 26 '25 22:10

Suresh Atta