blob: 97b4e8a54065dadcda17f1489853739c5dbdcfa8 [file] [log] [blame]
Michael Pressler1f0eab12019-04-25 13:03:02 +02001<?xml version="1.0" encoding="UTF-8"?>
2<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5 <modelVersion>4.0.0</modelVersion>
6
7 <parent>
Michael Pressler1f0eab12019-04-25 13:03:02 +02008 <groupId>org.eclipse.app4mc.build</groupId>
9 <artifactId>parent</artifactId>
Dirk Fauth50304cb2020-02-17 14:12:19 +010010 <version>0.9.8-SNAPSHOT</version>
11 <relativePath>../../pom.xml</relativePath>
Michael Pressler1f0eab12019-04-25 13:03:02 +020012 </parent>
13
14 <properties>
Harald Mackamule83b7382019-04-29 11:24:42 +020015 <plugin-id>app4mc.example.numeric_modes</plugin-id>
Michael Pressler1f0eab12019-04-25 13:03:02 +020016 <examples-installer-location>../../plugins/org.eclipse.app4mc.amalthea.examples.installer</examples-installer-location>
17 </properties>
18
19
Harald Mackamul2f42fb72019-04-29 08:17:51 +020020 <artifactId>app4mc.example.numeric_modes</artifactId>
Michael Pressler1f0eab12019-04-25 13:03:02 +020021 <packaging>jar</packaging>
22
23 <build>
24 <plugins>
25 <plugin>
26 <groupId>org.apache.maven.plugins</groupId>
27 <artifactId>maven-antrun-plugin</artifactId>
28 <version>1.7</version>
29
30 <executions>
31 <execution>
32 <id>replace-build-token</id>
33 <phase>generate-sources</phase>
34
35 <configuration>
36 <target>
37 <copy todir="${examples-installer-location}/examples/${plugin-id}">
38 <fileset dir="./">
39 <exclude name=".externalToolBuilders/" />
40 <exclude name="database/" />
41 <exclude name="bin/" />
42 <exclude name="target/" />
43 <exclude name=".settings/org.eclipse.mylyn*" />
44 <exclude name=".settings/org.eclipse.pde.api.tools.prefs" />
45 <exclude name="**/.gitignore" />
46 <exclude name="**/pom.xml" />
47 <exclude name="**/release.*" />
48 <include name="**" />
49 </fileset>
50 </copy>
51
52 <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project"
53 byline="false"
54 flags="sg"
55 match="\s*&lt;buildCommand>\s+&lt;name>org.eclipse.ui.externaltools.ExternalToolBuilder.*?&lt;/buildCommand>"
56 replace="" />
57
58 <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project"
59 byline="false"
60 flags="s"
61 match="\s*&lt;buildCommand>\s+&lt;name>org.eclipse.pde.api.tools.apiAnalysisBuilder.*?&lt;/buildCommand>"
62 replace="" />
63
64 <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project"
65 byline="false"
66 flags="s"
67 match="\s*&lt;buildCommand>\s+&lt;name>org.eclipse.emf.cdo.releng.version.VersionBuilder.*?&lt;/buildCommand>"
68 replace="" />
69
70 <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project"
71 byline="false"
72 flags="s"
73 match="\s*&lt;nature>org.eclipse.pde.api.tools.apiAnalysisNature&lt;/nature>"
74 replace="" />
75
76 <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project"
77 byline="false"
78 flags="s"
79 match="\s*&lt;nature>org.eclipse.emf.cdo.releng.version.VersionNature&lt;/nature>"
80 replace="" />
81 </target>
82 </configuration>
83
84 <goals>
85 <goal>run</goal>
86 </goals>
87 </execution>
88
89 <execution>
90 <id>auto-clean</id>
91 <phase>clean</phase>
92
93 <configuration>
94 <target>
95 <delete dir="${examples-installer-location}/examples/${plugin-id}"/>
96 </target>
97 </configuration>
98
99 <goals>
100 <goal>run</goal>
101 </goals>
102 </execution>
103
104 </executions>
105
106 </plugin>
107 </plugins>
108 </build>
109</project>