moved jre dirs properties to pom file
[taxeditor.git] / eu.etaxonomy.taxeditor.feature / pom.xml
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 <parent>
5 <groupId>eu.etaxonomy</groupId>
6 <artifactId>taxeditor-parent</artifactId>
7 <version>3.5.0-SNAPSHOT</version>
8 </parent>
9 <modelVersion>4.0.0</modelVersion>
10 <artifactId>eu.etaxonomy.taxeditor.feature</artifactId>
11 <packaging>eclipse-feature</packaging>
12
13 <name>Taxonomic Editor Feature</name>
14 <description />
15 <url>http://dev.e-taxonomy.eu/trac/wiki/TaxonomicEditorEditorBundle</url>
16 <properties>
17 <linux.64.dir>linux-64</linux.64.dir>
18 <linux.32.dir>linux-32</linux.32.dir>
19 <win.64.dir>win-64</win.64.dir>
20 <win.32.dir>win-32</win.32.dir>
21 <mac.64.dir>mac-64</mac.64.dir>
22 </properties>
23 <build>
24 <plugins>
25 <plugin>
26 <groupId>org.apache.maven.plugins</groupId>
27 <artifactId>maven-antrun-plugin</artifactId>
28 <version>1.8</version>
29 <executions>
30 <execution>
31 <id>setPropertiesWithoutJRE</id>
32 <phase>validate</phase>
33 <configuration>
34 <target>
35 <copy overwrite="true" force="true"
36 file="${basedir}/build.properties.wo.jre" tofile="${basedir}/build.properties" />
37 </target>
38 </configuration>
39 <goals>
40 <goal>run</goal>
41 </goals>
42 </execution>
43 </executions>
44 </plugin>
45 <plugin>
46 <artifactId>maven-clean-plugin</artifactId>
47 <version>2.6.1</version>
48 <configuration>
49 <filesets>
50 <fileset>
51 <directory>${basedir}</directory>
52 <followSymlinks>false</followSymlinks>
53 <includes>
54 <include>${linux.64.dir}</include>
55 <include>${linux.32.dir}</include>
56 <include>${win.64.dir}</include>
57 <include>${win.32.dir}</include>
58 <include>${mac.64.dir}</include>
59 </includes>
60 </fileset>
61 </filesets>
62 </configuration>
63 </plugin>
64 </plugins>
65 </build>
66 <profiles>
67 <profile>
68 <!-- Installs the jre bundle, which is done by 1) setting up symbolic
69 links in the feature to the jre directories as set in the ~/.m2/settings.xml
70 2) copying a properties file which contains the jre settings -->
71 <id>bundleJre</id>
72 <build>
73 <plugins>
74 <plugin>
75 <groupId>org.apache.maven.plugins</groupId>
76 <artifactId>maven-antrun-plugin</artifactId>
77 <version>1.8</version>
78 <executions>
79 <execution>
80 <id>linkJREDirs</id>
81 <phase>validate</phase>
82 <configuration>
83 <target>
84 <echo>Recreating links to various OS JREs</echo>
85 <symlink action="delete" link="${basedir}/${linux.64.dir}" />
86 <symlink link="${basedir}/${linux.64.dir}"
87 resource="${jre.root.dir}/${linux.64.dir}" />
88 <symlink action="delete" link="${basedir}/${linux.32.dir}" />
89 <symlink link="${basedir}/${linux.32.dir}"
90 resource="${jre.root.dir}/${linux.32.dir}" />
91 <symlink action="delete" link="${basedir}/${win.64.dir}" />
92 <symlink link="${basedir}/${win.64.dir}"
93 resource="${jre.root.dir}/${win.64.dir}" />
94 <symlink action="delete" link="${basedir}/${win.32.dir}" />
95 <symlink link="${basedir}/${win.32.dir}"
96 resource="${jre.root.dir}/${win.32.dir}" />
97 <symlink action="delete" link="${basedir}/${mac.64.dir}" />
98 <symlink link="${basedir}/${mac.64.dir}"
99 resource="${jre.root.dir}/${mac.64.dir}" />
100 </target>
101 </configuration>
102 <goals>
103 <goal>run</goal>
104 </goals>
105 </execution>
106 <execution>
107 <id>setPropertiesWithJRE</id>
108 <phase>validate</phase>
109 <configuration>
110 <target>
111 <copy overwrite="true" force="true"
112 file="${basedir}/build.properties.with.jre"
113 tofile="${basedir}/build.properties" />
114 </target>
115 </configuration>
116 <goals>
117 <goal>run</goal>
118 </goals>
119 </execution>
120 </executions>
121 </plugin>
122 </plugins>
123 </build>
124 </profile>
125 </profiles>
126 </project>