blob: 2b3e578506e7382f2e4c7fe0b6bf59956a0530fc [file] [log] [blame]
<!--
* Copyright (c) 2018 Robert Bosch GmbH.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
-->
<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>
<relativePath>../../../build/org.eclipse.app4mc.transformation.build/pom.xml</relativePath>
<groupId>org.eclipse.app4mc.transformation</groupId>
<artifactId>org.eclipse.app4mc.transformation.build</artifactId>
<version>0.3.0-SNAPSHOT</version>
</parent>
<artifactId>org.eclipse.app4mc.transform.to.inchron.m2m</artifactId>
<packaging>eclipse-plugin</packaging>
<properties>
<plugin-id>org.eclipse.app4mc.transform.to.inchron.m2m</plugin-id>
<examples-installer-location>../../../build/org.eclipse.app4mc.inchron.transformation.installer</examples-installer-location>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<id>replace-build-token</id>
<phase>generate-sources</phase>
<configuration>
<target>
<copy todir="${examples-installer-location}/examples/${plugin-id}">
<fileset dir="./">
<exclude name=".externalToolBuilders/" />
<exclude name="database/" />
<exclude name="bin/" />
<exclude name="target/" />
<exclude name=".settings/org.eclipse.mylyn*" />
<exclude name=".settings/org.eclipse.pde.api.tools.prefs" />
<exclude name="**/.gitignore" />
<exclude name="**/pom.xml" />
<exclude name="**/release.*" />
<include name="**" />
</fileset>
</copy>
<replaceregexp
file="${examples-installer-location}/examples/${plugin-id}/.project"
byline="false" flags="sg"
match="\s*&lt;buildCommand>\s+&lt;name>org.eclipse.ui.externaltools.ExternalToolBuilder.*?&lt;/buildCommand>"
replace="" />
<replaceregexp
file="${examples-installer-location}/examples/${plugin-id}/.project"
byline="false" flags="s"
match="\s*&lt;buildCommand>\s+&lt;name>org.eclipse.pde.api.tools.apiAnalysisBuilder.*?&lt;/buildCommand>"
replace="" />
<replaceregexp
file="${examples-installer-location}/examples/${plugin-id}/.project"
byline="false" flags="s"
match="\s*&lt;buildCommand>\s+&lt;name>org.eclipse.emf.cdo.releng.version.VersionBuilder.*?&lt;/buildCommand>"
replace="" />
<replaceregexp
file="${examples-installer-location}/examples/${plugin-id}/.project"
byline="false" flags="s"
match="\s*&lt;nature>org.eclipse.pde.api.tools.apiAnalysisNature&lt;/nature>"
replace="" />
<replaceregexp
file="${examples-installer-location}/examples/${plugin-id}/.project"
byline="false" flags="s"
match="\s*&lt;nature>org.eclipse.emf.cdo.releng.version.VersionNature&lt;/nature>"
replace="" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
<execution>
<id>auto-clean</id>
<phase>clean</phase>
<configuration>
<target>
<delete dir="${examples-installer-location}/examples/${plugin-id}" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.eclipse.xtend</groupId>
<artifactId>xtend-maven-plugin</artifactId>
<version>2.13.0</version>
<executions>
<execution>
<goals>
<goal>compile</goal>
<goal>xtend-install-debug-info</goal>
<goal>testCompile</goal>
<goal>xtend-test-install-debug-info</goal>
</goals>
</execution>
</executions>
<configuration>
<outputDirectory>xtend-gen</outputDirectory>
</configuration>
</plugin>
</plugins>
</build>
<groupId>m2m</groupId>
</project>