Skip to content
Permalink
Browse files
Add property commons.dist.subdir.
  • Loading branch information
garydgregory committed Apr 3, 2022
1 parent 9d64716 commit 848b1b4f14ada05175a7ad9c5bb35f797c807aec
Showing 5 changed files with 51 additions and 14 deletions.
@@ -26,6 +26,11 @@

<body>
<release version="1.13" date="20YY-MM-DD" description="Feature release">
<!-- ADD -->
<action dev="ggregory" type="update" due-to="Dependabot">
Add property commons.dist.subdir.
</action>
<!-- UPDATE -->
<action dev="ggregory" type="update" due-to="Dependabot">
Bump maven-antrun-plugin from 1.8 to 3.0.0, #18.
</action>
@@ -2,28 +2,28 @@
<subsection name="Binaries">
<table>
<tr>
<td><a href="[preferred]/commons/@ID@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.tar.gz">@FINAL_NAME@@BINARY-SUFFIX@.tar.gz</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.tar.gz.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.tar.gz.asc">pgp</a></td>
<td><a href="[preferred]/commons/@DISTDIR@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.tar.gz">@FINAL_NAME@@BINARY-SUFFIX@.tar.gz</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.tar.gz.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.tar.gz.asc">pgp</a></td>
</tr>
<tr>
<td><a href="[preferred]/commons/@ID@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.zip">@FINAL_NAME@@BINARY-SUFFIX@.zip</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.zip.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.zip.asc">pgp</a></td>
<td><a href="[preferred]/commons/@DISTDIR@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.zip">@FINAL_NAME@@BINARY-SUFFIX@.zip</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.zip.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@BINDIR@/@FINAL_NAME@@BINARY-SUFFIX@.zip.asc">pgp</a></td>
</tr>
</table>
</subsection>
<subsection name="Source">
<table>
<tr>
<td><a href="[preferred]/commons/@ID@/@SRCDIR@/@FINAL_NAME@-src.tar.gz">@FINAL_NAME@-src.tar.gz</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@SRCDIR@/@FINAL_NAME@-src.tar.gz.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@SRCDIR@/@FINAL_NAME@-src.tar.gz.asc">pgp</a></td>
<td><a href="[preferred]/commons/@DISTDIR@/@SRCDIR@/@FINAL_NAME@-src.tar.gz">@FINAL_NAME@-src.tar.gz</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@SRCDIR@/@FINAL_NAME@-src.tar.gz.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@SRCDIR@/@FINAL_NAME@-src.tar.gz.asc">pgp</a></td>
</tr>
<tr>
<td><a href="[preferred]/commons/@ID@/@SRCDIR@/@FINAL_NAME@-src.zip">@FINAL_NAME@-src.zip</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@SRCDIR@/@FINAL_NAME@-src.zip.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@ID@/@SRCDIR@/@FINAL_NAME@-src.zip.asc">pgp</a></td>
<td><a href="[preferred]/commons/@DISTDIR@/@SRCDIR@/@FINAL_NAME@-src.zip">@FINAL_NAME@-src.zip</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@SRCDIR@/@FINAL_NAME@-src.zip.@HASHLC@">@HASHLC@</a></td>
<td><a href="https://www.apache.org/dist/commons/@DISTDIR@/@SRCDIR@/@FINAL_NAME@-src.zip.asc">pgp</a></td>
</tr>
</table>
</subsection>
@@ -3,8 +3,8 @@
Older releases can be obtained from the archives.
</p>
<ul>
<li class="download"><a href="[preferred]/commons/@ID@/">browse download area</a></li>
<li><a href="https://archive.apache.org/dist/commons/@ID@/">archives...</a></li>
<li class="download"><a href="[preferred]/commons/@DISTDIR@/">browse download area</a></li>
<li><a href="https://archive.apache.org/dist/commons/@DISTDIR@/">archives...</a></li>
</ul>
</section>
</body>
@@ -155,6 +155,7 @@
<echo level="${level}" message="----- commons-build:download-page - Parameters - START -----" />
<echo level="${level}" message="project.name : ${project.name}" />
<echo level="${level}" message="commons.componentid : ${commons.componentid}" />
<echo level="${level}" message="commons.dist.subdir : ${commons.dist.subdir}" />
<!-- Current release -->
<echo level="${level}" message="commons.release.version : ${commons.release.version}" />
<echo level="${level}" message="commons.release.name : ${commons.release.name}" />
@@ -233,6 +234,9 @@
<echo level="info" message="*** loading download-page body(1) file***" />

