Author: dkulp
Date: Thu May 17 23:57:12 2012
New Revision: 1339928
URL: http://svn.apache.org/viewvc?rev=1339928&view=rev
Log:
Only build the manual if certain profiles are active.
Modified:
camel/trunk/tooling/camel-manual/pom.xml
camel/trunk/tooling/pom.xml
Modified: camel/trunk/tooling/camel-manual/pom.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/tooling/camel-manual/pom.xml?rev=1339928&r1=1339927&r2=1339928&view=diff
==============================================================================
--- camel/trunk/tooling/camel-manual/pom.xml (original)
+++ camel/trunk/tooling/camel-manual/pom.xml Thu May 17 23:57:12 2012
@@ -32,75 +32,65 @@
<name>Camel :: Manual</name>
<description>The Camel Manual which generates a HTML and PDF representation
of the manual.</description>
- <profiles>
- <profile>
- <id>build.manual</id>
- <activation>
- <property>
- <name>!fastinstall</name>
- </property>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.camel</groupId>
- <artifactId>maven-html-to-pdf</artifactId>
- <version>${project.version}</version>
- <executions>
- <execution>
- <goals>
- <goal>compile</goal>
- </goals>
- <phase>compile</phase>
- </execution>
- </executions>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>maven-html-to-pdf</artifactId>
+ <version>${project.version}</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <phase>compile</phase>
+ </execution>
+ </executions>
+ <configuration>
+ <page>http://camel.apache.org/book-in-one-page.html</page>
+ <contentDivClass>wiki-content maincontent</contentDivClass>
+ <head><![CDATA[
+ <link href="file:${basedir}/src/styles/print.css"
rel="stylesheet" type="text/css" />
+ <style type="text/css">
+ @page :left {
+ @top-left {
+ content: "Apache Camel ${project.version} Developer's
Manual";
+ }
+ }
+ </style>
+ ]]></head>
+ <replaceToken><![CDATA[
+ <h3 id="replaceme">.*</h3>
+ ]]></replaceToken>
+ <replaceValue><![CDATA[
+ <h3>Version ${project.version}</h3>
+ ]]></replaceValue>
+
<transformerFactoryClassName>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</transformerFactoryClassName>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>attach-artifacts</id>
+ <phase>package</phase>
+ <goals>
+ <goal>attach-artifact</goal>
+ </goals>
<configuration>
- <page>http://camel.apache.org/book-in-one-page.html</page>
- <contentDivClass>wiki-content maincontent</contentDivClass>
- <head><![CDATA[
- <link href="file:${basedir}/src/styles/print.css"
rel="stylesheet" type="text/css" />
- <style type="text/css">
- @page :left {
- @top-left {
- content: "Apache Camel ${project.version} Developer's
Manual";
- }
- }
- </style>
- ]]></head>
- <replaceToken><![CDATA[
- <h3 id="replaceme">.*</h3>
- ]]></replaceToken>
- <replaceValue><![CDATA[
- <h3>Version ${project.version}</h3>
- ]]></replaceValue>
-
<transformerFactoryClassName>org.apache.xalan.xsltc.trax.TransformerFactoryImpl</transformerFactoryClassName>
+ <artifacts>
+ <!-- Don't need to attach PDF here because the html-to-pdf
plugin did that already -->
+ <artifact>
+
<file>${project.build.directory}/site/manual/camel-manual-${project.version}.html</file>
+ <type>html</type>
+ </artifact>
+ </artifacts>
</configuration>
- </plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>build-helper-maven-plugin</artifactId>
- <executions>
- <execution>
- <id>attach-artifacts</id>
- <phase>package</phase>
- <goals>
- <goal>attach-artifact</goal>
- </goals>
- <configuration>
- <artifacts>
- <!-- Don't need to attach PDF here because the html-to-pdf
plugin did that already -->
- <artifact>
-
<file>${project.build.directory}/site/manual/camel-manual-${project.version}.html</file>
- <type>html</type>
- </artifact>
- </artifacts>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
</project>
Modified: camel/trunk/tooling/pom.xml
URL:
http://svn.apache.org/viewvc/camel/trunk/tooling/pom.xml?rev=1339928&r1=1339927&r2=1339928&view=diff
==============================================================================
--- camel/trunk/tooling/pom.xml (original)
+++ camel/trunk/tooling/pom.xml Thu May 17 23:57:12 2012
@@ -34,7 +34,33 @@
<modules>
<module>maven</module>
<module>archetypes</module>
- <module>camel-manual</module>
</modules>
+ <profiles>
+ <profile>
+ <id>build.manual</id>
+ <modules>
+ <module>camel-manual</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>assembly</id>
+ <modules>
+ <module>camel-manual</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>deploy</id>
+ <modules>
+ <module>camel-manual</module>
+ </modules>
+ </profile>
+ <profile>
+ <id>apache-release</id>
+ <modules>
+ <module>camel-manual</module>
+ </modules>
+ </profile>
+ </profiles>
+
</project>