Repository navigation
[Xamarin.Android.Build.Tasks] Remove the dead JarToXml task - #13489
Closed
simonrozsival wants to merge 1 commit into
Closed
simonrozsival wants to merge 1 commit into
simonrozsival wants to merge 1 commit into
Conversation
The `JarToXml` task and `Xamarin.Android.Bindings.JarToXml.targets` were unreachable: the SDK only imports `Xamarin.Android.Bindings.ClassParse.targets`, and `Microsoft.Android.Sdk.DefaultProperties.targets` unconditionally sets `$(AndroidClassParser)` to `class-parse`. Remove the task, its targets file, its packaging entry, its unit-test usages, the orphaned XA1021 resource and the `JTX` task prefix. The missing-SDK unit test now exercises the shared `TryGetAndroidJarPath` helper through `GetJavaPlatformJar`. Co-authored-by: Copilot App <[email protected]>
Member
Author
|
Folded into #13490, which also removes the rest of the unreachable legacy binding documentation path. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
JarToXmltask andXamarin.Android.Bindings.JarToXml.targetscan't be reached from any supported build.Microsoft.Android.Sdk.After.targetsimports onlyXamarin.Android.Bindings.ClassParse.targets, never the JarToXml targets.Microsoft.Android.Sdk.DefaultProperties.targetsalso sets$(AndroidClassParser)toclass-parseunconditionally, so a project settingjar2xmlhas no effect. The docs already say jar2xml is no longer supported (build-properties.md,OneDotNetBindingProjects.md). There's no user-facing switch left, so this PR doesn't add a new error or warning.Changes:
Tasks/JarToXml.csandXamarin.Android.Bindings.JarToXml.targets(which held the only<UsingTask/>), plus the<None/>item that copied the targets file to the output.XA1021resource fromResources.resxandResources.Designer.cs.messages/index.mdnow lists XA1021 as "No longer emitted by current SDKs". Drop theJTXtask prefix.JavaSourceUtilsstill emitsXA1020andXA1022, so they stay.ResolveSdksTaskTests: remove theJarToXmlcommand-line assertion and its helper subclass.PlatformJarWithMissingSdkDoesNotThrownow runsGetJavaPlatformJar, which uses the sameMonoAndroidHelper.TryGetAndroidJarPath()helper and expects the sameXA5300/XA5207errors.The ClassParse path is unchanged, including the
ExportJarToXmland_ExportJarToXmltarget names, which ClassParse still uses.Testing: I didn't run local builds or tests for this batch because the machine is low on disk space. CI needs to confirm that
Xamarin.Android.Build.Taskscompiles and thatResolveSdksTaskTestspasses.