blob: e71feae4a2e1b9862e296dcc9255614143cf424d [file] [log] [blame]
<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>
<parent>
<groupId>org.eclipse.emf.ecp.ecview</groupId>
<artifactId>org.eclipse.emf.ecp.ecview</artifactId>
<version>0.7.0</version>
</parent>
<artifactId>org.eclipse.emf.ecp.ecview.p2</artifactId>
<name>ECView P2 repo</name>
<description>ECView P2 Repository</description>
<packaging>eclipse-repository</packaging>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<tasks>
<taskdef resource="net/sf/antcontrib/antlib.xml" />
<taskdef name="xmltask" classname="com.oopsconsultancy.xmltask.ant.XmlTask" />
<if>
<isset property="ecview.p2.target.folder" />
<then>
<echo>------------------------------------------------</echo>
<echo>Copying repository to ${ecview.p2.target.folder}</echo>
<echo>------------------------------------------------</echo>
<if>
<available file="${ecview.p2.target.folder}" type="dir" />
<then>
<delete includeEmptyDirs="true">
<fileset dir="${ecview.p2.target.folder}" includes="**/*" />
</delete>
</then>
</if>
<copy todir="${ecview.p2.target.folder}">
<fileset dir="${project.basedir}/target/repository" />
</copy>
</then>
<else>
<echo>------------------------------------------------</echo>
<echo>No copying repository! -Decview.p2.target.folder not present</echo>
<echo>------------------------------------------------</echo>
</else>
</if>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.8.4</version>
</dependency>
<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>net.sf.saxon</groupId>
<artifactId>Saxon-HE</artifactId>
<version>9.4</version>
</dependency>
<dependency>
<groupId>com.oopsconsultancy</groupId>
<artifactId>xmltask</artifactId>
<version>1.16</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</project>