You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2021/04/09 10:00:01 UTC
[isis] branch master updated: ISIS-2602: Tooling: fix overviewPath
and indexPath to be relative to the project's root
This is an automated email from the ASF dual-hosted git repository.
ahuber pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/isis.git
The following commit(s) were added to refs/heads/master by this push:
new 009d8b0 ISIS-2602: Tooling: fix overviewPath and indexPath to be relative to the project's root
009d8b0 is described below
commit 009d8b0153ced5d88b4a6dabcdb9449360a7195a
Author: ahuber@apache.org <ah...@luna>
AuthorDate: Fri Apr 9 11:59:51 2021 +0200
ISIS-2602: Tooling: fix overviewPath and indexPath to be relative to the
project's root
---
tooling/cli/src/main/java/org/apache/isis/tooling/cli/Cli.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/tooling/cli/src/main/java/org/apache/isis/tooling/cli/Cli.java b/tooling/cli/src/main/java/org/apache/isis/tooling/cli/Cli.java
index d1be26d..561533e 100644
--- a/tooling/cli/src/main/java/org/apache/isis/tooling/cli/Cli.java
+++ b/tooling/cli/src/main/java/org/apache/isis/tooling/cli/Cli.java
@@ -75,14 +75,14 @@ class Cli implements Callable<Integer> {
public File getOverviewPath() {
return overviewPath !=null
- ? new File(overviewPath)
- : new File(".");
+ ? new File(getProjectRoot(), overviewPath)
+ : getProjectRoot();
}
public File getIndexPath() {
return indexPath !=null
- ? new File(indexPath)
- : new File(".");
+ ? new File(getProjectRoot(), indexPath)
+ : getProjectRoot();
}
@Override