Bug 262537 - build_project_classpath variable
Summary: build_project_classpath variable
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-27 08:15 EST by Hüseyin Kartal CLA
Modified: 2009-06-24 20:22 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hüseyin Kartal CLA 2009-01-27 08:15:25 EST
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.
Comment 1 Hüseyin Kartal CLA 2009-01-27 08:21:10 EST
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
Comment 2 Mike Wilson CLA 2009-05-05 12:47:52 EDT
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.