Skip to content

Commit

Permalink
Merge pull request #129 from mirkosertic/master
Browse files Browse the repository at this point in the history
Fix for #126
  • Loading branch information
pjagielski committed Jan 28, 2016
2 parents fd7bd86 + 3a54cd9 commit 83b35c7
Showing 1 changed file with 14 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,20 @@ private String getIssueFilePath(String issueComponent, Map<String, Component> co
Component comp = components.get(issueComponent);
String file = comp.path;
if (!Strings.isNullOrEmpty(comp.moduleKey)) {
Component moduleComp = components.get(comp.moduleKey);
if (!Strings.isNullOrEmpty(moduleComp.path)) {
file = moduleComp.path + '/' + file;
String theKey = comp.moduleKey;
while (!theKey.isEmpty()) {
Component theChildComp = components.get(theKey);

int p = theKey.lastIndexOf(":");
if (p > 0) {
theKey = theKey.substring(0, p);
} else {
theKey = "";
}

if (theChildComp != null && !Strings.isNullOrEmpty(theChildComp.path)) {
file = theChildComp.path + '/' + file;
}
}
}
return file;
Expand Down

0 comments on commit 83b35c7

Please sign in to comment.