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

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jrichard committed Jul 31, 2017
1 parent 4f8c148 commit 2faf0d8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Expand Up @@ -18,7 +18,7 @@ tasks.withType(GroovyCompile) { options.encoding = 'UTF-8' }

group = 'com.blackducksoftware.integration'

version = '0.0.1-SNAPSHOT'
version = '0.0.1'

sourceCompatibility = 1.7
targetCompatibility = 1.7
Expand Down
Expand Up @@ -57,13 +57,19 @@ class DetectProject {
}

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)
String codeLocation = String.format('%s/%s/%s/%s %s', bomToolType.toString(), finalSourcePathPiece, projectName, projectVersionName, suffix)
if (prefix) {
codeLocation = String.format('%s/%s', prefix, codeLocation)
}
codeLocation
}

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 %s', prefix, sourcePath, projectName, projectVersionName, suffix)
String codeLocation = String.format('%s/%s/%s %s', sourcePath, projectName, projectVersionName, suffix)
if (prefix) {
codeLocation = String.format('%s/%s', prefix, codeLocation)
}
codeLocation
}

Expand Down

0 comments on commit 2faf0d8

Please sign in to comment.