Vincent @ MPANNOUNCEMENT-11 wrote
Could you show a sample announcement using your own stylesheet. Maybe
> we could integrate those changes in the default one if it's generic > enough (and useful)?
Right now our only customization (besides the language) is showing the SCM tag, and only if the <versions> element is available on project.xml (otherwise we assume the project is not under version control). So the change on announcement.jcl would be:
From:
Have fun!
To:
<j:if test="${size(pom.versions)!=0}"> Or you can download the source code using the following SCM tag: <j:forEach var="version" items="${pom.versions}"> <j:if test="${version.id==versionVariable}"> <j:whitespace trim="false">${version.tag}</j:whitespace> </j:if> </j:forEach> </j:if> Have fun!
And on announcement:check-version:
<!-- if project is under version control, check if the current release has a tag --> <j:if test="${size(pom.versions)!=0}"> <j:set var="foundTag" value="false"/> <j:forEach var="version" items="${pom.versions}"> <j:if test="${version.id==versionVariable}"> <j:set var="found" value="true"/> </j:if> </j:forEach> <j:if test="${!found}"> <ant:fail>The release '${versionVariable}' does not have a SCM tag set at the POM.</ant:fail> </j:if> </j:if>
I'm positng this on the list instead of Jira because it is a different issue than the original request. But if you liked it, I could create a new Jira entry and patch.
Regards,
Felipe
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]