Skip to content
Closed
Show file tree
Hide file tree
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
6 changes: 3 additions & 3 deletions Configuration.Override.props.in
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<JdkJvmPath>/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/jli/libjli.dylib</JdkJvmPath>
<JdkJvm11Path>/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/jli/libjli.dylib</JdkJvmPath>
<MonoFrameworkPath>/Library/Frameworks/Mono.framework/Libraries/libmonosgen-2.0.1.dylib</MonoFrameworkPath>
<UtilityOutputFullPath>$(MSBuildThisFileDirectory)bin\$(Configuration)\</UtilityOutputFullPath>
</PropertyGroup>
<ItemGroup>
<!-- JDK C `include` directories -->
<JdkIncludePath Include="/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include" />
<JdkIncludePath Include="/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include/darwin" />
<Jdk11IncludePath Include="/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include" />
<Jdk11IncludePath Include="/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/include/darwin" />
</ItemGroup>
<ItemGroup>
<!-- Mono C `include` directories -->
Expand Down
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
Condition=" Exists('$(MSBuildThisFileDirectory)bin\Build$(Configuration)\Version.props') "
/>
<Import
Project="$(_OutputPath)JdkInfo.props"
Condition="Exists('$(_OutputPath)JdkInfo.props')"
Project="$(_OutputPath)JdkInfo-8.props"
Condition="Exists('$(_OutputPath)JdkInfo-8.props')"
/>
<Import
Project="$(_OutputPath)JdkInfo-11.props"
Expand Down Expand Up @@ -69,7 +69,7 @@
<JavacSourceVersion Condition=" '$(JavacSourceVersion)' == '' ">1.8</JavacSourceVersion>
<JavacTargetVersion Condition=" '$(JavacTargetVersion)' == '' ">1.8</JavacTargetVersion>
<_BootClassPath Condition=" '$(JreRtJarPath)' != '' ">-bootclasspath "$(JreRtJarPath)"</_BootClassPath>
<_JavacSourceOptions>-source $(JavacSourceVersion) -target $(JavacTargetVersion) $(_BootClassPath)</_JavacSourceOptions>
<_Javac8SourceOptions>-source $(JavacSourceVersion) -target $(JavacTargetVersion) $(_BootClassPath)</_Javac8SourceOptions>
</PropertyGroup>
<PropertyGroup>
<XamarinAndroidToolsFullPath>$([System.IO.Path]::GetFullPath ('$(XamarinAndroidToolsDirectory)'))</XamarinAndroidToolsFullPath>
Expand Down
4 changes: 2 additions & 2 deletions Documentation/BuildConfiguration.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ Overridable MSBuild properties include:
[`java-interop`](src/java-interop) against. By default this is
probed for from numerous locations within
[`build-tools/scripts/jdk.mk`](build-tools/scripts/jdk.mk).
* `$(JavaCPath)`: Path to the `javac` command-line tool, by default set to `javac`.
* `$(JarPath)`: Path to the `jar` command-line tool, by default set to `jar`.
* `$(JavaC8Path)`: Path to the `javac` command-line tool, by default set to `javac`.
* `$(Jar8Path)`: Path to the `jar` command-line tool, by default set to `jar`.
* It may be desirable to override these on Windows, depending on your `PATH`.
* `$(UtilityOutputFullPath)`: Directory to place various utilities such as
[`class-parse`](tools/class-parse), [`generator`](tools/generator),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public override bool Execute ()
JavaHomePath = jdk.HomePath;

Directory.CreateDirectory (Path.GetDirectoryName (PropertyFile.ItemSpec));
WritePropertyFile (jdk.JavaPath, jdk.JarPath, jdk.JavacPath, jdk.JdkJvmPath, rtJarPath, jdk.IncludePath);
WritePropertyFile (jdk, rtJarPath);

if (MakeFragmentFile != null) {
Directory.CreateDirectory (Path.GetDirectoryName (MakeFragmentFile.ItemSpec));
Expand Down Expand Up @@ -117,8 +117,14 @@ Action<TraceLevel, string> CreateLogger ()
return logger;
}

