Skip to content

Commit abb4590

Browse files
authored
Merge pull request #6 from judovana/javac-h
Replaced javah with javac -h
2 parents d4d6980 + 03dcde1 commit abb4590

File tree

2 files changed

+20
-23
lines changed

2 files changed

+20
-23
lines changed

JavaCriuJar/pom.xml

+19-22
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,25 @@
5959
<source>8</source>
6060
<target>8</target>
6161
</configuration>
62-
</plugin>
62+
<executions>
63+
<execution>
64+
<id>header-generation</id>
65+
<phase>process-sources</phase>
66+
<goals>
67+
<goal>compile</goal>
68+
</goals>
69+
<configuration>
70+
<compilerArgs>
71+
<arg>-h</arg>
72+
<arg>${project.build.directory}/native/javah</arg>
73+
</compilerArgs>
74+
<includes>
75+
<include>org/checkpoint/CheckpointRestore.java</include>
76+
</includes>
77+
</configuration>
78+
</execution>
79+
</executions>
80+
</plugin>
6381
<plugin>
6482
<artifactId>maven-surefire-plugin</artifactId>
6583
<version>3.0.0-M5</version>
@@ -68,27 +86,6 @@
6886
<forkNode implementation="org.apache.maven.plugin.surefire.extensions.SurefireForkNodeFactory"/>
6987
</configuration>
7088
</plugin>
71-
<plugin>
72-
<groupId>org.codehaus.mojo</groupId>
73-
<artifactId>native-maven-plugin</artifactId>
74-
<version>1.0-alpha-11</version>
75-
<executions>
76-
<execution>
77-
<phase>process-classes</phase>
78-
<goals>
79-
<goal>javah</goal>
80-
</goals>
81-
<configuration>
82-
<javahIncludes>
83-
<javahInclude>
84-
<className>org.checkpoint.CheckpointRestore</className>
85-
<headerName>org_checkpoint_CheckpointRestore.hpp</headerName>
86-
</javahInclude>
87-
</javahIncludes>
88-
</configuration>
89-
</execution>
90-
</executions>
91-
</plugin>
9289
<plugin>
9390
<groupId>org.codehaus.mojo</groupId>
9491
<artifactId>exec-maven-plugin</artifactId>

JavaCriuJar/src/main/cpp/org_checkpoint_CheckpointRestore.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222

2323

24-
#include "org_checkpoint_CheckpointRestore.hpp"
24+
#include "org_checkpoint_CheckpointRestore.h"
2525
#include <criu.h>
2626
#include <dirent.h>
2727
#include <errno.h>

0 commit comments

Comments
 (0)