From a421351e579bfbb2de2dac02337938338b716047 Mon Sep 17 00:00:00 2001
From: Mark Craig <mark.craig@forgerock.com>
Date: Wed, 21 Dec 2011 17:19:17 +0000
Subject: [PATCH] Clean up an interesting mess I didn't realize I had made.
---
opendj3/pom.xml | 200 +++++++++++++++++++++++++-------------------------
1 files changed, 100 insertions(+), 100 deletions(-)
diff --git a/opendj3/pom.xml b/opendj3/pom.xml
index 478eff9..7b100f1 100644
--- a/opendj3/pom.xml
+++ b/opendj3/pom.xml
@@ -365,6 +365,105 @@
</configuration>
</execution>
<execution>
+ <id>chunked-html</id>
+ <phase>pre-site</phase>
+ <goals>
+ <goal>generate-html</goal>
+ </goals>
+ <configuration>
+ <!-- <targetDatabaseDocument>${basedir}/src/main/docbkx/olinkdb.xml</targetDatabaseDocument> -->
+ <chunkedOutput>true</chunkedOutput>
+ <htmlCustomization>${dbstyle-dir}/html/chunked.xsl</htmlCustomization>
+
+ <preProcess>
+ <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide/images'>
+ <fileset dir='${docbkx-src}/admin-guide/images' />
+ </copy>
+ <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide'>
+ <fileset dir='${basedir}/src/main/resources' />
+ </copy>
+ <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide/images'>
+ <fileset dir='${docbkx-src}/dev-guide/images' />
+ </copy>
+ <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide'>
+ <fileset dir='${basedir}/src/main/resources' />
+ </copy>
+ <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide/images'>
+ <fileset dir='${docbkx-src}/install-guide/images' />
+ </copy>
+ <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide'>
+ <fileset dir='${basedir}/src/main/resources' />
+ </copy>
+ <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes/images'>
+ <fileset dir='${docbkx-src}/release-notes/images' />
+ </copy>
+ <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes'>
+ <fileset dir='${basedir}/src/main/resources' />
+ </copy>
+ </preProcess>
+
+ <postProcess>
+ <copy file='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide/target/docbkx/html/legalnotice.html'
+ todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide' />
+ <copy file='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide/target/docbkx/html/legalnotice.html'
+ todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide' />
+ <copy file='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide/target/docbkx/html/legalnotice.html'
+ todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide' />
+ <copy file='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes/target/docbkx/html/legalnotice.html'
+ todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes' />
+ <replace
+ dir="${basedir}/target/docbkx/html/"
+ token="target/docbkx/html/legalnotice.html"
+ value="legalnotice.html">
+ <include name="**/**/**/*.html" />
+ </replace>
+ <replace
+ dir="${basedir}/target/docbkx/html/"
+ token="</head>">
+ <include name="**/**/**/*.html" />
+ <replacevalue>
+<script src="http://code.jquery.com/jquery-latest.min.js"></script>
+<script>
+// On double-click, reformat <pre class="screen"> for easy copying.
+$(document).ready(function() {
+ $(".screen").attr("title", "Double-click [-] to flatten lines.");
+ $(".screen").prepend('<img src="../images/minus.png" class="toggle">');
+});
+$(".screen").live("dblclick", function() {
+ $(this).replaceWith(
+ "<pre class=\"flat\" title=\"Double-click [+] to wrap long lines.\">" +
+ $(this).html().replace(/minus\.png/,"plus.png").replace(/\n /g," ") + "\n<!--" + $(this).html() + "-->" +
+ "</pre>");
+});
+$(".flat").live("dblclick", function() {
+ $(this).replaceWith(
+ "<pre class=\"screen\" title=\"Double-click [-] to flatten lines.\">" +
+ $(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"").replace(/plus\.png/,"minus.png") +
+ "</pre>");
+});
+</script>
+<link rel="shortcut icon" href="http://forgerock.org/favicon.ico">
+</head ></replacevalue>
+ </replace>
+ <replace
+ dir="${basedir}/target/docbkx/html/"
+ token="</body>">
+ <include name="**/**/**/*.html" />
+ <replacevalue><script type="text/javascript">
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-23412190-2']);
+ _gaq.push(['_trackPageview']);
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+</script></body ></replacevalue>
+ </replace>
+ </postProcess>
+ </configuration>
+ </execution>
+ <execution>
<id>doc-single-html</id>
<phase>pre-site</phase>
<goals>
@@ -424,7 +523,7 @@
// On double-click, reformat <pre class="screen"> for easy copying.
$(document).ready(function() {
$(".screen").attr("title", "Double-click [-] to flatten lines.");
- $(".screen").prepend('<img src="../images/minus.png" class="toggle">');
+ $(".screen").prepend('<img src="./images/minus.png" class="toggle">');
});
$(".screen").live("dblclick", function() {
$(this).replaceWith(
@@ -445,105 +544,6 @@
</postProcess>
</configuration>
</execution>
- <execution>
- <id>chunked-html</id>
- <phase>pre-site</phase>
- <goals>
- <goal>generate-html</goal>
- </goals>
- <configuration>
- <!-- <targetDatabaseDocument>${basedir}/src/main/docbkx/olinkdb.xml</targetDatabaseDocument> -->
- <chunkedOutput>true</chunkedOutput>
- <htmlCustomization>${dbstyle-dir}/html/chunked.xsl</htmlCustomization>
-
- <preProcess>
- <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide/images'>
- <fileset dir='${docbkx-src}/admin-guide/images' />
- </copy>
- <copy todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide'>
- <fileset dir='${basedir}/src/main/resources' />
- </copy>
- <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide/images'>
- <fileset dir='${docbkx-src}/dev-guide/images' />
- </copy>
- <copy todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide'>
- <fileset dir='${basedir}/src/main/resources' />
- </copy>
- <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide/images'>
- <fileset dir='${docbkx-src}/install-guide/images' />
- </copy>
- <copy todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide'>
- <fileset dir='${basedir}/src/main/resources' />
- </copy>
- <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes/images'>
- <fileset dir='${docbkx-src}/release-notes/images' />
- </copy>
- <copy todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes'>
- <fileset dir='${basedir}/src/main/resources' />
- </copy>
- </preProcess>
-
- <postProcess>
- <copy file='${legalnotice}'
- todir='${docbkx-out}/html/admin-guide/OpenDJ-Admin-Guide' />
- <copy file='${legalnotice}'
- todir='${docbkx-out}/html/dev-guide/OpenDJ-Dev-Guide' />
- <copy file='${legalnotice}'
- todir='${docbkx-out}/html/install-guide/OpenDJ-Install-Guide' />
- <copy file='${legalnotice}'
- todir='${docbkx-out}/html/release-notes/OpenDJ-Release-Notes' />
- <replace
- dir="${basedir}/target/docbkx/html/"
- token="target/docbkx/html/legalnotice.html"
- value="legalnotice.html">
- <include name="**/**/**/*.html" />
- </replace>
- <replace
- dir="${basedir}/target/docbkx/html/"
- token="</head>">
- <include name="**/**/**/*.html" />
- <replacevalue>
-<script src="http://code.jquery.com/jquery-latest.min.js"></script>
-<script>
-// On double-click, reformat <pre class="screen"> for easy copying.
-$(document).ready(function() {
- $(".screen").attr("title", "Double-click [-] to flatten lines.");
- $(".screen").prepend('<img src="../images/minus.png" class="toggle">');
-});
-$(".screen").live("dblclick", function() {
- $(this).replaceWith(
- "<pre class=\"flat\" title=\"Double-click [+] to wrap long lines.\">" +
- $(this).html().replace(/minus\.png/,"plus.png").replace(/\n /g," ") + "\n<!--" + $(this).html() + "-->" +
- "</pre>");
-});
-$(".flat").live("dblclick", function() {
- $(this).replaceWith(
- "<pre class=\"screen\" title=\"Double-click [-] to flatten lines.\">" +
- $(this).html().replace(/(.|\n)+<!\-\-/m,"").replace(/\-\-\>/,"").replace(/plus\.png/,"minus.png") +
- "</pre>");
-});
-</script>
-<link rel="shortcut icon" href="http://forgerock.org/favicon.ico">
-</head></replacevalue>
- </replace>
- <replace
- dir="${basedir}/target/docbkx/html/"
- token="</body>">
- <include name="**/**/**/*.html" />
- <replacevalue><script type="text/javascript">
- var _gaq = _gaq || [];
- _gaq.push(['_setAccount', 'UA-23412190-2']);
- _gaq.push(['_trackPageview']);
- (function() {
- var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
- ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
- var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
- })();
-</script></body></replacevalue>
- </replace>
- </postProcess>
- </configuration>
- </execution>
</executions>
<dependencies>
<dependency>
--
Gitblit v1.10.0