Skip to content

Commit ca978cc

Browse files
committed
Test
1 parent 8867a99 commit ca978cc

File tree

6 files changed

+17
-28
lines changed

6 files changed

+17
-28
lines changed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<!-- Workaround: https://github.com/dotnet/runtime/issues/55992 -->
5555
<UseAppHost>False</UseAppHost>
5656
<AppendTargetFrameworkToOutputPath Condition=" '$(AppendTargetFrameworkToOutputPath)' == '' ">False</AppendTargetFrameworkToOutputPath>
57-
<BaseIntermediateOutputPath Condition=" '$(BaseIntermediateOutputPath)' == '' ">obj\</BaseIntermediateOutputPath>
57+
<!--<BaseIntermediateOutputPath Condition=" '$(BaseIntermediateOutputPath)' == '' ">obj\</BaseIntermediateOutputPath>-->
5858
</PropertyGroup>
5959

6060
<PropertyGroup>

TargetFrameworkDependentValues.props

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@
55
<JIBuildingForNetCoreApp>True</JIBuildingForNetCoreApp>
66
</PropertyGroup>
77

8-
<PropertyGroup Condition=" '$(JIBuildingForNetCoreApp)' == 'True' ">
9-
<IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)-$(TargetFramework.ToLowerInvariant())\</IntermediateOutputPath>
10-
<BuildToolOutputFullPath>$(MSBuildThisFileDirectory)bin\Build$(Configuration)-$(TargetFramework.ToLowerInvariant())\</BuildToolOutputFullPath>
11-
<ToolOutputFullPath>$(MSBuildThisFileDirectory)bin\$(Configuration)-$(TargetFramework.ToLowerInvariant())\</ToolOutputFullPath>
12-
<TestOutputFullPath>$(MSBuildThisFileDirectory)bin\Test$(Configuration)-$(TargetFramework.ToLowerInvariant())\</TestOutputFullPath>
8+
<PropertyGroup>
9+
<IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)-$(DotNetTargetFramework.ToLowerInvariant())\</IntermediateOutputPath>
10+
<BuildToolOutputFullPathNoTF>$(MSBuildThisFileDirectory)bin\Build$(Configuration)\</BuildToolOutputFullPathNoTF>
11+
<BuildToolOutputFullPath>$(MSBuildThisFileDirectory)bin\Build$(Configuration)-$(DotNetTargetFramework.ToLowerInvariant())\</BuildToolOutputFullPath>
12+
<ToolOutputFullPath>$(MSBuildThisFileDirectory)bin\$(Configuration)-$(DotNetTargetFramework.ToLowerInvariant())\</ToolOutputFullPath>
13+
<TestOutputFullPath>$(MSBuildThisFileDirectory)bin\Test$(Configuration)-$(DotNetTargetFramework.ToLowerInvariant())\</TestOutputFullPath>
1314
<UtilityOutputFullPath Condition=" '$(UtilityOutputFullPathCoreApps)' != '' ">$(UtilityOutputFullPathCoreApps)</UtilityOutputFullPath>
1415
<UtilityOutputFullPath Condition=" '$(UtilityOutputFullPathCoreApps)' == '' ">$(ToolOutputFullPath)</UtilityOutputFullPath>
1516
<_XamarinAndroidCecilPath Condition=" '$(CecilSourceDirectory)' != '' And Exists('$(UtilityOutputFullPathCoreApps)Xamarin.Android.Cecil.dll') ">$(UtilityOutputFullPathCoreApps)Xamarin.Android.Cecil.dll</_XamarinAndroidCecilPath>
@@ -18,7 +19,7 @@
1819
<JICoreLibVersion>$(JINetCoreLibVersion)</JICoreLibVersion>
1920
</PropertyGroup>
2021

21-
<PropertyGroup Condition=" '$(JIBuildingForNetCoreApp)' != 'True' ">
22+
<!--<PropertyGroup Condition=" '$(JIBuildingForNetCoreApp)' != 'True' ">
2223
<IntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)</IntermediateOutputPath>
2324
<BuildToolOutputFullPath>$(MSBuildThisFileDirectory)bin\Build$(Configuration)\</BuildToolOutputFullPath>
2425
<ToolOutputFullPath>$(MSBuildThisFileDirectory)bin\$(Configuration)\</ToolOutputFullPath>
@@ -27,14 +28,12 @@
2728
<_XamarinAndroidCecilPath Condition=" '$(CecilSourceDirectory)' != '' And Exists('$(UtilityOutputFullPath)Xamarin.Android.Cecil.dll') ">$(UtilityOutputFullPath)Xamarin.Android.Cecil.dll</_XamarinAndroidCecilPath>
2829
<JIUtilityVersion>$(JIOldToolVersion)</JIUtilityVersion>
2930
<JICoreLibVersion>$(JIOldCoreLibVersion)</JICoreLibVersion>
30-
</PropertyGroup>
31+
</PropertyGroup>-->
3132

