Skip to content

Commit

Permalink
fix: JDK paths
Browse files Browse the repository at this point in the history
  • Loading branch information
kunstmusik committed Aug 4, 2024
1 parent 5234e9b commit accf6c8
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions application/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
value="OpenJDK22U-jdk_x64_windows_hotspot_22.0.2_9.zip"/>

<property name="jdk.mac.arm64"
value="OpenJDK22U-jdk_aarch64_mac_hotspot_2.0.2_9.tar.gz"/>
value="OpenJDK22U-jdk_aarch64_mac_hotspot_22.0.2_9.tar.gz"/>

<property name="jdk.mac.x86_64"
value="OpenJDK22U-jdk_x64_mac_hotspot_22.0.2_9.tar.gz"/>
Expand Down Expand Up @@ -62,15 +62,15 @@
<mkdir dir="target"/>
<get src="${jdk.src.root}/${jdk.zip}" dest="target"/>
<unzip if:set="isWindows" src="target/${jdk.windows}" dest="target"/>
<move if:set="isWindows" file="./target/jdk-17.0.7+7" toFile="./src/jdk"/>
<move if:set="isWindows" file="./target/jdk-22.0.2+9" toFile="./src/jdk"/>

<exec if:set="isMac" executable="tar">
<arg value="xzvf"/>
<arg value="target/${jdk.mac}"/>
<arg value="-Ctarget"/>
</exec>
<exec if:set="isMac" executable="mv">
<arg value="./target/jdk-17.0.7+7/Contents/Home"/>
<arg value="./target/jdk-22.0.2+9/Contents/Home"/>
<arg value="./src/jdk"/>
</exec>

Expand All @@ -91,5 +91,3 @@
<replace if:set="isMac" dir="target/blue/etc" includes="*.conf" token='#jdkhome="/path/to/jdk"' value='jdkhome="jdk"'/>
</target>
</project>


0 comments on commit accf6c8

Please sign in to comment.