aboutsummaryrefslogtreecommitdiffstats
path: root/build/bin/compile-gwt-components
diff options
context:
space:
mode:
Diffstat (limited to 'build/bin/compile-gwt-components')
-rwxr-xr-xbuild/bin/compile-gwt-components16
1 files changed, 15 insertions, 1 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;