blob: 83afdfdd3d7fdf85737797ec5839d11e34c12346 [file] [log] [blame]
Harald Mackamuld292a7f2016-07-07 16:23:12 +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>
Harald Mackamuld292a7f2016-07-07 16:23:12 +02008 <groupId>org.eclipse.app4mc.build</groupId>
9 <artifactId>parent</artifactId>
Harald Mackamul9e8f40b2020-06-22 13:40:10 +020010 <version>0.9.9-SNAPSHOT</version>
Dirk Fauth50304cb2020-02-17 14:12:19 +010011 <relativePath>../../pom.xml</relativePath>
Harald Mackamuld292a7f2016-07-07 16:23:12 +020012 </parent>
13
14 <properties>
Zakir Meer6ded5eb2017-07-26 12:25:37 +020015 <plugin-id>app4mc.example.modeling.client_server</plugin-id>
Harald Mackamuld292a7f2016-07-07 16:23:12 +020016 <examples-installer-location>../../plugins/org.eclipse.app4mc.amalthea.examples.installer</examples-installer-location>
17 </properties>
18
19
Zakir Meer6ded5eb2017-07-26 12:25:37 +020020 <artifactId>app4mc.example.modeling.client_server</artifactId>
Harald Mackamuld292a7f2016-07-07 16:23:12 +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="" />
Harald Mackamuld292a7f2016-07-07 16:23:12 +020081 </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>