Sanity checking that GWT_TOOLS is set
git-svn-id: https://google-web-toolkit.googlecode.com/svn/trunk@2 8db76d5a-ed1c-0410-87a9-c151d255dfc7
diff --git a/common.ant.xml b/common.ant.xml
index 782993a..84c1798 100755
--- a/common.ant.xml
+++ b/common.ant.xml
@@ -28,6 +28,10 @@
<property name="javac.source" value="1.4" />
<property name="javac.nowarn" value="true" />
+ <!-- Sanity check -->
+ <available file="${gwt.tools}" type="dir" property="gwt.tools.exists" />
+ <fail unless="gwt.tools.exists" message="Cannot find '${gwt.tools}' tools directory; perhaps you should define the GWT_TOOLS environment variable" />
+
<!-- Plug-in Tasks -->
<taskdef resource="checkstyletask.properties" classpath="${gwt.tools.antlib}/checkstyle-all-4.2.jar" />
@@ -54,7 +58,7 @@
</sequential>
</macrodef>
- <target name="antcall.unjar.maybe" unless="unjar.upToDate">
+ <target name="antcall.unjar.maybe" unless="unjar.upToDate">
<mkdir dir="${unjar.out}" />
<unjar src="${unjar.path}" dest="${unjar.out}" overwrite="true" />
<touch file="${unjar.flagFile}" />