Fix: build fails if any source URL doesn't contain '/MCL/'
authorDario Sestito <darios@symbian.org>
Tue, 25 May 2010 13:36:39 +0100
changeset 1044 0f6ffc604b5c
parent 1043 2c948b30191c
child 1045 d822afc3c044
Fix: build fails if any source URL doesn't contain '/MCL/'
common/templates/source-spec.ant.xml.ftl
--- a/common/templates/source-spec.ant.xml.ftl	Mon May 24 18:06:58 2010 +0100
+++ b/common/templates/source-spec.ant.xml.ftl	Tue May 25 13:36:39 2010 +0100
@@ -23,7 +23,7 @@
     		<not><equals arg1="${ant['sf.spec.sources.revision']}" arg2="" trim="true"/></not>
     		<then>
     			<property name="sources.${count}.revision" value="${ant['sf.spec.sources.revision']}"/>
-    			<propertyregex property="sources.${count}.URL" input="${pkg_detail.source}" regexp="/MCL/" casesensitive="false" replace="/FCL/"/>
+    			<propertyregex property="sources.${count}.URL" input="${pkg_detail.source}" regexp="/MCL/" casesensitive="false" replace="/FCL/" defaultValue="${pkg_detail.source}"/>
     		</then>
     		<else>
     			<property name="sources.${count}.revision" value="${pkg_detail.pattern}"/>