Skip to content

Commit

Permalink
Fixing path for artifactsUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavparikh committed Jan 22, 2014
1 parent b1c338a commit 1c4531e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/util/arrowsetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@ ArrowSetup.prototype.setupReportDir = function (cb) {

if (this.argv.report || this.argv.reportFolder) {
// Get path till arrow-report directory
// reportFolderPath = path.resolve(targetFolderPath, arrowReportDir);
reportFolderPath = path.join(targetFolderPath, arrowReportDir);
reportFolderPath = path.resolve(targetFolderPath, arrowReportDir);
// Create arrow-report directory
fileUtil.createDirectory(reportFolderPath);

Expand All @@ -290,7 +289,7 @@ ArrowSetup.prototype.setupReportDir = function (cb) {
}
if (artifactsUrl) {
console.log('****Setup report dir, artifactsUrl:' + artifactsUrl);
artifactsUrl = url.resolve(artifactsUrl , targetFolderRelPath);
artifactsUrl = path.join(artifactsUrl , targetFolderRelPath);
console.log('****Setup report dir, after resolving:' + artifactsUrl);
global.artifactsUrl = artifactsUrl;
}
Expand Down

0 comments on commit 1c4531e

Please sign in to comment.