diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-06-17 15:47:01 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-06-17 15:47:09 +0600 |
commit | c0c4754c018ca4d0a1d35612fa8c7ac94d7d6fb6 (patch) | |
tree | 0b279d978df3e581b6b8538d3500413d5ee21437 /sonar-server | |
parent | 0aeb1a216077e37f71ab769feb625b55d4281a17 (diff) | |
download | sonarqube-c0c4754c018ca4d0a1d35612fa8c7ac94d7d6fb6.tar.gz sonarqube-c0c4754c018ca4d0a1d35612fa8c7ac94d7d6fb6.zip |
SONAR-5331 Fix path issues
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/Gruntfile.coffee | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sonar-server/Gruntfile.coffee b/sonar-server/Gruntfile.coffee index 0ddb7765cf2..e4705a5ad93 100644 --- a/sonar-server/Gruntfile.coffee +++ b/sonar-server/Gruntfile.coffee @@ -1,5 +1,7 @@ module.exports = (grunt) -> - grunt.loadNpmTasks('grunt-karma'); + grunt.loadNpmTasks('grunt-karma') + pkg = grunt.file.readJSON('package.json') + grunt.initConfig pkg: grunt.file.readJSON('package.json') @@ -49,9 +51,9 @@ module.exports = (grunt) -> options: skipExternal: true rewriteUrl: (url, options, dataURI) -> - path = url.replace options.baseDir, '' + path = url.replace pkg.assets, '' hash = require('crypto').createHash('md5').update(dataURI).digest('hex') - "#{path}?#{hash}" + "../#{path}?#{hash}" coffee: |