Skip to content

Commit

Permalink
Dump entire javac response file, not just source files.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpryor committed Feb 2, 2024
1 parent feae564 commit 949536c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Xamarin.Android.Build.Tasks/Tasks/JavaCompileToolTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ private void GenerateResponseFile ()
foreach (var file in JavaSourceFiles.Where (p => Path.GetExtension (p.ItemSpec) == ".java")) {
var path = file.ItemSpec.Replace (@"\", @"\\");
sw.WriteLine (string.Format ("\"{0}\"", path));
Log.LogDebugMessage ($"javac source: {path}");
}

if (string.IsNullOrEmpty (StubSourceDirectory))
Expand All @@ -92,9 +91,12 @@ private void GenerateResponseFile ()
var path = file.Replace (@"\", @"\\").Normalize (NormalizationForm.FormC);
sw.WriteLine (string.Format ("\"{0}\"",
path));
Log.LogDebugMessage ($"javac source: {path}");
}
}
Log.LogDebugMessage ($"javac response file contents: {TemporarySourceListFile}")
foreach (var line in File.ReadLines (TemporarySourceListFile)) {
Log.LogDebugMessage ($" {line}");
}
}
}
}

0 comments on commit 949536c

Please sign in to comment.