From 8e25496fc8fc969b2cd68c3adf959dafc23db3aa Mon Sep 17 00:00:00 2001 From: masesdevelopers <94312179+masesdevelopers@users.noreply.github.com> Date: Mon, 6 Nov 2023 21:36:14 +0100 Subject: [PATCH] Fix path resolution --- src/net/engine/JavaBuilder.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/engine/JavaBuilder.cs b/src/net/engine/JavaBuilder.cs index 0069e2b0960..e0e17377dd1 100644 --- a/src/net/engine/JavaBuilder.cs +++ b/src/net/engine/JavaBuilder.cs @@ -165,7 +165,7 @@ async static Task CreateSourceListAndCompile(string jdkFolder, JDKVersion j var folder = Path.Combine(originFolder, assembly); if (assembly == Const.FileNameAndDirectory.CommonDirectory) { - folder = Path.Combine(rootFolder, Const.FileNameAndDirectory.RootDirectory, Const.FileNameAndDirectory.SourceDirectory, Const.FileNameAndDirectory.CommonDirectory); + folder = Path.Combine(originFolder, Const.FileNameAndDirectory.CommonDirectory); } foreach (var item in Directory.EnumerateFiles(folder, "*.java", SearchOption.AllDirectories)) @@ -202,7 +202,7 @@ static async Task CreateSourceListAndGenerateDocs(string jdkFolder, JDKVers var folder = Path.Combine(originFolder, assembly); if (assembly == Const.FileNameAndDirectory.CommonDirectory) { - folder = Path.Combine(rootFolder, Const.FileNameAndDirectory.RootDirectory, Const.FileNameAndDirectory.SourceDirectory, Const.FileNameAndDirectory.CommonDirectory); + folder = Path.Combine(originFolder, Const.FileNameAndDirectory.CommonDirectory); } foreach (var item in Directory.EnumerateFiles(folder, "*.java", SearchOption.AllDirectories))