blob: ca87ef7c8e9f53c92d3e51f733515d8ec3b72fde [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<project
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>org.eclipse.dltk.core</groupId>
<artifactId>site</artifactId>
<version>1.0.0-SNAPSHOT</version>
<parent>
<artifactId>dltk.sites</artifactId>
<version>1.0.0-SNAPSHOT</version>
<groupId>org.eclipse.dltk</groupId>
</parent>
<packaging>pom</packaging>
<properties>
<buildLabel>I-</buildLabel>
<buildBranch>R5.7</buildBranch>
<buildTypeId>Integration</buildTypeId>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.5</version>
<executions>
<execution>
<id>copy-resources</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/site/</outputDirectory>
<resources>
<resource>
<directory>static</directory>
</resource>
</resources>
</configuration>
</execution>
<execution>
<id>copy-resources2</id>
<phase>validate</phase>
<goals>
<goal>copy-resources</goal>
</goals>
<configuration>
<outputDirectory>${basedir}/target/site/reports/</outputDirectory>
<resources>
<resource>
<directory>../../../</directory>
<includes>
<include>**/surefire-reports/*.xml</include>
</includes>
</resource>
</resources>
</configuration>
</execution>
</executions>
</plugin>
<!-- Update template files -->
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<tasks>
<property
file="${basedir}/dependencies.properties" />
<property name="indexFileName" value="index.php" />
<property name="resultingIndex"
value="${basedir}/target/site/${indexFileName}" />
<copy overwrite="true" file="${basedir}/template/index.php.template"
tofile="${resultingIndex}" />
<!-- Rename archives to timestamp format -->
<tstamp>
<format property="TODAY" pattern="MMM d, yyyy" />
</tstamp>
<tstamp>
<format property="buildId" pattern="yyyyMMddhhmm" />
</tstamp>
<copy overwrite="true"
file="${basedir}/../runtime.sites/all/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/all/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/core/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-core-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/core/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-core-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/sh/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-sh-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/sh/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-sh-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/core.index/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-core-index-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/core.index/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-core-index-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/tcl/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-tcl-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/tcl/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-tcl-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/itcl/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-itcl-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/itcl/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-itcl-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/ruby/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-ruby-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/ruby/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-ruby-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/xotcl/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-xotcl-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/xotcl/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-xotcl-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/mylyn/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-mylyn-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/mylyn/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-mylyn-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/javascript/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-javascript-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/javascript/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-javascript-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/rse/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-rse-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/rse/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-rse-sdk-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../runtime.sites/python/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-python-${buildLabel}${buildId}.zip" />
<copy overwrite="true"
file="${basedir}/../source.sites/python/target/site_assembly.zip"
tofile="${basedir}/target/site/dltk-python-sdk-${buildLabel}${buildId}.zip" />
<replace file="${resultingIndex}" token="@date@" value="${TODAY}" />
<replace file="${resultingIndex}" token="@type@" value="${buildTypeId}" />
<replace file="${resultingIndex}" token="@build@"
value="${buildLabel}${buildId}" />
<replace file="${resultingIndex}" token="@buildBranch@"
value="${buildBranch}" />
<!-- eclipse -->
<replace file="${resultingIndex}" token="@eclipseFile@"
value="${eclipse.file.linux-gtk-x86}" />
<replace file="${resultingIndex}" token="@eclipseURL@"
value="${eclipse.url}/${eclipse.file.linux-gtk-x86}" />
<replace file="${resultingIndex}" token="@eclipseBuildURL@"
value="${eclipse.url}" />
<!-- RSE -->
<replace file="${resultingIndex}" token="@rseFile@"
value="${rse.file}" />
<replace file="${resultingIndex}" token="@rseURL@"
value="${rse.url}/${rse.file}" />
<!-- EMF -->
<replace file="${resultingIndex}" token="@emfFile@"
value="${emf.file}" />
<replace file="${resultingIndex}" token="@emfURL@"
value="${emf.url}/${emf.file}" />
<!-- Mylyn -->
<replace file="${resultingIndex}" token="@mylynFile@"
value="${mylyn.file}" />
<replace file="${resultingIndex}" token="@mylynURL@"
value="${mylyn.url}/${mylyn.file}" />
<!--DERBY -->
<replace file="${resultingIndex}" token="@derbyFile@"
value="${derby.file}" />
<replace file="${resultingIndex}" token="@derbyURL@"
value="${derby.url}/${derby.file}" />
<!-- ANTLR Runtime from Orbit -->
<replace file="${resultingIndex}" token="@antlrFile@"
value="${antlr.file}" />
<replace file="${resultingIndex}" token="@antlrURL@"
value="${antlr.url}/${antlr.file}" />
<!-- JDT -->
<replace file="${resultingIndex}" token="@eclipseJDT_File@"
value="${eclipseJDT.file}" />
<replace file="${resultingIndex}" token="@eclipseJDT_URL@"
value="${eclipseJDT.url}/${eclipseJDT.file}" />
<!-- H2 -->
<replace file="${resultingIndex}" token="@h2File@"
value="${h2.file}" />
<replace file="${resultingIndex}" token="@h2URL@"
value="${h2.url}/${h2.file}" />
<junitreport todir="target/site/reports">
<fileset dir="target/site/reports">
<include name="**/*.xml" />
</fileset>
<report format="noframes" todir="target/site/reports" />
</junitreport>
<mkdir dir="target/tozip" />
<mkdir dir="target/tozip/${buildLabel}${buildId}-${buildId}" />
<copy todir="target/tozip/${buildLabel}${buildId}-${buildId}">
<fileset dir="target/site" />
</copy>
<zip destfile="target/dltk-site-${buildLabel}${buildId}-${buildId}.zip"
basedir="target/tozip" />
<delete dir="target/tozip" failonerror="false" />
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>ant-contrib</groupId>
<artifactId>ant-contrib</artifactId>
<version>1.0b3</version>
<exclusions>
<exclusion>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-nodeps</artifactId>
<version>1.6.5</version>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-junit</artifactId>
<version>1.6.5</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>