diff --git a/codeflash/languages/java/maven_strategy.py b/codeflash/languages/java/maven_strategy.py index a37ce2828..833d4ff1b 100644 --- a/codeflash/languages/java/maven_strategy.py +++ b/codeflash/languages/java/maven_strategy.py @@ -22,6 +22,8 @@ is_jacoco_configured, ) +_TARGET = "target" + logger = logging.getLogger(__name__) # Skip validation/analysis plugins that reject generated instrumented files @@ -238,8 +240,8 @@ def get_reports_dir(self, build_root: Path, test_module: str | None) -> Path: def get_build_output_dir(self, build_root: Path, test_module: str | None) -> Path: if test_module: - return build_root / test_module / "target" - return build_root / "target" + return build_root.joinpath(test_module, _TARGET) + return build_root.joinpath(_TARGET) def run_tests_via_build_tool( self,