Skip to content

Commit

Permalink
fix filter editing of downloads site page
Browse files Browse the repository at this point in the history
It was previously done in a pre-maven3 way.
The way it's done now is not nice, since it requires to write the
version number twice into the pom.xml file and update them by hand
in step.  There is probably a better way.
  • Loading branch information
mbtaylor committed Nov 13, 2014
1 parent 1d14359 commit 2f8fb08
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@
<builddocdir>${project.build.directory}/docs</builddocdir>
<maven.build.timestamp.format>yyyy/MM/dd HH:mm:ss</maven.build.timestamp.format>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<!-- Set this to the version number, must be updated by hand
! to match pom.currentVersion.
! It's used for filtering into site/xdoc/downloads.xml.vm.
! That filtering module apparently won't cope with embedded "."
! characters in the name, so I can't use pom.currentVersion.
! Even putting ${pom.currentVersion} in the line below doesn't work.
! There may be a less horrible way to do this. -->
<jsampVersion>1.3.5</jsampVersion>
</properties>

<distributionManagement>
Expand Down
13 changes: 5 additions & 8 deletions src/site/xdoc/downloads.xml → src/site/xdoc/downloads.xml.vm
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,15 @@
<section name="Downloads">

<dl>
<dt>Current Version ([SAMP-VERSION]):</dt>
<dt>Current Version (${jsampVersion}):</dt>

<dd><dl>
<dt>Unsigned jar file:</dt>
<dd><a href="jsamp-[SAMP-VERSION].jar"
>jsamp-[SAMP-VERSION].jar</a></dd>
<dd><a href="jsamp-${jsampVersion}.jar"
>jsamp-${jsampVersion}.jar</a></dd>
<dt>Signed jar file:</dt>
<dd><a href="jsamp-[SAMP-VERSION]_signed.jar"
>jsamp-[SAMP-VERSION]_signed.jar</a></dd>
<dt>Sources zip file:</dt>
<dd><a href="jsamp_src-[SAMP-VERSION].zip"
>jsamp_src-[SAMP-VERSION].zip</a></dd>
<dd><a href="jsamp-${jsampVersion}_signed.jar"
>jsamp-${jsampVersion}_signed.jar</a></dd>
</dl>
</dd>

Expand Down

0 comments on commit 2f8fb08

Please sign in to comment.