ItEr59S04ValidacionEProbasFuncionaisItEr58S04: Move user doc generation to its own profile.

This allows to avoid its execution so the build is faster. For example
do mvn clean install -P-userguide if you don't want the user guide to
be generated.
This commit is contained in:
Óscar González Fernández 2010-06-03 18:33:37 +02:00
parent 35c7566d9b
commit 0cbf984637

View file

@ -52,6 +52,87 @@
</plugins>
</build>
</profile>
<profile>
<id>userguide</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>user-doc-generation</id>
<goals>
<goal>run</goal>
</goals>
<phase>process-resources</phase>
<inherited>false</inherited>
<configuration>
<tasks>
<echo>Executing make html</echo>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/gl/"/>
<arg value="html"/>
</exec>
<copy todir="src/main/webapp/help/gl" failonerror="false">
<fileset dir="../doc/src/user/gl/html"/>
</copy>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/es/"/>
<arg value="html"/>
</exec>
<copy todir="src/main/webapp/help/es" failonerror="false">
<fileset dir="../doc/src/user/es/html"/>
</copy>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/en/"/>
<arg value="html"/>
</exec>
<copy todir="src/main/webapp/help/en" failonerror="false">
<fileset dir="../doc/src/user/en/html"/>
</copy>
</tasks>
</configuration>
</execution>
<execution>
<id>user-doc-clean</id>
<goals>
<goal>run</goal>
</goals>
<phase>clean</phase>
<inherited>false</inherited>
<configuration>
<tasks>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/gl/"/>
<arg value="clean"/>
</exec>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/es/"/>
<arg value="clean"/>
</exec>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/en/"/>
<arg value="clean"/>
</exec>
<delete dir="src/main/webapp/help" failonerror="false" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
<build>
@ -81,77 +162,6 @@
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<id>user-doc-generation</id>
<goals>
<goal>run</goal>
</goals>
<phase>process-resources</phase>
<inherited>false</inherited>
<configuration>
<tasks>
<echo>Executing make html</echo>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/gl/"/>
<arg value="html"/>
</exec>
<copy todir="src/main/webapp/help/gl" failonerror="false">
<fileset dir="../doc/src/user/gl/html"/>
</copy>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/es/"/>
<arg value="html"/>
</exec>
<copy todir="src/main/webapp/help/es" failonerror="false">
<fileset dir="../doc/src/user/es/html"/>
</copy>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/en/"/>
<arg value="html"/>
</exec>
<copy todir="src/main/webapp/help/en" failonerror="false">
<fileset dir="../doc/src/user/en/html"/>
</copy>
</tasks>
</configuration>
</execution>
<execution>
<id>user-doc-clean</id>
<goals>
<goal>run</goal>
</goals>
<phase>clean</phase>
<inherited>false</inherited>
<configuration>
<tasks>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/gl/"/>
<arg value="clean"/>
</exec>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/es/"/>
<arg value="clean"/>
</exec>
<exec executable="make" failifexecutionfails="false">
<arg value="-C"/>
<arg value="../doc/src/user/en/"/>
<arg value="clean"/>
</exec>
<delete dir="src/main/webapp/help" failonerror="false" />
</tasks>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>