Skip to content
This repository has been archived by the owner on Nov 30, 2017. It is now read-only.

Commit

Permalink
Set the output directory for the bdio file to be in the rootProject's…
Browse files Browse the repository at this point in the history
… build directory.
  • Loading branch information
blackduck-readonly committed Sep 9, 2016
1 parent 5b771fb commit 415aeca
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ public class BdioHelper {
public BdioHelper(final Project project) {
this.project = project;
}

public void setBlackDuckReports(File blackDuckReports){
this.blackDuckReports = blackDuckReports;
}

public File getBlackDuckReports(){
return this.blackDuckReports;
}

public boolean ensureReportsDirectoryExists() {
File reportsDirectory;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public void handleBdioOutput() throws IOException {
getProjectDependencies(childProject, children);
}
logger.info("creating bdio file");
bdioHelper.setBlackDuckReports(new File(rootProject.getBuildDir(), "blackduck"));
final File file = bdioHelper.getBdioFile(rootProject);
try (final OutputStream outputStream = new FileOutputStream(file)) {
final BdioConverter bdioConverter = new BdioConverter();
Expand Down

0 comments on commit 415aeca

Please sign in to comment.