Harald Mackamul | d292a7f | 2016-07-07 16:23:12 +0200 | [diff] [blame] | 1 | <?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 Mackamul | d292a7f | 2016-07-07 16:23:12 +0200 | [diff] [blame] | 8 | <groupId>org.eclipse.app4mc.build</groupId> |
| 9 | <artifactId>parent</artifactId> |
Harald Mackamul | 9e8f40b | 2020-06-22 13:40:10 +0200 | [diff] [blame] | 10 | <version>0.9.9-SNAPSHOT</version> |
Dirk Fauth | 50304cb | 2020-02-17 14:12:19 +0100 | [diff] [blame] | 11 | <relativePath>../../pom.xml</relativePath> |
Harald Mackamul | d292a7f | 2016-07-07 16:23:12 +0200 | [diff] [blame] | 12 | </parent> |
| 13 | |
| 14 | <properties> |
Zakir Meer | 6ded5eb | 2017-07-26 12:25:37 +0200 | [diff] [blame] | 15 | <plugin-id>app4mc.example.modeling.client_server</plugin-id> |
Harald Mackamul | d292a7f | 2016-07-07 16:23:12 +0200 | [diff] [blame] | 16 | <examples-installer-location>../../plugins/org.eclipse.app4mc.amalthea.examples.installer</examples-installer-location> |
| 17 | </properties> |
| 18 | |
| 19 | |
Zakir Meer | 6ded5eb | 2017-07-26 12:25:37 +0200 | [diff] [blame] | 20 | <artifactId>app4mc.example.modeling.client_server</artifactId> |
Harald Mackamul | d292a7f | 2016-07-07 16:23:12 +0200 | [diff] [blame] | 21 | <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*<buildCommand>\s+<name>org.eclipse.ui.externaltools.ExternalToolBuilder.*?</buildCommand>" |
| 56 | replace="" /> |
| 57 | |
| 58 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 59 | byline="false" |
| 60 | flags="s" |
| 61 | match="\s*<buildCommand>\s+<name>org.eclipse.pde.api.tools.apiAnalysisBuilder.*?</buildCommand>" |
| 62 | replace="" /> |
| 63 | |
| 64 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 65 | byline="false" |
| 66 | flags="s" |
| 67 | match="\s*<buildCommand>\s+<name>org.eclipse.emf.cdo.releng.version.VersionBuilder.*?</buildCommand>" |
| 68 | replace="" /> |
| 69 | |
| 70 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 71 | byline="false" |
| 72 | flags="s" |
| 73 | match="\s*<nature>org.eclipse.pde.api.tools.apiAnalysisNature</nature>" |
| 74 | replace="" /> |
| 75 | |
| 76 | <replaceregexp file="${examples-installer-location}/examples/${plugin-id}/.project" |
| 77 | byline="false" |
| 78 | flags="s" |
| 79 | match="\s*<nature>org.eclipse.emf.cdo.releng.version.VersionNature</nature>" |
| 80 | replace="" /> |
Harald Mackamul | d292a7f | 2016-07-07 16:23:12 +0200 | [diff] [blame] | 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> |