From 797cd6a1e86e43d30b8065287cf416e6f4fdf8c1 Mon Sep 17 00:00:00 2001
From: Jean-Noel Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Mon, 02 Dec 2013 09:58:41 +0000
Subject: [PATCH] build.xml: In "prepare-release" target, implemented the check on the URL used for buildings documentation.
---
opendj-sdk/opends/build.xml | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/opendj-sdk/opends/build.xml b/opendj-sdk/opends/build.xml
index 31595e8..5d999b9 100644
--- a/opendj-sdk/opends/build.xml
+++ b/opendj-sdk/opends/build.xml
@@ -256,7 +256,7 @@
description="Perform all processing needed for weekly builds.">
</target>
- <target name="prepare-release" depends="check-no-snapshot-dependencies"
+ <target name="prepare-release" depends="check-no-snapshot-dependencies,check-documentations-built-with-correct-url"
description="Performs all the checks to prepare a release.">
<echo>
Previous checks succeeded.
@@ -265,10 +265,16 @@
1- Check the archive has no build number
2- Check the archive contains the license
3- Run the tests
-4- Check that documentation refers to forgerock.com instead of forgerock.org
</echo>
</target>
+ <target name="check-documentations-built-with-correct-url">
+ <fail message="The documentation must be built with the correct URL. Incorrectly found 'opendj.forgerock.org' inside PRODUCT file.">
+ <condition>
+ <resourcecontains resource="PRODUCT" substring="opendj.forgerock.org" />
+ </condition>
+ </fail>
+ </target>
<!-- The build target that should be used to build everything. -->
--
Gitblit v1.10.0