# HG changeset patch # User Simon Howkins # Date 1259585551 0 # Node ID 49167a0e38cf0101cbe91e4688fac27f53e3740e # Parent db3cbddc6f4a1b8473522f39973491cc3103e5c6 Small changes to make the output file more regular, and therefor easier to read and understand. diff -r db3cbddc6f4a -r 49167a0e38cf common/templates/source-spec.ant.xml.ftl --- a/common/templates/source-spec.ant.xml.ftl Mon Nov 16 16:27:32 2009 +0000 +++ b/common/templates/source-spec.ant.xml.ftl Mon Nov 30 12:52:31 2009 +0000 @@ -7,28 +7,17 @@ <#assign change_list = "" /> <#assign dollar = "$"/> <#assign count = 0 /> - -<#if ("${ant['sf.spec.sourcesync.archive']}")??> - <#if "${ant['sf.spec.sourcesync.archive']}" == "true"> - <#assign fast_sync = true /> - <#else> - <#assign fast_sync = false /> - +<#if ("${ant['sf.spec.sourcesync.archive']}")?? && "${ant['sf.spec.sourcesync.archive']}" == "true"> + <#assign fast_sync = true /> <#else> <#assign fast_sync = false /> - -<#if ("${ant['sf.spec.sourcesync.bug419']}")??> - <#if "${ant['sf.spec.sourcesync.bug419']}" == "true"> - <#assign bug419 = true /> - <#else> - <#assign bug419 = false /> - +<#if ("${ant['sf.spec.sourcesync.bug419']}")?? && "${ant['sf.spec.sourcesync.bug419']}" == "true"> + <#assign bug419 = true /> <#else> <#assign bug419 = false /> - @@ -36,9 +25,6 @@ <#list data as pkg_detail> - <#if (count > 0) > - <#assign fileset = "${fileset}" /> - @@ -106,7 +92,6 @@ - @@ -146,12 +131,11 @@ - <#assign fileset = "${fileset}" + "" /> - <#assign sync_list = "${sync_list}" + "\n\t\t"/> - <#assign bom_list = "${bom_list}" + "\n\t"/> - <#assign change_list = "${change_list}" + "\n\t"/> + <#assign fileset = "${fileset}" + "\r\n " /> + <#assign sync_list = "${sync_list}" + "\r\n "/> + <#assign bom_list = "${bom_list}" + "\r\n "/> + <#assign change_list = "${change_list}" + "\r\n "/> <#assign count = count + 1 /> - @@ -160,7 +144,6 @@ - ${sync_list} @@ -178,10 +161,10 @@ - - + + ${change_list} + -