void WritePropertyFile (string javaPath, string jarPath, string javacPath, string jdkJvmPath, string rtJarPath, IEnumerable<string> includes)
void WritePropertyFile (XATInfo jdk, string rtJarPath)
{
var jarPath = jdk.JarPath;
var javacPath = jdk.JavacPath;
var javaPath = jdk.JavaPath;
var jdkJvmPath = jdk.JdkJvmPath;
var includes = jdk.IncludePath;

var msbuild = XNamespace.Get ("http://schemas.microsoft.com/developer/msbuild/2003");
var jdkJvmP = $"JdkJvm{PropertyNameModifier}Path";
var project = new XElement (msbuild + "Project",
Expand All @@ -129,6 +135,7 @@ void WritePropertyFile (string javaPath, string jarPath, string javacPath, strin
new XElement (msbuild + "ItemGroup",
includes.Select (i => new XElement (msbuild + $"Jdk{PropertyNameModifier}IncludePath", new XAttribute ("Include", i)))))),
new XElement (msbuild + "PropertyGroup",
CreateProperty (msbuild, $"Java{PropertyNameModifier}MajorVersion", jdk.Version.Major.ToString ()),
CreateProperty (msbuild, $"Java{PropertyNameModifier}SdkDirectory", JavaHomePath),
CreateProperty (msbuild, $"Java{PropertyNameModifier}Path", javaPath),
CreateProperty (msbuild, $"JavaC{PropertyNameModifier}Path", javacPath),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
6 changes: 4 additions & 2 deletions build-tools/scripts/Prepare.targets
Original file line number Diff line number Diff line change
Expand Up @@ -19,20 +19,22 @@
</PropertyGroup>
<JdkInfo
JdksRoot="$(Jdks8Root)"
PropertyNameModifier="8"
MakeFragmentFile="$(MSBuildThisFileDirectory)..\..\bin\Build$(Configuration)\JdkInfo.mk"
MaximumJdkVersion="$(_MaxJdk)"
DotnetToolPath="$(DotnetToolPath)"
PropertyFile="$(_TopDir)\bin\Build$(Configuration)\JdkInfo.props">
PropertyFile="$(_TopDir)\bin\Build$(Configuration)\JdkInfo-8.props">
<Output TaskParameter="JavaHomePath" PropertyName="_JavaSdkDirectory" />
</JdkInfo>
<PropertyGroup>
<Jdks11Root Condition=" '$(Jdks11Root)' == '' And '$(JAVA_HOME_11_X64)' != '' And Exists($(JAVA_HOME_11_X64)) ">$(JAVA_HOME_11_X64)</Jdks11Root>
<Jdks11MaxVersion Condition=" '$(Jdks11MaxVersion)' == '' ">11.99.0</Jdks11MaxVersion>
</PropertyGroup>
<JdkInfo
JdksRoot="$(Jdks11Root)"
PropertyNameModifier="11"
MinimumJdkVersion="11.0"
MaximumJdkVersion="11.99.0"
MaximumJdkVersion="$(Jdks11MaxVersion)"
PropertyFile="$(_TopDir)\bin\Build$(Configuration)\JdkInfo-11.props">
<Output TaskParameter="JavaHomePath" PropertyName="Java11SdkDirectory"/>
</JdkInfo>
Expand Down
6 changes: 3 additions & 3 deletions build-tools/scripts/RunNUnitTests.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
<_Run Condition=" '$(RUN)' != '' ">--run=&quot;$(RUN)&quot;</_Run>
</PropertyGroup>
<Import
Condition=" Exists('..\..\bin\Build$(Configuration)\JdkInfo.props') "
Project="..\..\bin\Build$(Configuration)\JdkInfo.props"
Condition=" Exists('..\..\bin\Build$(Configuration)\JdkInfo-11.props') "
Project="..\..\bin\Build$(Configuration)\JdkInfo-11.props"
/>
<UsingTask AssemblyFile="$(MSBuildThisFileDirectory)..\..\bin\Build$(Configuration)\Java.Interop.BootstrapTasks.dll" TaskName="Java.Interop.BootstrapTasks.SetEnvironmentVariable" />
<ItemGroup>
Expand All @@ -27,7 +27,7 @@
<SetEnvironmentVariable Name="MONO_TRACE_LISTENER" Value="Console.Out" />
<SetEnvironmentVariable Name="JAVA_INTEROP_GREF_LOG" Value="bin\Test$(Configuration)\g-%(_TestAssembly.Filename).txt" />
<SetEnvironmentVariable Name="JAVA_INTEROP_LREF_LOG" Value="bin\Test$(Configuration)\l-%(_TestAssembly.Filename).txt" />
<SetEnvironmentVariable Name="JI_JVM_PATH" Value="$(JdkJvmPath)" />
<SetEnvironmentVariable Name="JI_JVM_PATH" Value="$(JdkJvm11Path)" />
<Exec
Command="$(_NUnit) $(NUNIT_EXTRA) %(_TestAssembly.Identity) $(_Run) --result=&quot;TestResult-%(Filename).xml&quot; --output=&quot;bin\Test$(Configuration)\TestOutput-%(Filename).txt&quot;"
WorkingDirectory="$(_TopDir)"
Expand Down
1 change: 1 addition & 0 deletions src/Java.Base/Java.Base.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<NoWarn>$(NoWarn);8764</NoWarn>
<LangVersion>9.0</LangVersion>
</PropertyGroup>

<Import Project="..\..\TargetFrameworkDependentValues.props" />
Expand Down
1 change: 1 addition & 0 deletions src/Java.Base/Java.Base.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<GeneratorPath>$(UtilityOutputFullPath)generator.dll</GeneratorPath>
<DefineConstants>$(DefineConstants);JAVA_$(Java11MajorVersion)</DefineConstants>
</PropertyGroup>

<ItemGroup>
Expand Down
14 changes: 14 additions & 0 deletions src/Java.Base/Java.Lang/Class.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using System;
using Java.Interop;

#if JAVA_17
using Java.Lang.Invoke;
using Java.Lang.Constants;

namespace Java.Lang {
public partial class Class {

}
}

#endif // JAVA_17
16 changes: 16 additions & 0 deletions src/Java.Base/Java.Lang/Double.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using Java.Interop;

#if JAVA_17
using Java.Lang.Invoke;
using Java.Lang.Constants;

namespace Java.Lang {
public partial class Double {

Java.Lang.Object? IConstantDesc.ResolveConstantDesc (MethodHandles.Lookup? lookup) =>
ResolveConstantDesc (lookup);
}
}

#endif // JAVA_17
16 changes: 16 additions & 0 deletions src/Java.Base/Java.Lang/Float.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using Java.Interop;

#if JAVA_17
using Java.Lang.Invoke;
using Java.Lang.Constants;

namespace Java.Lang {
public partial class Float {

Java.Lang.Object? IConstantDesc.ResolveConstantDesc (MethodHandles.Lookup? lookup) =>
ResolveConstantDesc (lookup);
}
}

#endif // JAVA_17
16 changes: 16 additions & 0 deletions src/Java.Base/Java.Lang/Integer.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using Java.Interop;

#if JAVA_17
using Java.Lang.Invoke;
using Java.Lang.Constants;

namespace Java.Lang {
public partial class Integer {

Java.Lang.Object? IConstantDesc.ResolveConstantDesc (MethodHandles.Lookup? lookup) =>
ResolveConstantDesc (lookup);
}
}

#endif // JAVA_17
16 changes: 16 additions & 0 deletions src/Java.Base/Java.Lang/Long.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
using System;
using Java.Interop;

#if JAVA_17
using Java.Lang.Invoke;
using Java.Lang.Constants;

namespace Java.Lang {
public partial class Long {

Java.Lang.Object? IConstantDesc.ResolveConstantDesc (MethodHandles.Lookup? lookup) =>
ResolveConstantDesc (lookup);
}
}

#endif // JAVA_17
20 changes: 20 additions & 0 deletions src/Java.Base/Java.Lang/String.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,27 @@
using System.Collections.Generic;
using Java.Interop;

#if JAVA_17
using Java.Lang.Invoke;
using Java.Lang.Constants;
#endif // JAVA_17

namespace Java.Lang {
public partial class String : IEnumerable, IEnumerable<char> {

#if JAVA_17
unsafe Java.Lang.Object? IConstantDesc.ResolveConstantDesc (MethodHandles.Lookup? lookup)
{
const string __id = "resolveConstantDesc.(Ljava/lang/invoke/MethodHandles$Lookup;)Ljava/lang/String;";
try {
JniArgumentValue* __args = stackalloc JniArgumentValue [1];
__args [0] = new JniArgumentValue (lookup);
var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod (__id, this, __args);
return JniEnvironment.Runtime.ValueManager.GetValue<String>(ref __rm, JniObjectReferenceOptions.CopyAndDispose);
} finally {
global::System.GC.KeepAlive (lookup);
}
}
#endif // JAVA_17
}
}
19 changes: 19 additions & 0 deletions src/Java.Base/Transforms/Metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

<!-- Type / Namespace conflicts -->
<ns-replace source="java.lang.module" replacement="Java.Lang.Modules" />
<ns-replace source="java.lang.runtime" replacement="Java.Lang.Runtimes" />
<ns-replace source="java.lang.constant" replacement="Java.Lang.Constants" />

<!-- Bind `Object.finalize()` as `Object.JavaFinalize()` -->
<attr path="/api/package[@name='java.lang']//method[@name='finalize' and count(parameter)=0]" name="managedName">JavaFinalize</attr>
Expand Down Expand Up @@ -62,4 +64,21 @@
<attr path="/api/package[@name='java.lang']/class[@name='StringBuffer']" name="extends">java.lang.Object</attr>
<remove-node path="//api/package[@name='java.lang']/class[@name='StringBuffer']/method[@jni-return='Ljava/lang/AbstractStringBuilder;']" />
<remove-node path="//api/package[@name='java.lang']/class[@name='StringBuffer']/method[@jni-return='Ljava/lang/Appendable;']" />

<!-- JDK 17? -->
<remove-node path="/api/package[@name='java.lang.invoke']/interface[@name='TypeDescriptor']" />
<attr path="/api/package[@name='java.lang']/class[@name='Record']/method[@name='equals' and count(parameter)=1 and parameter[1][@type='java.lang.Object']]"
name="managedOverride">override</attr>
<attr path="/api/package[@name='java.lang.reflect']/interface[@name='AnnotatedType']/method[@name='getAnnotation' and count(parameter)=1 and parameter[1][@type='java.lang.Class&lt;T&gt;']]"
name="managedOverride">reabstract</attr>
<attr path="/api/package[@name='java.lang.reflect']/interface[@name='AnnotatedType']/method[@name='getAnnotation' and count(parameter)=1 and parameter[1][@type='java.lang.Class&lt;T&gt;']]"
name="explicitInterface">IAnnotatedElement</attr>
<attr path="/api/package[@name='java.lang.reflect']/interface[@name='AnnotatedType']/method[@name='getAnnotations' and count(parameter)=0]"
name="managedOverride">reabstract</attr>
<attr path="/api/package[@name='java.lang.reflect']/interface[@name='AnnotatedType']/method[@name='getAnnotations' and count(parameter)=0]"
name="explicitInterface">IAnnotatedElement</attr>
<attr path="/api/package[@name='java.lang.reflect']/interface[@name='AnnotatedType']/method[@name='getDeclaredAnnotations' and count(parameter)=0]"
name="managedOverride">reabstract</attr>
<attr path="/api/package[@name='java.lang.reflect']/interface[@name='AnnotatedType']/method[@name='getDeclaredAnnotations' and count(parameter)=0]"
name="explicitInterface">IAnnotatedElement</attr>
</metadata>
4 changes: 2 additions & 2 deletions src/Java.Interop/Java.Interop.targets
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
Inputs="@(CompileJavaInteropJar)"
Outputs="$(OutputPath)java-interop.jar">
<MakeDir Directories="$(OutputPath);$(IntermediateOutputPath)ji-classes" />
<Exec Command="&quot;$(JavaCPath)&quot; $(_JavacSourceOptions) -d &quot;$(IntermediateOutputPath)ji-classes&quot; @(CompileJavaInteropJar -&gt; '%(Identity)', ' ')" />
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)java-interop.jar&quot; -C &quot;$(IntermediateOutputPath)ji-classes&quot; ." />
<Exec Command="&quot;$(JavaC8Path)&quot; $(_Javac8SourceOptions) -d &quot;$(IntermediateOutputPath)ji-classes&quot; @(CompileJavaInteropJar -&gt; '%(Identity)', ' ')" />
<Exec Command="&quot;$(Jar8Path)&quot; cf &quot;$(OutputPath)java-interop.jar&quot; -C &quot;$(IntermediateOutputPath)ji-classes&quot; ." />
</Target>
<UsingTask AssemblyFile="$(MSBuildThisFileDirectory)..\..\bin\Build$(Configuration)\Java.Interop.BootstrapTasks.dll" TaskName="Java.Interop.BootstrapTasks.ReplaceFileContents" />
<Target Name="BuildVersionInfo_g_cs"
Expand Down
2 changes: 1 addition & 1 deletion src/java-interop/java-interop.targets
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
<_EnableMono>-DENABLE_MONO_INTEGRATION=ON</_EnableMono>
</PropertyGroup>
<PropertyGroup>
<_JdkDirs>"-DJDK_INCLUDE_LIST=@(JdkIncludePath, ';')"</_JdkDirs>
<_JdkDirs>"-DJDK_INCLUDE_LIST=@(Jdk11IncludePath, ';')"</_JdkDirs>
<_Jni_c>"-DJNI_C_PATH=$(MSBuildThisFileDirectory)$(IntermediateOutputPath)jni.c"</_Jni_c>
<_ExtraArgs>$([MSBuild]::Escape('$(_JdkDirs) $(_Jni_c) $(_EnableMono) $(_MonoDirs) $(_MonoLib)'))</_ExtraArgs>
</PropertyGroup>
Expand Down
4 changes: 2 additions & 2 deletions tests/Java.Base-Tests/Java.Base-Tests.targets
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@
<ItemGroup>
<_JcwSourceReal Include="$(IntermediateOutputPath)java\**\*.java;java\**\*.java" />
</ItemGroup>
<Exec Command="&quot;$(JavaCPath)&quot; $(_JavacSourceOptions) -d &quot;$(IntermediateOutputPath)classes&quot; -classpath &quot;$(OutputPath)/java-interop.jar&quot; @(_JcwSourceReal->'%(Identity)', ' ')" />
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)java.base-tests.jar&quot; -C &quot;$(IntermediateOutputPath)classes&quot; ." />
<Exec Command="&quot;$(JavaC11Path)&quot; $(_Javac8SourceOptions) -d &quot;$(IntermediateOutputPath)classes&quot; -classpath &quot;$(OutputPath)/java-interop.jar&quot; @(_JcwSourceReal->'%(Identity)', ' ')" />
<Exec Command="&quot;$(Jar11Path)&quot; cf &quot;$(OutputPath)java.base-tests.jar&quot; -C &quot;$(IntermediateOutputPath)classes&quot; ." />
</Target>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
Inputs="@(JavaPerformanceTestJar)"
Outputs="$(OutputPath)performance-test.jar">
<MakeDir Directories="$(IntermediateOutputPath)pt-classes" />
<Exec Command="&quot;$(JavaCPath)&quot; $(_JavacSourceOptions) -d &quot;$(IntermediateOutputPath)pt-classes&quot; @(JavaPerformanceTestJar->'%(Identity)', ' ')" />
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)performance-test.jar&quot; -C &quot;$(IntermediateOutputPath)pt-classes&quot; ." />
<Exec Command="&quot;$(JavaC8Path)&quot; $(_Javac8SourceOptions) -d &quot;$(IntermediateOutputPath)pt-classes&quot; @(JavaPerformanceTestJar->'%(Identity)', ' ')" />
<Exec Command="&quot;$(Jar8Path)&quot; cf &quot;$(OutputPath)performance-test.jar&quot; -C &quot;$(IntermediateOutputPath)pt-classes&quot; ." />
</Target>

