Author: nickboldt
Date: 2011-04-28 16:20:10 -0400 (Thu, 28 Apr 2011)
New Revision: 30939
Modified:
trunk/build/aggregate/site/build.xml
Log:
add check that local path exists; if not, use http:// path instead
Modified: trunk/build/aggregate/site/build.xml
===================================================================
--- trunk/build/aggregate/site/build.xml 2011-04-28 20:05:31 UTC (rev 30938)
+++ trunk/build/aggregate/site/build.xml 2011-04-28 20:20:10 UTC (rev 30939)
@@ -274,7 +274,16 @@
<available file="/home/hudson/static_build_env/jbds/builds/staging"
type="dir" />
<then>
<propertyregex override="true"
property="location.cleaned" defaultvalue="@{location}"
input="@{location}" regexp="../../"
replace="/home/hudson/static_build_env/jbds/builds/staging/" />
+ <if>
+ <not>
+ <available file="${location.cleaned}" />
+ </not>
+ <then>
+ <propertyregex override="true"
property="location.cleaned" defaultvalue="@{location}"
input="@{location}" regexp="../../"
replace="http://download.jboss.org/jbosstools/builds/staging/" />
+ </then>
+ </if>
</then>
+
<else>
<propertyregex override="true"
property="location.cleaned" defaultvalue="@{location}"
input="@{location}" regexp="../../"
replace="http://download.jboss.org/jbosstools/builds/staging/" />
</else>