Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion build-tools/scripts/DotNet.targets
Original file line numberDiff line numberDiff line change
Expand Up@@ -16,7 +16,16 @@
/>
</Target>

<Target Name="PrepareJavaInterop">
<Target Name="PrepareOpenJDK">
<!-- Ensure the Microsoft OpenJDK is downloaded and extracted into $(JavaSdkDirectory)
before Java.Interop's Prepare target scans for a JDK. Otherwise its JdkInfo task
falls back to a system-installed JDK (e.g. the JDK 25 preinstalled on hosted
macOS images), which can be incompatible with our Gradle version. -->
<MSBuild Projects="$(_Root)src\openjdk\openjdk.csproj" Properties="Configuration=$(Configuration)" Targets="Restore;Build" />
</Target>

<Target Name="PrepareJavaInterop"
DependsOnTargets="PrepareOpenJDK">
<Exec
Command="&quot;$(DotNetPreviewTool)&quot; build -t:Prepare Java.Interop.sln -c $(Configuration) -p:JdksRoot=$(JavaSdkDirectory) -p:DotnetToolPath=$(DotNetPreviewTool) -bl:$(_BinlogPathPrefix)-prepare-java-interop.binlog"
WorkingDirectory="$(_Root)external\Java.Interop"
Expand Down