@@ -24,9 +24,10 @@ questions.
24
24
--> <project 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" xmlns =" http://maven.apache.org/POM/4.0.0" >
25
25
<!-- Auto generated by mkpoms-->
26
26
<modelVersion >4.0.0</modelVersion >
27
- <packaging >pom</packaging >
27
+ <!-- <packaging>pom</packaging>-->
28
+ <!-- we want to create a jar -->
28
29
<groupId >oracle.code</groupId >
29
- <artifactId >hat-extraction -opencl</artifactId >
30
+ <artifactId >hat-jextracted -opencl</artifactId >
30
31
<version >1.0</version >
31
32
<parent >
32
33
<groupId >oracle.code</groupId >
@@ -35,14 +36,47 @@ questions.
35
36
</parent >
36
37
<build >
37
38
<plugins >
39
+ <plugin >
40
+ <groupId >org.apache.maven.plugins</groupId >
41
+ <artifactId >maven-antrun-plugin</artifactId >
42
+ <version >1.8</version >
43
+ <executions >
44
+ <execution >
45
+ <id >createDirAndMacCompileFlags</id >
46
+ <phase >initialize</phase >
47
+ <goals >
48
+ <goal >run</goal >
49
+ </goals >
50
+ <configuration >
51
+ <target >
52
+ <mkdir dir =" ${hat.stage.jextract}" />
53
+ <echo file =" ${hat.stage.jextract}/compile_flags.txt" message =" -F${mac.app.frameworks}" />
54
+ </target >
55
+ </configuration >
56
+ </execution >
57
+ <execution >
58
+ <id >copyJarToBuild</id >
59
+ <phase >install</phase >
60
+ <goals >
61
+ <goal >run</goal >
62
+ </goals >
63
+ <configuration >
64
+ <target >
65
+ <jar basedir =" ${hat.stage.jextract}" destfile =" ${hat.build}/${project.artifactId}-${project.version}.jar" includes =" opencl/**" />
66
+ </target >
67
+ </configuration >
68
+ </execution >
69
+ </executions >
70
+ </plugin >
71
+
38
72
<plugin >
39
73
<groupId >org.codehaus.mojo</groupId >
40
74
<artifactId >exec-maven-plugin</artifactId >
41
75
<version >3.1.0</version >
42
76
<executions >
43
77
<execution >
44
- <id >2 </id >
45
- <phase >compile </phase >
78
+ <id >runJextractOnOpenCL </id >
79
+ <phase >generate-sources </phase >
46
80
<goals >
47
81
<goal >exec</goal >
48
82
</goals >
@@ -62,25 +96,6 @@ questions.
62
96
</execution >
63
97
</executions >
64
98
</plugin >
65
- <plugin >
66
- <groupId >org.apache.maven.plugins</groupId >
67
- <artifactId >maven-antrun-plugin</artifactId >
68
- <version >1.8</version >
69
- <executions >
70
- <execution >
71
- <id >1</id >
72
- <phase >install</phase >
73
- <goals >
74
- <goal >run</goal >
75
- </goals >
76
- <configuration >
77
- <target >
78
- <jar basedir =" ${hat.stage.jextract}" destfile =" ${hat.build}/jextracted-opencl-1.0.jar" includes =" opencl/**" />
79
- </target >
80
- </configuration >
81
- </execution >
82
- </executions >
83
- </plugin >
84
99
</plugins >
85
100
</build >
86
101
</project >
0 commit comments