Author: tchemit Date: 2010-01-17 14:55:02 +0100 (Sun, 17 Jan 2010) New Revision: 770 Modified: trunk/mavenpom4labs/pom.xml Log: conditional copy of changelog.txt to src/site/rst/changelog only if siteSourcesType is rst Modified: trunk/mavenpom4labs/pom.xml =================================================================== --- trunk/mavenpom4labs/pom.xml 2010-01-17 13:02:16 UTC (rev 769) +++ trunk/mavenpom4labs/pom.xml 2010-01-17 13:55:02 UTC (rev 770) @@ -1,5 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> @@ -88,10 +89,11 @@ <properties> - <labs.id /> + <labs.id/> <labs.list.host>lists.${platform}</labs.list.host> + <!--<copyChangeLog>true</copyChangeLog>--> <!--<platform>labs.libre-entreprise.org</platform>--> </properties> @@ -159,6 +161,7 @@ <properties> <platform>nuiton.org</platform> + <!--<copyChangeLog>false</copyChangeLog>--> </properties> </profile> @@ -202,17 +205,33 @@ <plugin> <artifactId>maven-antrun-plugin</artifactId> + <!-- TC-20100117 : 1.3 does not works here --> + <version>1.2</version> <executions> <!-- on recopie le changelog.txt vers le site pour faire la release note --> <execution> - <id>changeLogToSite</id> + <id>copy changeLog to site</id> <phase>pre-site</phase> <configuration> <tasks> - <copy verbose="${maven.verbose}" failonerror="false" overwrite="false" file="changelog.txt" tofile="src/site/rst/changelog.rst"> + <!-- adds the ant-contrib tasks (if/then/else used below) --> + <taskdef resource="net/sf/antcontrib/antcontrib.properties"/> + <if> + <equals arg1="${siteSourcesType}" arg2="rst"/> + <then> + <echo message="Copy changelog.txt to src/site/rst/changelog.rst"/> + <copy verbose="${maven.verbose}" + failonerror="false" + overwrite="false" + file="changelog.txt" + tofile="src/site/rst/changelog.rst"/> + </then> + <else> + <echo message="Skip Copy changelog.txt to src/site/rst/changelog.rst (apt documentation)"/> - </copy> + </else> + </if> </tasks> </configuration> <goals> @@ -220,6 +239,13 @@ </goals> </execution> </executions> + <dependencies> + <dependency> + <groupId>ant-contrib</groupId> + <artifactId>ant-contrib</artifactId> + <version>1.0b3</version> + </dependency> + </dependencies> </plugin> </plugins> </build> @@ -260,7 +286,6 @@ <value>true</value> </property> </activation> - </profile>
participants (1)
-
tchemit@users.nuiton.org