diff options
Diffstat (limited to 'build/bin')
-rwxr-xr-x | build/bin/compile-gwt-components | 16 | ||||
-rw-r--r-- | build/bin/compile-gwt-components.bat | 2 |
2 files changed, 16 insertions, 2 deletions
diff --git a/build/bin/compile-gwt-components b/build/bin/compile-gwt-components index 3456872d0d..3f02e92315 100755 --- a/build/bin/compile-gwt-components +++ b/build/bin/compile-gwt-components @@ -1,3 +1,17 @@ #!/bin/sh + +JVMVARS="" + +PLATFORM="" + +if [ -d "/Users" ] +then + echo "MAC OS" + JVMVARS="$JVMVARS -XstartOnFirstThread" + PLATFORM="mac" +else + PLATFORM="linux" +fi + rm -r ../../WebContent/com.itmill.toolkit.terminal.gwt.Client/* -java -XstartOnFirstThread -cp "../../src:../gwt/gwt-mac-1.4.59/gwt-user.jar:../gwt/gwt-mac-1.4.59/gwt-dev-mac.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent" "$@" com.itmill.toolkit.terminal.gwt.Client; +java $JVMVARS -cp "../../src:../gwt/gwt/gwt-user.jar:../gwt/gwt/gwt-dev-$PLATFORM.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent" "$@" com.itmill.toolkit.terminal.gwt.Client; diff --git a/build/bin/compile-gwt-components.bat b/build/bin/compile-gwt-components.bat index f1325b81e3..25bdfd9ebc 100644 --- a/build/bin/compile-gwt-components.bat +++ b/build/bin/compile-gwt-components.bat @@ -1 +1 @@ -@java -cp "%~dp0\../../src;%~dp0\bin;%~dp0\../gwt/gwt-windows-1.4.59/gwt-user.jar;%~dp0\../gwt/gwt-windows-1.4.59/gwt-dev-windows.jar" com.google.gwt.dev.GWTCompiler -out "%~dp0\../../WebContent" %* com.itmill.toolkit.terminal.gwt.Client
\ No newline at end of file +@java -cp "%~dp0\../../src;%~dp0\bin;%~dp0\../gwt/gwt/gwt-user.jar;%~dp0\../gwt/gwt/gwt-dev-windows.jar" com.google.gwt.dev.GWTCompiler -out "%~dp0\../../WebContent" %* com.itmill.toolkit.terminal.gwt.Client
\ No newline at end of file |