Skip to content

Commit

Permalink
Change output directory path for Datatables (#342)
Browse files Browse the repository at this point in the history
From "<repository top directory>/build/rewrite/datatables" to "<gradle project top directory>/build/reports/rewrite/datatables"
  • Loading branch information
yusasak1 authored Oct 28, 2024
1 parent 7ae98ee commit e1ecb67
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,7 @@ protected ResultsContainer listResults(ExecutionContext ctx) {

if (extension.isExportDatatables()) {
String timestamp = LocalDateTime.now().format(DateTimeFormatter.ofPattern("yyyy-MM-dd_HH-mm-ss-SSS"));
Path datatableDirectoryPath = Paths.get(baseDir.toString(), "build", "rewrite", "datatables", timestamp);
Path datatableDirectoryPath = project.getLayout().getBuildDirectory().dir("reports/rewrite/datatables/" + timestamp).get().getAsFile().toPath();
logger.info(String.format("Printing available datatables to: %s", datatableDirectoryPath));
recipeRun.exportDatatablesToCsv(datatableDirectoryPath, ctx);
}
Expand Down

0 comments on commit e1ecb67

Please sign in to comment.