blob: 16fdc137c04cb393ecfb6bb31b54f81bfb809fac (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
#!/bin/bash
# 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"
PLATFORM="mac"
else
PLATFORM="linux"
fi
# 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;
|