Skip to content

Commit

Permalink
Features/151 generate sipoc diagram at each level (#304)
Browse files Browse the repository at this point in the history
Fixes #151 
---------

Co-authored-by: Nicolas Delsaux <nicolas.delsaux@gmx.fr>
  • Loading branch information
Se-C12 and Riduidel authored Mar 17, 2023
1 parent a1a657a commit 292dc14
Show file tree
Hide file tree
Showing 14 changed files with 666 additions and 231 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ public Map<String, String> getProperties() {
public String getPropertyValue(String key) {
switch(key) {
case "project.basedir":
return computePathMatching(basedir -> new File(basedir, ".git").exists());
return computeBasedir();
case "project.build.directory":
return computePathMatching(buildDir -> new File(buildDir, "target").exists() && new File(buildDir, "target").isDirectory());
return computeBuildDirectory();
default:
return null;
}
}

private String computeBuildDirectory() {
return computePathMatching(file -> new File(file, "target").exists() && new File(file, "target").isDirectory());
return computePathMatching(file -> new File(file, "target").exists() && new File(file, "target").isDirectory())+"/target";
}

private String computeBasedir() {
Expand Down
Loading

0 comments on commit 292dc14

Please sign in to comment.