</Project>
4 changes: 2 additions & 2 deletions tests/Java.Interop-Tests/Java.Interop-Tests.targets
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
Lines="@(_Source)"
Overwrite="True"
/>
<Exec Command="&quot;$(JavaCPath)&quot; $(_JavacSourceOptions) -d &quot;$(IntermediateOutputPath)it-classes&quot; -classpath &quot;$(OutputPath)../$(Configuration)/java-interop.jar&quot; &quot;@$(IntermediateOutputPath)_java_sources.txt&quot;" />
<Exec Command="&quot;$(JavaC8Path)&quot; $(_Javac8SourceOptions) -d &quot;$(IntermediateOutputPath)it-classes&quot; -classpath &quot;$(OutputPath)../$(Configuration)/java-interop.jar&quot; &quot;@$(IntermediateOutputPath)_java_sources.txt&quot;" />
<Delete Files="$(IntermediateOutputPath)_java_sources.txt" />
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)interop-test.jar&quot; -C &quot;$(IntermediateOutputPath)it-classes&quot; ." />
<Exec Command="&quot;$(Jar8Path)&quot; cf &quot;$(OutputPath)interop-test.jar&quot; -C &quot;$(IntermediateOutputPath)it-classes&quot; ." />
</Target>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@

<Target Name="BuildExportTestJar" BeforeTargets="Build" Inputs="@(JavaExportTestJar)" Outputs="$(OutputPath)export-test.jar">
<MakeDir Directories="$(IntermediateOutputPath)et-classes" />
<Exec Command="&quot;$(JavaCPath)&quot; -classpath &quot;$(OutputPath)../$(Configuration)/java-interop.jar&quot; $(_JavacSourceOptions) -d &quot;$(IntermediateOutputPath)et-classes&quot; @(JavaExportTestJar->'%(Identity)', ' ')" />
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)export-test.jar&quot; -C &quot;$(IntermediateOutputPath)et-classes&quot; ." />
<Exec Command="&quot;$(JavaC8Path)&quot; -classpath &quot;$(OutputPath)../$(Configuration)/java-interop.jar&quot; $(_Javac8SourceOptions) -d &quot;$(IntermediateOutputPath)et-classes&quot; @(JavaExportTestJar->'%(Identity)', ' ')" />
<Exec Command="&quot;$(Jar8Path)&quot; cf &quot;$(OutputPath)export-test.jar&quot; -C &quot;$(IntermediateOutputPath)et-classes&quot; ." />
</Target>

