Skip to content

Commit

Permalink
Merge pull request apache#7031 from pepness/jdk-xml
Browse files Browse the repository at this point in the history
Fix how to define fallback values for a jdk installation in some xml files,
including JDK 8 support for Freeform projects.
  • Loading branch information
pepness authored Feb 10, 2024
2 parents e75fdec + 8b6945a commit f586ed1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,9 @@
<condition property="nbjdk.home" value="${java.home.parent}">
<available file="${java.home.parent}/lib/tools.jar" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/jmods/java.base.jmod" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/lib/tools.jar" type="file"/>
</condition>
Expand Down
4 changes: 2 additions & 2 deletions nbbuild/jdk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@
<!-- Define fallback values of some things. -->
<property name="java.home.parent" location="${java.home}/.."/>
<condition property="nbjdk.home" value="${java.home.parent}">
<available file="${java.home.parent}/lib/tools.jar" type="file"/>
<available file="${java.home.parent}/jmods/java.base.jmod" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/lib/tools.jar" type="file"/>
<available file="${java.home}/jmods/java.base.jmod" type="file"/>
</condition>

<!-- Mac OS X -->
Expand Down
4 changes: 2 additions & 2 deletions nbbuild/nbproject/jdk.xml
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@

<property name="java.home.parent" location="${java.home}/.."/>
<condition property="nbjdk.home" value="${java.home.parent}">
<available file="${java.home.parent}/lib/tools.jar" type="file"/>
<available file="${java.home.parent}/jmods/java.base.jmod" type="file"/>
</condition>
<condition property="nbjdk.home" value="${java.home}">
<available file="${java.home}/lib/tools.jar" type="file"/>
<available file="${java.home}/jmods/java.base.jmod" type="file"/>
</condition>

<condition property="nbjdk.home" value="/Library/Java/Home">
Expand Down

0 comments on commit f586ed1

Please sign in to comment.