Skip to content

Commit

Permalink
java: explicitly use zig.exe when on windows
Browse files Browse the repository at this point in the history
For setups which download both `zig/zig` and `zig/zig.exe` for convenience
(i.e. windows WSL), this ensures the Java CI uses the correct one instead of
relying on shell to append `.exe` (which doesn't happen since non `.exe`
version exists).
  • Loading branch information
kprotty committed Dec 14, 2023
1 parent f32fad1 commit bbff8bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/clients/java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
</os>
</activation>
<properties>
<executable.extension>.exe</executable.extension>
<script.extension>.bat</script.extension>
</properties>
</profile>
Expand All @@ -69,6 +70,7 @@
</os>
</activation>
<properties>
<executable.extension></executable.extension>
<script.extension>.sh</script.extension>
</properties>
</profile>
Expand Down Expand Up @@ -209,7 +211,7 @@
<version>3.1.0</version>
<configuration>
<workingDirectory>${project.basedir}/../../../</workingDirectory>
<executable>${project.basedir}/../../../zig/zig</executable>
<executable>${project.basedir}/../../../zig/zig${executable.extension}</executable>
</configuration>
<executions>
<execution>
Expand Down

0 comments on commit bbff8bd

Please sign in to comment.