+++ /dev/null
-#!/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
-
-# Parameters
-JVMVARS="-Xmx512M"
-
-# Detect platform
-PLATFORM=""
-if [ -d "/Users" ]
-then
- echo "MAC OS"
- PLATFORM="mac"
- # Do not add this command for 10.5
- if (uname -v | grep -v -q 9.0); then
- JVMVARS="$JVMVARS -XstartOnFirstThread"
- fi
-else
- PLATFORM="linux"
-fi
-
-
-OUTDIR=../../WebContent/ITMILL/widgetsets
-GWTDIR=../gwt/gwt
-SRCDIR=../../src
-STYLE=OBF
-
-# 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 $STYLE
-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.ColorPickerWidgetSet -style $STYLE
-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.ReservationWidgetSet -style $STYLE
+++ /dev/null
-@java -Xmx128m -Xms128m -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/ITMILL/widgetsets" %* com.itmill.toolkit.terminal.gwt.DefaultWidgetSet\r
-@java -Xmx128m -Xms128m -cp "%~dp0\../../src;%~dp0\bin;%~dp0\../gwt/gwt/gwt-user.jar;%~dp0\../../lib/reservr/googlemaps_gwt.jar;%~dp0\../gwt/gwt/gwt-dev-windows.jar" com.google.gwt.dev.GWTCompiler -out "%~dp0\../../WebContent/ITMILL/widgetsets" %* com.itmill.toolkit.demo.reservation.gwt.ReservationWidgetSet
\ No newline at end of file
</target>
<!-- Initialization - - - - - - - - - - - - - - - - - - - - - - - - -->
- <target name="init">
+ <target name="init" depends="init-platform">
<property file="build/build.properties" />
<property file="build/VERSION.properties" />
<!-- Builds the client-side engine, i.e., the widgetsets in parallel. -->
<target name="compile-client-side">
+ <echo>Compiling widget sets in parallel.</echo>
<parallel threadsperprocessor="1">
<subant antfile="build.xml" target="compile-widgetset-default" inheritall="true" buildpath="build"/>
<subant antfile="build.xml" target="compile-widgetset-reserver" inheritall="true" buildpath="build"/>