Skip to content

Commit

Permalink
Better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
litetex committed Dec 19, 2020
1 parent 2193b86 commit 66f3558
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Aves/Runner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ private void Init()

private string TryFindJavaExe()
{
Log.Info("Looking up Java...");

string javaExePath = BuildPathForExecutableLocation(nameof(Config.JavaExePath), Config.JavaExePath);
Log.Info("Checking configuration");
if (!string.IsNullOrEmpty(javaExePath))
{
if (File.Exists(javaExePath))
Expand All @@ -198,6 +201,7 @@ private string TryFindJavaExe()
Log.Warn($"Found location of java[='{javaExePath}'] in configuration, but was invalid. Trying to find java...");
}

Log.Info("Checking env for JAVA_HOME");
javaExePath = Environment.GetEnvironmentVariable("JAVA_HOME");
if (!string.IsNullOrEmpty(javaExePath))
{
Expand All @@ -209,6 +213,7 @@ private string TryFindJavaExe()
}
}

Log.Info("Checking cli");
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Log.Info("Running on commandline[CMD]");
Expand Down

0 comments on commit 66f3558

Please sign in to comment.