google-code-export / wro4j

Automatically exported from code.google.com/p/wro4j
1 stars 1 forks source link

wro4j-maven-plugin : cssUrlRewriting act differently on Windows and Linux #865

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Reported on github: https://github.com/alexo/wro4j/issues/177

When using wro4j-maven-plugin v1.7.4. I think there is a kind of path separator 
problem (Windows) because when I run a build of my project with maven 3.2.1 
(via Eclipse or mvn command line), in debug mode, I get the following output.

On windows :

[DEBUG] Applying CssUrlRewritingProcessor processor
[DEBUG] cssUri: /resources/assets/select2/select2.css
[DEBUG] Matched group: url('select2.png')
[DEBUG] No @import detected
[DEBUG] originalDeclaration: url('select2.png')
[DEBUG] originalUrl: select2.png
[DEBUG] aggregatedFolderPath: \resources\css
[DEBUG] subfolders [\resources\css]
[DEBUG] computedPrefix: ..
[DEBUG] computed aggregatedPathPrefix ..
...
On Linux :

[DEBUG] Applying CssUrlRewritingProcessor processor
[DEBUG] cssUri: /resources/assets/select2/select2.css
[DEBUG] Matched group: url('select2.png')
[DEBUG] No @import detected
[DEBUG] originalDeclaration: url('select2.png')
[DEBUG] originalUrl: select2.png
[DEBUG] aggregatedFolderPath: /resources/css
[DEBUG] subfolders [, resources, css]
[DEBUG] computedPrefix: ../..
[DEBUG] computed aggregatedPathPrefix ../..
We can see that the subfolders output is different, because of the split on the 
aggregatedFolderPath with '/'.

Original issue reported on code.google.com by alex.obj...@gmail.com on 3 Apr 2014 at 7:07

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.7.x

Original comment by alex.obj...@gmail.com on 3 Apr 2014 at 7:27

GoogleCodeExporter commented 9 years ago
Reopened, as the problem doesn't seem to be fixed.

Original comment by alex.obj...@gmail.com on 26 May 2014 at 12:24

GoogleCodeExporter commented 9 years ago
Fixed in branch 1.7.x.

Original comment by alex.obj...@gmail.com on 26 May 2014 at 1:31