Migrated reference docs to maven
This commit is contained in:
parent
ef3cefee53
commit
6c90b9bd4f
24
maven.xml
24
maven.xml
|
@ -1,6 +1,7 @@
|
|||
<project
|
||||
xmlns:j="jelly:core"
|
||||
xmlns:ant="jelly:ant"
|
||||
xmlns:util="jelly:util"
|
||||
xmlns:maven="jelly:maven"
|
||||
>
|
||||
|
||||
|
@ -167,4 +168,27 @@
|
|||
tofile="${maven.build.dir}/docs/ref/acegi-security-reference.html"/>
|
||||
</goal>
|
||||
|
||||
<postGoal name="sdocbook:prepare-filesystem">
|
||||
<j:set var="unzipped" value="false" />
|
||||
<util:available file="${maven.sdocbook.generated.fo}">
|
||||
<j:set var="unzipped" value="true" />
|
||||
<echo>Using previusly unzipped docbook files</echo>
|
||||
</util:available>
|
||||
<j:if test="${!unzipped}">
|
||||
<!-- unzip docbook files -->
|
||||
<ant:unzip dest="${maven.build.dir}"
|
||||
src="${pom.getDependencyPath('docbook:docbook-xsl')}"/>
|
||||
|
||||
<!-- use a custom stylesheet -->
|
||||
<move file="${maven.sdocbook.stylesheets.dir}/fo/docbook.xsl"
|
||||
tofile="${maven.sdocbook.stylesheets.dir}/fo/docbook-bak.xsl"/>
|
||||
<copy file="${maven.sdocbook.src.dir}/styles/fo/docbook.xsl"
|
||||
todir="${maven.sdocbook.stylesheets.dir}/fo"/>
|
||||
<copy todir="${maven.sdocbook.stylesheets.dir}">
|
||||
<fileset dir="${maven.sdocbook.src.dir}/images"/>
|
||||
</copy>
|
||||
</j:if>
|
||||
|
||||
</postGoal>
|
||||
|
||||
</project>
|
||||
|
|
|
@ -113,6 +113,13 @@ maven.multiproject.basedir=.
|
|||
maven.multiproject.includes=core/project.xml,adapters/*/project.xml
|
||||
|
||||
|
||||
# sdocbook
|
||||
#maven.sdocbook.fo.params=-PARAM paper.type A4 -PARAM use.extensions 1 -PARAM tablecolumns.extension 0 -PARAM callout.extensions 1 -PARAM fop.extensions=1
|
||||
#maven.sdocbook.fo.params=draft.mode=no
|
||||
maven.sdocbook.src.dir=${basedir}/docbook
|
||||
maven.sdocbook.resources.include=**/*.gif,**/*.svg,**/*.jpg
|
||||
maven.sdocbook.stylesheets.dir=${maven.build.dir}/docbook-xsl-1.66.1
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
# Commons Attributes
|
||||
#------------------------------------------------------------------------
|
||||
|
|
15
project.xml
15
project.xml
|
@ -241,6 +241,21 @@
|
|||
<version>2.5</version>
|
||||
<type>plugin</type>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>maven-plugins</groupId>
|
||||
<artifactId>maven-sdockbook-plugin</artifactId>
|
||||
<version>1.4-SNAPSHOT</version>
|
||||
<type>plugin</type>
|
||||
</dependency>
|
||||
|
||||
<!-- docbook -->
|
||||
<dependency>
|
||||
<groupId>docbook</groupId>
|
||||
<artifactId>docbook-xsl</artifactId>
|
||||
<version>1.66.1</version>
|
||||
<url>http://docbook.sourceforge.net</url>
|
||||
<type>zip</type>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<build>
|
||||
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
|
||||
|
|
Loading…
Reference in New Issue