Only do this silly uptodate check if src/ exists


git-svn-id: https://svn.apache.org/repos/asf/geronimo/server/branches/1.1@519256 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/etc/maven.xml b/etc/maven.xml
index 2833783..06f7318 100644
--- a/etc/maven.xml
+++ b/etc/maven.xml
@@ -213,11 +213,13 @@
         <j:remove var="${uptodatePropName}"/>
         <ant:mkdir dir="${basedir}/target/test-reports/"/>
         <j:set var="uptodateFile" value="${basedir}/target/test-reports/tstamp"/>
-
-        <ant:uptodate property="${uptodatePropName}" targetfile="${uptodateFile}">
-          <ant:srcfiles dir="${basedir}/src/" includes="**/*"/>
-        </ant:uptodate>
-
+        
+        <u:available file="${basedir}/src">
+            <ant:uptodate property="${uptodatePropName}" targetfile="${uptodateFile}">
+              <ant:srcfiles dir="${basedir}/src/" includes="**/*"/>
+            </ant:uptodate>
+        </u:available>
+        
         <j:if test="${context.getVariable(uptodatePropName) == 'true'}">
           <ant:echo>NOTICE: Skipping tests; they seem to have passed already</ant:echo>
           <j:set var="maven.test.skip" value="true"/>