Community
Participate
Working Groups
Hello i am working on a GWT Project an had an issue with the compilation of java to javascript. After google´ing i found out that there are several gwt plug-ins for eclipse. but i don´t wanted to use any plug-in for the compilation issue. well i found meanwhile a quite good solution which has potential to become better. i defined an external builder for my project as u can see below. Location: C:\Program Files\Java\jdk1.6.0_11\bin\java.exe Working Directory: ${workspace_loc} Arguments: -Xmx256M -cp ${build_project:/src};${build_project:/bin};${workspace_loc:/lib/gwt-windows-1.5.3/gwt-user.jar};${workspace_loc:/lib/gwt-windows-1.5.3/gwt-dev-windows.jar};${workspace_loc:/lib/spring-framework-2.5.6/lib/j2ee/persistence.jar};${workspace_loc:/lib/gwt-incubator_1-5_Dec_28.jar} com.google.gwt.dev.GWTCompiler -out ${build_project:/www} %* com.hsyn.HSYN the definition of arguments here is very static and must be adjusted for any lib or other projects. my suggestion is a variable maybe ${build_project_classpath} which should generate the classpath out of the project settings. wouldn´t that be great? i think so.
after enhancement the configuration of the gwt compiler should look like Location: C:\Program Files\Java\jdk1.6.0_11\bin\java.exe Working Directory: ${workspace_loc} Arguments: -Xmx256M -cp ${build_project_classpath} com.google.gwt.dev.GWTCompiler -out ${build_project:/www} %* com.hsyn.HSYN future request: maybe the definition of the java.exe location could also used out of eclipse preferences configuration. like Location: ${jre:/bin/java.exe} Working Directory: ${workspace_loc} Arguments: -Xmx256M -cp ${build_project_classpath} com.google.gwt.dev.GWTCompiler -out ${build_project:/www} %* com.hsyn.HSYN
Changing Version tag to something more believable. Note that this is not a statement about when the enhancement request will be addressed (the Target Milestone field is used for that); the Version tag should be set to the version of Eclipse you were using when you saw the need for the enhancement.