From cb79a0ea0c846aa3e309640b47cdea154c2daf5f Mon Sep 17 00:00:00 2001 From: ltheussl Date: Tue, 13 Sep 2005 04:31:58 +0000 Subject: [PATCH] Make cover header- and footer-height configurable git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@280493 13f79535-47bb-0310-9956-ffa450edef68 --- pdf/plugin.jelly | 6 ++++++ pdf/plugin.properties | 4 +++- pdf/src/plugin-resources/fo-cover.xslt | 4 ++-- pdf/src/plugin-resources/project2fo.xslt | 2 ++ pdf/xdocs/changes.xml | 1 + pdf/xdocs/properties.xml | 14 +++++++++++++- 6 files changed, 27 insertions(+), 4 deletions(-) diff --git a/pdf/plugin.jelly b/pdf/plugin.jelly index ea8f23e8..b65cb18b 100644 --- a/pdf/plugin.jelly +++ b/pdf/plugin.jelly @@ -180,6 +180,12 @@ maven_version = [${maven_version}] + + + + + + diff --git a/pdf/plugin.properties b/pdf/plugin.properties index 1d2944ae..46750481 100644 --- a/pdf/plugin.properties +++ b/pdf/plugin.properties @@ -33,6 +33,8 @@ maven.pdf.cover.projectName=${pom.name} maven.pdf.cover.type=Project Documentation maven.pdf.cover.version=${pom.currentVersion} #maven.pdf.cover.date=Not defined by default +maven.pdf.cover.headerHeight=0.5 +maven.pdf.cover.footerHeight=0.3 maven.pdf.projectLogo=${pom.logo} maven.pdf.companyLogo=${pom.organization.logo} @@ -41,4 +43,4 @@ maven.pdf.companyLogo=${pom.organization.logo} # Not defined by default #maven.jar.jimi=${maven.repo.local}/jimi/jars/jimi-X.Y.Z.jar #maven.jar.jaicore=${maven.repo.local}/jai/jars/jai_core-X.Y.Z.jar -#maven.jar.jaicodec=${maven.repo.local}/jai/jars/jai_codec-X.Y.Z.jar \ No newline at end of file +#maven.jar.jaicodec=${maven.repo.local}/jai/jars/jai_codec-X.Y.Z.jar diff --git a/pdf/src/plugin-resources/fo-cover.xslt b/pdf/src/plugin-resources/fo-cover.xslt index edd2a861..b310fee4 100644 --- a/pdf/src/plugin-resources/fo-cover.xslt +++ b/pdf/src/plugin-resources/fo-cover.xslt @@ -21,8 +21,8 @@ - 0.5 - 0.3 + + 0.014 diff --git a/pdf/src/plugin-resources/project2fo.xslt b/pdf/src/plugin-resources/project2fo.xslt index 542d4f3d..b52df965 100644 --- a/pdf/src/plugin-resources/project2fo.xslt +++ b/pdf/src/plugin-resources/project2fo.xslt @@ -38,6 +38,8 @@ Project Documentation 1.0 January 1, 1901 + 0.5 + 0.3 false abcdefghijklmnopqrstuvwxyz diff --git a/pdf/xdocs/changes.xml b/pdf/xdocs/changes.xml index 08be3ca5..0034b3a5 100644 --- a/pdf/xdocs/changes.xml +++ b/pdf/xdocs/changes.xml @@ -25,6 +25,7 @@ + Make cover header- and footer-height configurable. Use optional id tag for sub/section anchors to avoid problems with identical names. diff --git a/pdf/xdocs/properties.xml b/pdf/xdocs/properties.xml index d3e73c4c..217fbc75 100644 --- a/pdf/xdocs/properties.xml +++ b/pdf/xdocs/properties.xml @@ -150,12 +150,24 @@ maven.pdf.cover.date - Defaults to current day. + The date printed on the cover. Yes Empty. The build date is used. + + maven.pdf.cover.headerHeight + The height of the cover header. + Yes + Defaults to 0.5in. + + + maven.pdf.cover.footerHeight + The height of the cover footer. + Yes + Defaults to 0.3in. +