Skip to content
This repository has been archived by the owner on May 9, 2019. It is now read-only.

Commit

Permalink
Added prefix's to code location name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake Mathews committed Jul 31, 2017
1 parent bdda2ac commit 4f8c148
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ class DetectProject {
detectCodeLocations.add(detectCodeLocation)
}

public String getCodeLocationName(final BomToolType bomToolType, String finalSourcePathPiece, String suffix) {
String codeLocation = String.format('%s/%s/%s/%s %s', bomToolType.toString(), finalSourcePathPiece, projectName, projectVersionName, suffix)
public String getCodeLocationName(final BomToolType bomToolType, String finalSourcePathPiece, String prefix, String suffix) {
String codeLocation = String.format('%s/%s/%s/%s/%s %s', prefix, bomToolType.toString(), finalSourcePathPiece, projectName, projectVersionName, suffix)
codeLocation
}

public String getCodeLocationName(final String canonicalProjectSourcePath, final String canonicalCodeLocationSourcePath, String finalSourcePathPiece, String suffix) {
public String getCodeLocationName(final String canonicalProjectSourcePath, final String canonicalCodeLocationSourcePath, String finalSourcePathPiece, String prefix, String suffix) {
String sourcePath = canonicalCodeLocationSourcePath.replace(canonicalProjectSourcePath, finalSourcePathPiece);
String codeLocation = String.format('%s/%s/%s %s', sourcePath, projectName, projectVersionName, suffix)
String codeLocation = String.format('%s/%s/%s/%s %s', prefix, sourcePath, projectName, projectVersionName, suffix)
codeLocation
}

Expand Down

0 comments on commit 4f8c148

Please sign in to comment.