| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!-- |
| 3 | Copyright (C) 2014 Ericsson |
| 4 | |
| 5 | All rights reserved. This program and the accompanying materials |
| 6 | are made available under the terms of the Eclipse Public License v1.0 |
| 7 | which accompanies this distribution, and is available at |
| 8 | http://www.eclipse.org/legal/epl-v10.html |
| 9 | --> |
| 10 | |
| 11 | <project xmlns="http://maven.apache.org/POM/4.0.0" |
| 12 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 13 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 14 | <modelVersion>4.0.0</modelVersion> |
| 15 | |
| 16 | <parent> |
| 17 | <artifactId>org.eclipse.tracecompass.ctf-parent</artifactId> |
| 18 | <groupId>org.eclipse.tracecompass</groupId> |
| 19 | <version>2.2.0-SNAPSHOT</version> |
| 20 | </parent> |
| 21 | |
| 22 | <name>Trace Compass CTF Core Tests Plug-in</name> |
| 23 | <artifactId>org.eclipse.tracecompass.ctf.core.tests</artifactId> |
| 24 | <version>1.0.0-SNAPSHOT</version> |
| 25 | <packaging>eclipse-test-plugin</packaging> |
| 26 | |
| 27 | <properties> |
| 28 | <ctfTestSuiteCommit>0f8beba86ae551f42adeb81d1bfddd5645f31013</ctfTestSuiteCommit> |
| 29 | </properties> |
| 30 | |
| 31 | <!-- Do not download the test traces if "maven.test.skip" is set --> |
| 32 | <profiles> |
| 33 | <profile> |
| 34 | <id>download-traces</id> |
| 35 | <activation> |
| 36 | <property> |
| 37 | <name>!maven.test.skip</name> |
| 38 | </property> |
| 39 | </activation> |
| 40 | |
| 41 | <build> |
| 42 | <plugins> |
| 43 | <plugin> |
| 44 | <groupId>org.apache.maven.plugins</groupId> |
| 45 | <artifactId>maven-antrun-plugin</artifactId> |
| 46 | <executions> |
| 47 | <execution> |
| 48 | <id>prepare</id> |
| 49 | <phase>pre-integration-test</phase> |
| 50 | <configuration> |
| 51 | <target> |
| 52 | <property name="ctf-test-suite-commit" value="${ctfTestSuiteCommit}"/> |
| 53 | <ant antfile="get-traces.xml" dir="traces" /> |
| 54 | </target> |
| 55 | </configuration> |
| 56 | <goals> |
| 57 | <goal>run</goal> |
| 58 | </goals> |
| 59 | </execution> |
| 60 | </executions> |
| 61 | </plugin> |
| 62 | </plugins> |
| 63 | </build> |
| 64 | </profile> |
| 65 | </profiles> |
| 66 | |
| 67 | <build> |
| 68 | <plugins> |
| 69 | <!-- We don't use the ant file to clean because of http://jira.codehaus.org/browse/MANTRUN-78 --> |
| 70 | <plugin> |
| 71 | <artifactId>maven-clean-plugin</artifactId> |
| 72 | <executions> |
| 73 | <execution> |
| 74 | <id>clean-traces</id> |
| 75 | <phase>clean</phase> |
| 76 | <configuration> |
| 77 | <filesets> |
| 78 | <fileset><directory>traces/ctf-testsuite</directory></fileset> |
| 79 | <fileset><directory>traces/synctraces</directory></fileset> |
| 80 | </filesets> |
| 81 | </configuration> |
| 82 | <goals> |
| 83 | <goal>clean</goal> |
| 84 | </goals> |
| 85 | </execution> |
| 86 | </executions> |
| 87 | </plugin> |
| 88 | </plugins> |
| 89 | </build> |
| 90 | |
| 91 | </project> |