Index: common.ant.xml
===================================================================
--- common.ant.xml	(revision 3694)
+++ common.ant.xml	(working copy)
@@ -201,11 +201,20 @@
 
   <macrodef name="gwt.getsvninfo" description="Identifies the SVN info of a workspace">
     <sequential>
-      <taskdef name="svninfo"
-         classname="com.google.gwt.ant.taskdefs.SvnInfo"
-         classpath="${gwt.build.lib}/ant-gwt.jar" />
-      <svninfo directory="${gwt.root}" outputproperty="gwt.svnrev"
-          outputfileproperty="gwt.svnrev.filename" />
+      <if>
+        <available file="${gwt.root}/.svn" type="dir" property="is.svn.workdir"/>
+        <then>
+          <taskdef name="svninfo"
+             classname="com.google.gwt.ant.taskdefs.SvnInfo"
+             classpath="${gwt.build.lib}/ant-gwt.jar" />
+          <svninfo directory="${gwt.root}" outputproperty="gwt.svnrev"
+              outputfileproperty="gwt.svnrev.filename" />
+        </then>
+        <else>
+          <property name="gwt.svnrev" value="0"/>
+          <property name="gwt.svnrev.filename" value="0"/>
+        </else>
+      </if>
       <!-- Generally, filtering requires a sentinel file so that changes to svn rev will
          be noticed as invalidating the previously-generated filter output.  This property
          names where such a sentinel lives; it is tested with <available/> and created