<!-- Set up the defaults -->
<condition property="DISTDIR" value="${commons.dist.subdir}" else="${commons.componentid}">
<isset property="commons.dist.subdir" />
</condition>
<condition property="BINDIR" value="${commons.release.subdir}" else="binaries">
<isset property="commons.release.subdir" />
</condition>
@@ -255,6 +259,7 @@
<token key="ID" value="${commons.componentid}" />
<token key="FINAL_NAME" value="${commons.release.name}" />
<token key="BINARY-SUFFIX" value="${commons.binary.suffix}" />
<token key="DISTDIR" value="${DISTDIR}" />
<token key="BINDIR" value="${BINDIR}" />
<token key="SRCDIR" value="${SRCDIR}" />
<token key="HASHLC" value="${HASHLC}" />
@@ -269,6 +274,9 @@
<echo level="info" message="*** loading download-page body(2) file***" />

<!-- Set up the defaults -->
<condition property="DISTDIR" value="${commons.dist.subdir}" else="${commons.componentid}">
<isset property="commons.dist.subdir" />
</condition>
<condition property="BINDIR" value="${commons.release.2.subdir}" else="binaries">
<isset property="commons.release.2.subdir" />
</condition>
@@ -291,6 +299,7 @@
<token key="ID" value="${commons.componentid}" />
<token key="FINAL_NAME" value="${commons.release.2.name}" />
<token key="BINARY-SUFFIX" value="${commons.release.2.binary.suffix}" />
<token key="DISTDIR" value="${DISTDIR}" />
<token key="BINDIR" value="${BINDIR}" />
<token key="SRCDIR" value="${SRCDIR}" />
<token key="HASHLC" value="${HASHLC}" />
@@ -305,6 +314,9 @@
<echo level="info" message="*** loading download-page body(3) file***" />

<!-- Set up the defaults -->
<condition property="DISTDIR" value="${commons.dist.subdir}" else="${commons.componentid}">
<isset property="commons.dist.subdir" />
</condition>
<condition property="BINDIR" value="${commons.release.3.subdir}" else="binaries">
<isset property="commons.release.3.subdir" />
</condition>
@@ -327,6 +339,7 @@
<token key="ID" value="${commons.componentid}" />
<token key="FINAL_NAME" value="${commons.release.3.name}" />
<token key="BINARY-SUFFIX" value="${commons.release.3.binary.suffix}" />
<token key="DISTDIR" value="${DISTDIR}" />
<token key="BINDIR" value="${BINDIR}" />
<token key="SRCDIR" value="${SRCDIR}" />
<token key="HASHLC" value="${HASHLC}" />
@@ -341,6 +354,9 @@
<echo level="info" message="*** loading download-page body(4) file***" />

<!-- Set up the defaults -->
<condition property="DISTDIR" value="${commons.dist.subdir}" else="${commons.componentid}">
<isset property="commons.dist.subdir" />
</condition>
<condition property="BINDIR" value="${commons.release.4.subdir}" else="binaries">
<isset property="commons.release.4.subdir" />
</condition>
@@ -363,6 +379,7 @@
<token key="ID" value="${commons.componentid}" />
<token key="FINAL_NAME" value="${commons.release.4.name}" />
<token key="BINARY-SUFFIX" value="${commons.release.4.binary.suffix}" />
<token key="DISTDIR" value="${DISTDIR}" />
<token key="BINDIR" value="${BINDIR}" />
<token key="SRCDIR" value="${SRCDIR}" />
<token key="HASHLC" value="${HASHLC}" />
@@ -376,12 +393,18 @@
<target name="load-download-page-foot" if="commons.release.version">
<echo level="info" message="*** loading download-page footer files ***" />

<!-- Set up the defaults -->
<condition property="DISTDIR" value="${commons.dist.subdir}" else="${commons.componentid}">
<isset property="commons.dist.subdir" />
</condition>

<!-- Load Footer -->
<loadresource property="download-page-foot-xml">
<javaresource name="${commonsMojoXdocDir}/download-page-foot.xml" />
<filterchain>
<replacetokens>
<token key="ID" value="${commons.componentid}" />
<token key="DISTDIR" value="${DISTDIR}" />
</replacetokens>
</filterchain>
</loadresource>
@@ -91,6 +91,15 @@
<type>java.lang.String</type>
<description>The commons component id.</description>
</parameter>
<parameter>
<name>commons.dist.subdir</name>
<property>commons.dist.subdir</property>
<required>false</required>
<readonly>false</readonly>
<defaultValue>${commons.dist.subdir}</defaultValue>
<type>java.lang.String</type>
<description>The folder in commons for this component.</description>
</parameter>
<parameter>
<name>commons.jira.pid</name>
<property>commons.jira.pid</property>

0 comments on commit 848b1b4

Please sign in to comment.