Overridden gernate-layers, so that sysdef file is not filtered
authordario
Mon, 27 Apr 2009 19:05:47 +0100
changeset 172 e8a4b4b53247
parent 171 a6f2b8d175d0
child 175 8f01eb4a0326
Overridden gernate-layers, so that sysdef file is not filtered
common/build.xml
--- a/common/build.xml	Mon Apr 27 17:58:07 2009 +0100
+++ b/common/build.xml	Mon Apr 27 19:05:47 2009 +0100
@@ -293,6 +293,24 @@
         </data>
       </fmpp>
     </target>
+    
+  <target name="generate-layers">
+    <echo message="canno-file:${canonical.sysdef.file}"/>
+    <echo message="raptor-filters:raptor_${sysdef.configuration}"/>
+
+    <!-- All we want is a sysdef with the config name appended, so just copy it -->
+    <echo message="INFO: Skip GenXML and copy sysdef to sysdef+config name"/>
+    <copy file="${canonical.sysdef.file}" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
+
+    <copy file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml" tofile="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}.xml">
+      <filterchain>
+        <linecontainsregexp negate="true">
+          <regexp pattern="^\s*$"/>
+        </linecontainsregexp>
+      </filterchain>
+    </copy>
+    <delete file="${build.drive}/output/build/canonical_system_definition_${sysdef.configuration}_temp.xml"/>
+  </target>
 
 </project>