diff options
author | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-10-28 17:27:30 +0000 |
---|---|---|
committer | Joonas Lehtinen <joonas.lehtinen@itmill.com> | 2007-10-28 17:27:30 +0000 |
commit | 8eb0dd3498ee905b8d8229280f3aa902a86da4dd (patch) | |
tree | 49012702c81710c4afa553e1a2f53f7f8da60667 /build/bin | |
parent | 02ab0bc392483c27ccafb8657a2156a929629f30 (diff) | |
download | vaadin-framework-8eb0dd3498ee905b8d8229280f3aa902a86da4dd.tar.gz vaadin-framework-8eb0dd3498ee905b8d8229280f3aa902a86da4dd.zip |
Rewrote compile-gwt-components as the previous one did not work
svn changeset:2610/svn branch:trunk
Diffstat (limited to 'build/bin')
-rwxr-xr-x | build/bin/compile-gwt-components | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/build/bin/compile-gwt-components b/build/bin/compile-gwt-components index 887aa0265c..16fdc137c0 100755 --- a/build/bin/compile-gwt-components +++ b/build/bin/compile-gwt-components @@ -1,19 +1,32 @@ -#!/bin/sh +#!/bin/bash -JVMVARS="-Xmx512M" +# Check that the script is only run in build/bin +if [ ! -e compile-gwt-components ]; then +echo compile-gwt-components must only be run from build/bin directory +exit +fi +# Detect platform PLATFORM="" - if [ -d "/Users" ] then echo "MAC OS" - JVMVARS="$JVMVARS -XstartOnFirstThread" PLATFORM="mac" else PLATFORM="linux" fi -rm -r ../../WebContent/ITMILL/widgetsets/* -java $JVMVARS -cp "../../src:../gwt/gwt/gwt-user.jar:../gwt/gwt/gwt-dev-$PLATFORM.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent/ITMILL/widgetsets" "$@" com.itmill.toolkit.terminal.gwt.DefaultWidgetSet -style DETAILED; -java $JVMVARS -cp "../../src:../gwt/gwt/gwt-user.jar:../gwt/gwt/gwt-dev-$PLATFORM.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent/ITMILL/widgetsets" "$@" com.itmill.toolkit.demo.colorpicker.gwt.WidgetSet -style DETAILED; -java $JVMVARS -cp "../../src:../gwt/gwt/gwt-user.jar:../../lib/reservr/googlemaps_gwt.jar:../gwt/gwt/gwt-dev-$PLATFORM.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent/ITMILL/widgetsets" "$@" com.itmill.toolkit.demo.reservation.gwt.WidgetSet -style DETAILED; +# Parameters +JVMVARS="-Xmx512M" +OUTDIR=../../WebContent/ITMILL/widgetsets +GWTDIR=../gwt/$PLATFORM +SRCDIR=../../src + +# Clean anything that could be wrong +rm -r $OUTDIR/* +rm -r .gwt-cache + +# Build the widgetsets +java $JVMVARS -cp "$SRCDIR:$GWTDIR/gwt-user.jar:$GWTDIR/gwt-dev-$PLATFORM.jar" com.google.gwt.dev.GWTCompiler -out $OUTDIR com.itmill.toolkit.terminal.gwt.DefaultWidgetSet -style DETAILED +java $JVMVARS -cp "$SRCDIR:$GWTDIR/gwt-user.jar:$GWTDIR/gwt-dev-$PLATFORM.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent/ITMILL/widgetsets" com.itmill.toolkit.demo.colorpicker.gwt.WidgetSet -style DETAILED; +java $JVMVARS -cp "$SRCDIR:$GWTDIR/gwt-user.jar:../../lib/reservr/googlemaps_gwt.jar:$GWTDIR/gwt-dev-$PLATFORM.jar" com.google.gwt.dev.GWTCompiler -out "../../WebContent/ITMILL/widgetsets" com.itmill.toolkit.demo.reservation.gwt.WidgetSet -style DETAILED; |