Skip to content

Commit

Permalink
IDE-5114 let installer support jdk 17
Browse files Browse the repository at this point in the history
  • Loading branch information
simonjhy committed Nov 29, 2023
1 parent 632c406 commit 896bb76
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 37 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -95,21 +95,6 @@
<isTrue value="${clitools}"/>
</conditionRuleList>
</if>
<if>
<actionList>
<setInstallerVariable name="extraArgumentForJdk17" value=" --add-opens java.prefs/java.util.prefs=ALL-UNNAMED"/>
</actionList>
<ruleList>
<compareValues>
<logic>equals</logic>
<value1>${java_version}</value1>
<value2>17</value2>
</compareValues>
</ruleList>
<elseActionList>
<setInstallerVariable name="extraArgumentForJdk17" value=""/>
</elseActionList>
</if>
<if>
<actionList>
<if>
Expand Down Expand Up @@ -424,6 +409,21 @@ ${java_executable}
</if>
</elseActionList>
</if>
<if>
<actionList>
<setInstallerVariable name="extraArgumentForJdk17" value="--add-opens java.prefs/java.util.prefs=ALL-UNNAMED"/>
</actionList>
<conditionRuleList>
<compareText>
<logic>contains</logic>
<text>${java_version}</text>
<value>17</value>
</compareText>
</conditionRuleList>
<elseActionList>
<setInstallerVariable name="extraArgumentForJdk17" value=""/>
</elseActionList>
</if>
<if>
<actionList>
<include>
Expand Down
31 changes: 9 additions & 22 deletions build/installers/liferay-workspace/liferay-workspace.xml
Original file line number Diff line number Diff line change
Expand Up @@ -240,39 +240,26 @@
</if>
</elseActionList>
</if>
<pathManipulation>
<action>nativeAbsolutize</action>
<path>${java_executable}/..</path>
<variable>java_bin_dir</variable>
</pathManipulation>
<if>
<actionList>
<setInstallerVariable name="extraArgumentForJdk17" value=" --add-opens java.prefs/java.util.prefs=ALL-UNNAMED"/>
<setInstallerVariable name="extraArgumentForJdk17" value="--add-opens java.prefs/java.util.prefs=ALL-UNNAMED"/>
</actionList>
<conditionRuleList>
<compareText>
<logic>equals</logic>
<nocase>1</nocase>
<logic>contains</logic>
<text>${java_version}</text>
<value>17</value>
</compareText>
</conditionRuleList>
<elseActionList>
<if>
<actionList>
<setInstallerVariable name="extraArgumentForJdk17" value=""/>
</actionList>
<conditionRuleList>
<compareText>
<logic>contains</logic>
<nocase>1</nocase>
<text>${java_version}</text>
<value>17</value>
</compareText>
</conditionRuleList>
</if>
<setInstallerVariable name="extraArgumentForJdk17" value=""/>
</elseActionList>
</if>
<pathManipulation>
<action>nativeAbsolutize</action>
<path>${java_executable}/..</path>
<variable>java_bin_dir</variable>
</pathManipulation>
</if>
<include>
<file>../components/run-java-jpm-win.xml</file>
</include>
Expand Down

0 comments on commit 896bb76

Please sign in to comment.