Simplified site content and assembly generation
git-svn-id: https://svn.apache.org/repos/asf/httpcomponents/httpclient/trunk@1239226 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b6e69d03f9
commit
b1134f6533
34
pom.xml
34
pom.xml
|
@ -219,7 +219,18 @@
|
|||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>javadoc-aggregate</id>
|
||||
<goals>
|
||||
<goal>aggregate</goal>
|
||||
</goals>
|
||||
<phase>pre-site</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<!-- reduce console output. Can override with -Dquiet=false -->
|
||||
<quiet>true</quiet>
|
||||
<source>1.5</source>
|
||||
<links>
|
||||
<link>http://download.oracle.com/javase/1.5.0/docs/api/</link>
|
||||
|
@ -272,6 +283,16 @@
|
|||
<scope>runtime</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>tutorial-site</id>
|
||||
<goals>
|
||||
<goal>generate-html</goal>
|
||||
<goal>generate-pdf</goal>
|
||||
</goals>
|
||||
<phase>pre-site</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<includes>index.xml</includes>
|
||||
<chunkedOutput>true</chunkedOutput>
|
||||
|
@ -286,13 +307,14 @@
|
|||
</entity>
|
||||
</entities>
|
||||
<postProcess>
|
||||
<copy todir="target/site/tutorial">
|
||||
<fileset dir="target/docbkx">
|
||||
<copy todir="target/site/tutorial/html"
|
||||
failonerror="false">
|
||||
<fileset dir="target/docbkx/html/index">
|
||||
<include name="**/*.html" />
|
||||
<include name="**/*.pdf" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<copy todir="target/site/tutorial/html">
|
||||
<copy todir="target/site/tutorial/html"
|
||||
failonerror="false">
|
||||
<fileset dir="src/docbkx/resources">
|
||||
<include name="**/*.css" />
|
||||
<include name="**/*.png" />
|
||||
|
@ -300,7 +322,9 @@
|
|||
<include name="**/*.jpg" />
|
||||
</fileset>
|
||||
</copy>
|
||||
<move file="target/site/tutorial/pdf/index.pdf" tofile="target/site/tutorial/pdf/httpclient-tutorial.pdf" failonerror="false" />
|
||||
<copy file="target/docbkx/pdf/index.pdf"
|
||||
tofile="target/site/tutorial/pdf/httpclient-tutorial.pdf"
|
||||
failonerror="false"/>
|
||||
</postProcess>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
|
|
@ -69,18 +69,10 @@
|
|||
<directory>target/site/apidocs</directory>
|
||||
<outputDirectory>javadoc</outputDirectory>
|
||||
</fileSet>
|
||||
<!-- Tutorial (HTML) -->
|
||||
<!-- Tutorial -->
|
||||
<fileSet>
|
||||
<directory>target/docbkx/html</directory>
|
||||
<outputDirectory>tutorial/html</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>src/docbkx/resources/css</directory>
|
||||
<outputDirectory>tutorial/html/css</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>src/docbkx/resources/images</directory>
|
||||
<outputDirectory>tutorial/html/images</outputDirectory>
|
||||
<directory>target/site/tutorial</directory>
|
||||
<outputDirectory>tutorial</outputDirectory>
|
||||
</fileSet>
|
||||
<!-- Base module -->
|
||||
<fileSet>
|
||||
|
@ -99,12 +91,4 @@
|
|||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<files>
|
||||
<!-- Tutorial (PDF) -->
|
||||
<file>
|
||||
<source>target/docbkx/pdf/index.pdf</source>
|
||||
<outputDirectory>tutorial/pdf</outputDirectory>
|
||||
<destName>httpclient-tutorial.pdf</destName>
|
||||
</file>
|
||||
</files>
|
||||
</assembly>
|
||||
|
|
|
@ -56,18 +56,10 @@
|
|||
<directory>target/site/apidocs</directory>
|
||||
<outputDirectory>javadoc</outputDirectory>
|
||||
</fileSet>
|
||||
<!-- Tutorial (HTML) -->
|
||||
<!-- Tutorial -->
|
||||
<fileSet>
|
||||
<directory>target/docbkx/html</directory>
|
||||
<outputDirectory>tutorial/html</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>src/docbkx/resources/css</directory>
|
||||
<outputDirectory>tutorial/html/css</outputDirectory>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
<directory>src/docbkx/resources/images</directory>
|
||||
<outputDirectory>tutorial/html/images</outputDirectory>
|
||||
<directory>target/site/tutorial</directory>
|
||||
<outputDirectory>tutorial</outputDirectory>
|
||||
</fileSet>
|
||||
<!-- Base module -->
|
||||
<fileSet>
|
||||
|
@ -86,12 +78,4 @@
|
|||
</includes>
|
||||
</fileSet>
|
||||
</fileSets>
|
||||
<files>
|
||||
<!-- Tutorial (PDF) -->
|
||||
<file>
|
||||
<source>target/docbkx/pdf/index.pdf</source>
|
||||
<outputDirectory>tutorial/pdf</outputDirectory>
|
||||
<destName>httpclient-tutorial.pdf</destName>
|
||||
</file>
|
||||
</files>
|
||||
</assembly>
|
||||
|
|
Loading…
Reference in New Issue