Skip to content

Commit acb43b6

Browse files
authored
Remove dummy closed_Utils_c.h file (#888)
This update removes the dummy closed_Utils_c.h file since it was causing build issues on z/OS. It will now get generated when using the Maven z/OS profile. Signed-off-by: Tom Ginader <[email protected]>
1 parent 7f2bac3 commit acb43b6

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
.vscode
3939

4040
# Dynamically generated header files produced by the build
41+
/src/main/native/closed_Utils_c.h
4142
/src/main/native/com_ibm_crypto_plus_provider_ock_*.h
4243

4344
# Files generated by tests.

pom.xml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,28 @@
6565
</properties>
6666
<build>
6767
<plugins>
68+
<plugin>
69+
<groupId>org.apache.maven.plugins</groupId>
70+
<artifactId>maven-antrun-plugin</artifactId>
71+
<version>3.1.0</version>
72+
<executions>
73+
<execution>
74+
<id>create-header-file</id>
75+
<phase>generate-sources</phase>
76+
<goals>
77+
<goal>run</goal>
78+
</goals>
79+
<configuration>
80+
<target>
81+
<mkdir dir="${project.basedir}/src/main/native"/>
82+
<echo file="${project.basedir}/src/main/native/closed_Utils_c.h" append="false">
83+
// This file is required for compiling with OpenXL. The actual file will get copied during a z/OS JDK build.
84+
</echo>
85+
</target>
86+
</configuration>
87+
</execution>
88+
</executions>
89+
</plugin>
6890
<plugin>
6991
<groupId>org.codehaus.mojo</groupId>
7092
<artifactId>exec-maven-plugin</artifactId>
@@ -85,7 +107,7 @@
85107
<commandlineArgs>${build.native.file}</commandlineArgs>
86108
</configuration>
87109
</execution>
88-
</executions>
110+
</executions>
89111
</plugin>
90112
</plugins>
91113
</build>

src/main/native/closed_Utils_c.h

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)