xamarin-android/build-tools/xa-prep-tasks/Xamarin.Android.BuildTools....
Marek Habersack 791fedb57c
[Xamarin.Android.Build.Tasks] Add `RunWithLogging` target (#8324)
We are frequently faced with the need to look at some detailed
information optionally logged by our runtime (as well as by the
MonoVM runtime in dotnet/runtime), and in order to obtain the necessary
data, we ask our users to perform a series of steps on the command line.

This is a task we can easily wrap in a nice target, so that instead
of having to type 5 lines of commands the user instead invokes a
single command which will do the rest for them:

	dotnet build -t:RunWithLogging

The above command will:

 1. Set the `debug.mono.log` Android system property
 2. increase the `adb logcat` buffer size
 3. clear the `adb logcat` buffer,
 4. start the application waiting for it to be fully started
 5. pause for 1s
 6. dump the `adb logcat` buffer to a file.
 7. Print a message mentioning where the `adb logcat` output is.

The `$(RunLogVerbose)` MSBuild property can be used to increase
verbosity.  By default the `RunWithLogging` target will set
the `debug.mono.log` system property to:

	default,assembly,timing=bare

When `$(RunLogVerbose)`=true, `debug.mono.log` is instead set to:

	default,assembly,timing=bare,mono_log_level=debug,mono_log_mask=all

The `$(RunLogDelayInMS)` MSBuild property can be used to override the
pause in step (5).

The `$(_RunLogFilePath)` MSBuild property controls the output filename;
by default it is `$(IntermediateOutputPath)logcat.txt`.
2023-09-21 17:49:11 -04:00
..
AcceptAndroidSdkLicenses.cs [jdk] Don't require `javac`/`jar` in $PATH (#800) 2017-09-08 11:44:12 -04:00
CheckoutExternalGitDependency.cs [xa-prep-tasks] support https for git clone (#3020) 2019-04-24 12:07:09 -04:00
CreateFilePaths.cs [Linux] Add submodules to cross-build libmonodroid for Windows (#1729) 2018-05-25 22:19:59 -04:00
CreateThirdPartyNotices.cs [build] ThirdPartyNotices.txt support (#464) 2018-03-02 09:54:35 -05:00
DownloadUri.cs [lgtm] Fix LGTM-reported issues (#1074) 2023-02-14 08:08:29 -05:00
ErrorResultsHelper.cs [tests] Create NUnit failure when `<ProcessLogcatTiming/> fails (#2740) 2019-02-15 08:19:28 -05:00
Git.cs [optimization] Replace 'new T[0]' with 'Array.Empty<T> ()' to reduce allocations. (#6162) 2021-08-04 09:03:51 -05:00
GitBlame.cs [build] use relative paths for <GitBlame/> (#2594) 2019-01-10 15:06:13 -05:00
GitBranch.cs [build] Update Pipelines var used for branch name (#6085) 2021-07-14 10:56:21 -04:00
GitCommitHash.cs Bump to mono/mono/2018-06@cda3acc5 (#2301) 2018-10-17 10:19:16 -04:00
GitCommitInfo.cs [build] use RegisterTaskObject in <GitCommitInfo/> (#2811) 2019-03-10 10:34:27 -04:00
GitCommitTime.cs [xa-prep-tasks] Add <GitCommitTime/> (#734) 2017-08-10 15:43:02 -04:00
GitCommitsInRange.cs [Mono.Android] Generate AssemblyInformationalVersionAttribute (#259) 2016-10-11 16:51:19 +02:00
GitDiff.cs [xa-prep-tasks] Add <GitDiff/> Task (#4374) 2020-03-09 21:30:48 -04:00
HashFileContents.cs [xa-prep-tasks] HashFileContents should exclude line endings (#747) 2017-08-15 16:44:51 -04:00
NDKInfo.cs Build with Android NDK r19 2019-01-24 23:46:36 +01:00
ParseExternalGitDependencies.cs [build] Add support for commercial builds (#2845) 2019-04-10 14:59:39 -04:00
PathToolTask.cs [tests] Fix PathToolTask.ToolExe overriding (#904) 2017-09-29 10:15:04 -04:00
PrepareInstall.cs [build] Use Homebrew mingw-w64, not MXE (#2758) 2019-02-27 22:33:36 -05:00
ProcessApkSizes.cs [tests] Do not error when we shrink apk size (#4249) 2020-02-11 18:42:43 -05:00
ProcessLogcatTiming.cs [Mono.Android] Android API-29 enumification and stabilization (#3305) 2019-07-31 06:38:43 -04:00
ProcessPlotInput.cs [tests] Create NUnit failure when `<ProcessLogcatTiming/> fails (#2740) 2019-02-15 08:19:28 -05:00
ReplaceFileContents.cs [One .NET] Create Host OS specific SDK packs (#5245) 2020-11-05 12:12:43 -05:00
RunParallelTargets.cs [tests] Run tests in parallel (#2541) 2018-12-19 17:14:50 -05:00
SetEnvironmentVariable.cs [tests] migrate test targets to MSBuild (#949) 2017-11-08 15:38:27 -05:00
Sleep.cs [Xamarin.Android.Build.Tasks] Add `RunWithLogging` target (#8324) 2023-09-21 17:49:11 -04:00
SystemUnzip.cs [Xamarin.Android.Build.Tasks] fixes for case-insensitive FS (#3463) 2019-08-09 17:39:28 -04:00
Which.cs [xa-prep-tasks] <Which/> can try lowercase extensions (#3166) 2019-06-06 10:55:31 -04:00