3233
<PropertyGroup>
3334
<Runtime Condition="'$(OS)' != 'Windows_NT'">mono</Runtime>
34-
<_JNIEnvGenPath Condition=" '$(JIBuildingForNetCoreApp)' == 'True' ">$(BuildToolOutputFullPath)jnienv-gen.dll</_JNIEnvGenPath>
35-
<_JNIEnvGenPath Condition=" '$(JIBuildingForNetCoreApp)' != 'True' ">$(BuildToolOutputFullPath)jnienv-gen.exe</_JNIEnvGenPath>
36-
<_RunJNIEnvGen Condition=" '$(JIBuildingForNetCoreApp)' == 'True' ">$(DotnetToolPath) "$(_JNIEnvGenPath)"</_RunJNIEnvGen>
37-
<_RunJNIEnvGen Condition=" '$(JIBuildingForNetCoreApp)' != 'True' ">$(Runtime) "$(_JNIEnvGenPath)"</_RunJNIEnvGen>
35+
<_JNIEnvGenPath>$(BuildToolOutputFullPath)jnienv-gen.dll</_JNIEnvGenPath>
36+
<_RunJNIEnvGen>$(DotnetToolPath) "$(_JNIEnvGenPath)"</_RunJNIEnvGen>
3837
</PropertyGroup>
3938

4039
<!-- The net6.0 versions of these are stricter and require overloads not available in .NET Framework, so start with just .NET Framework -->

build-tools/Java.Interop.BootstrapTasks/Java.Interop.BootstrapTasks.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
<Import Project="..\..\TargetFrameworkDependentValues.props" />
99

1010
<PropertyGroup>
11-
<OutputPath>$(BuildToolOutputFullPath)</OutputPath>
11+
<OutputPath>$(BuildToolOutputFullPathNoTF)</OutputPath>
1212
</PropertyGroup>
1313

1414
<PropertyGroup>
15-
<OutputPath>$(BuildToolOutputFullPath)</OutputPath>
15+
<OutputPath>$(BuildToolOutputFullPathNoTF)</OutputPath>
1616
<GitDefaultBranch>main</GitDefaultBranch>
1717
<GitThisAssembly>false</GitThisAssembly>
1818
</PropertyGroup>

build-tools/automation/templates/core-tests.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -76,16 +76,6 @@ steps:
7676
arguments: bin/Test$(Build.Configuration)$(NetCoreTargetFrameworkPathSuffix)/Xamarin.SourceWriter-Tests.dll
7777
continueOnError: true
7878

79-
- task: DotNetCoreCLI@2
80-
displayName: 'Tests: Java.Interop'
81-
condition: eq('${{ parameters.runNativeTests }}', 'true')
82-
inputs:
83-
command: test
84-
testRunTitle: Java.Interop (netstandard2.0 - ${{ parameters.platformName }})
85-
arguments: bin/Test$(Build.Configuration)/Java.Interop-Tests.dll
86-
continueOnError: true
87-
retryCountOnTaskFailure: 1
88-
8979
- task: DotNetCoreCLI@2
9080
displayName: 'Tests: Java.Interop'
9181
condition: or(eq('${{ parameters.runNativeDotnetTests }}', 'true'), eq('${{ parameters.runNativeTests }}', 'true'))

tests/Java.Interop-Tests/Java.Interop-Tests.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
Lines="@(_Source)"
1414
Overwrite="True"
1515
/>
16-
<Exec Command="&quot;$(JavaCPath)&quot; $(_JavacSourceOptions) -d &quot;$(IntermediateOutputPath)it-classes&quot; -classpath &quot;$(OutputPath)../$(Configuration)-$(DotNetTargetFramework)/java-interop.jar&quot; &quot;@$(IntermediateOutputPath)_java_sources.txt&quot;" />
16+
<Exec Command="&quot;$(JavaCPath)&quot; $(_JavacSourceOptions) -d &quot;$(IntermediateOutputPath)it-classes&quot; -classpath &quot;$(OutputPath)java-interop.jar&quot; &quot;@$(IntermediateOutputPath)_java_sources.txt&quot;" />
1717
<Delete Files="$(IntermediateOutputPath)_java_sources.txt" />
18-
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)../$(Configuration)-$(DotNetTargetFramework)/interop-test.jar&quot; -C &quot;$(IntermediateOutputPath)it-classes&quot; ." />
18+
<Exec Command="&quot;$(JarPath)&quot; cf &quot;$(OutputPath)interop-test.jar&quot; -C &quot;$(IntermediateOutputPath)it-classes&quot; ." />
1919
</Target>
2020

2121
</Project>

tests/Java.Interop.Export-Tests/Java.Interop.Export-Tests.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@
3434

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

4141
</Project>

0 commit comments

Comments
 (0)