</Project>
2 changes: 1 addition & 1 deletion tests/NativeTiming/NativeTiming.targets
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
Outputs="$(OutputPath)%(_NativeTimingLib.Dir)$(_NativeTimingLibName)">
<MakeDir Directories="$(IntermediateOutputPath)" />
<PropertyGroup>
<_JdkDirs>"-DJDK_INCLUDE_LIST=@(JdkIncludePath, ';')"</_JdkDirs>
<_JdkDirs>"-DJDK_INCLUDE_LIST=@(Jdk11IncludePath, ';')"</_JdkDirs>
</PropertyGroup>
<ItemGroup>
<_Cmake
Expand Down
4 changes: 2 additions & 2 deletions tests/TestJVM/TestJVM.cs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static string GetOutputDirectoryName ()
if (buildName.Contains ('-')) {
buildName = buildName.Substring (0, buildName.IndexOf ('-'));
}
var jdkPropFile = Path.Combine (binDir, buildName, "JdkInfo.props");
var jdkPropFile = Path.Combine (binDir, buildName, "JdkInfo-11.props");
if (!File.Exists (jdkPropFile)) {
return null;
}
Expand All @@ -105,7 +105,7 @@ static string GetOutputDirectoryName ()
.Elements (msbuild + "Choose")
.Elements (msbuild + "When")
.Elements (msbuild + "PropertyGroup")
.Elements (msbuild + "JdkJvmPath")
.Elements (msbuild + "JdkJvm11Path")
.FirstOrDefault ();
if (jdkJvmPath == null) {
return null;
Expand Down
Loading