From 9375ccbd3258bc8242b63877ec86ea174c7be25a Mon Sep 17 00:00:00 2001 From: Ash Clark Date: Fri, 7 Jun 2024 16:45:49 -0400 Subject: [PATCH] Separate `${toDir}` property into multiple properties. The directories for the static and proofing sites are now set in build-properties.xml. The paths to those directories, and to the base directory, are still set in build.xml, with ".path" added to the property name. So, references to `${toDir.static}` may now have been changed to `${toDir.static.path}`. I've tested generateIssues and generateSite, and they work as before. --- build-properties.xml | 26 ++++++- build.xml | 94 ++++++++++++++------------ common/xslt/generate_static_issues.xsl | 5 +- 3 files changed, 76 insertions(+), 49 deletions(-) diff --git a/build-properties.xml b/build-properties.xml index 32282da4e..84a555ca3 100644 --- a/build-properties.xml +++ b/build-properties.xml @@ -1,12 +1,32 @@ - - dhq-static + + + dhq + + + dhq-static + + + dhq + + + dhq-proofing + + @@ -17,11 +17,15 @@ - + - + + + + - + + - + - + - + the output file's directory, ${toDir.base}. --> + - + - + - - + @@ -146,16 +155,16 @@ is loaded when Ant starts up. Please run Ant again like this: - + - + @@ -163,25 +172,25 @@ is loaded when Ant starts up. Please run Ant again like this: - + the output file's directory, ${toDir.base}. --> + + the output file's directory, ${toDir.base}. --> @@ -189,29 +198,29 @@ is loaded when Ant starts up. Please run Ant again like this: - + the output file's directory, ${toDir.base}. --> + + dest="${toDir.base.path}" skipexisting="true"/> + dest="${toDir.base.path}" skipexisting="true"/> + dest="${toDir.base.path}" skipexisting="true"/> + dest="${toDir.base.path}" skipexisting="true"/> - + location="${toDir.base.path}${file.separator}xhtml1-strict.dtd"/> - + - @@ -245,27 +254,24 @@ is loaded when Ant starts up. Please run Ant again like this: - - - + + - - - + - - + + diff --git a/common/xslt/generate_static_issues.xsl b/common/xslt/generate_static_issues.xsl index 8ec472520..fe84d7e14 100644 --- a/common/xslt/generate_static_issues.xsl +++ b/common/xslt/generate_static_issues.xsl @@ -120,7 +120,7 @@ static directory. --> - ${toDir.static} + ${toDir.static.path} ${basedir}${file.separator}articles @@ -176,7 +176,8 @@ ${basedir} - ${toDir.static}${file.separator}data${file.separator}dhq-xml.zip + ${toDir.static.path}${file.separator}data${file.separator}dhq-xml.zip