Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/junit/plugins/uml/diagram/pom.xml')
-rw-r--r--tests/junit/plugins/uml/diagram/pom.xml134
1 files changed, 134 insertions, 0 deletions
diff --git a/tests/junit/plugins/uml/diagram/pom.xml b/tests/junit/plugins/uml/diagram/pom.xml
new file mode 100644
index 00000000000..bdb945f308b
--- /dev/null
+++ b/tests/junit/plugins/uml/diagram/pom.xml
@@ -0,0 +1,134 @@
+<?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>
+ <parent>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus.tests.releng</artifactId>
+ <version>1.1.1-SNAPSHOT</version>
+ <relativePath>../../../../../releng/main-tests/pom.xml</relativePath>
+ </parent>
+ <groupId>org.eclipse.papyrus</groupId>
+ <artifactId>org.eclipse.papyrus.uml.diagram.tests.releng</artifactId>
+ <version>1.1.1-SNAPSHOT</version>
+ <packaging>pom</packaging>
+
+ <modules>
+ <module>org.eclipse.papyrus.uml.diagram.activity.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.clazz.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.statemachine.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.stereotypeproperty.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.common.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.component.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.communication.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.composite.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.deployment.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.dnd.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.interactionoverview.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.paletteconfiguration.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.profile.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.sequence.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.timing.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.usecase.tests</module>
+ <module>org.eclipse.papyrus.uml.diagram.wizards.tests</module>
+ </modules>
+
+ <profiles>
+ <!-- A build profile for generation of diagram tests from the GMFGen model. -->
+ <profile>
+ <id>generate-tests</id>
+ <activation>
+ <!-- Activate this profile if we detect the folder in which tests should be generated. -->
+ <file>
+ <exists>test-gen/.gitignore</exists>
+ </file>
+ </activation>
+ <build>
+ <plugins>
+ <!-- Empty out the xtend-gen and test-gen folders in the clean phase. -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-clean-plugin</artifactId>
+ <configuration>
+ <filesets>
+ <fileset>
+ <directory>xtend-gen</directory>
+ <excludes>
+ <exclude>**/.gitignore</exclude>
+ </excludes>
+ </fileset>
+ <fileset>
+ <directory>test-gen</directory>
+ <excludes>
+ <exclude>**/.gitignore</exclude>
+ </excludes>
+ </fileset>
+ </filesets>
+ </configuration>
+ </plugin>
+ <!-- Generate Xtend sources before the compilation phase. -->
+ <plugin>
+ <groupId>org.eclipse.xtend</groupId>
+ <artifactId>xtend-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-tests-generator</id>
+ <phase>generate-sources</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <outputDirectory>xtend-gen</outputDirectory>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- Generate test sources after the compilation phase (because we need the generator to be compiled). -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>exec-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>generate-diagram-tests</id>
+ <phase>generate-test-sources</phase>
+ <goals>
+ <goal>exec</goal>
+ </goals>
+ <configuration>
+ <classpathScope>compile</classpathScope>
+ <executable>java</executable>
+ <arguments>
+ <argument>-cp</argument>
+ <classpath/>
+ <argument>${generator.workflow.main.class}</argument>
+ </arguments>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+
+ <!-- And compile them in the test-compile phase. -->
+ <plugin>
+ <groupId>org.eclipse.tycho</groupId>
+ <artifactId>tycho-compiler-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>compile-generated-diagram-tests</id>
+ <phase>test-compile</phase>
+ <goals>
+ <goal>compile</goal>
+ </goals>
+ <configuration>
+ <useProjectSettings>true</useProjectSettings>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
+</project>

Back to the top