mojarra
mojarra copied to clipboard
Windows paths passed to yuicompressor are mangled
Cloned MOJARRA_2_3X_ROLLING, and ran the two mvn clean install steps.
During "impl", yuicompressor receives the input/output paths and is stripping off the drive name and path separators (probably because they aren't escaped). Not sure why this wouldn't affect other contributors building on Windows.
mvn output showing "correct" paths being passed to yuicompressor as arguments.
[ERROR] around Ant part ...<java args="-o C:\GitRepository\mojarra\impl\target/generated-resources/antrun/META-INF/resources/javax.faces/jsf.js C:\GitRepository\mojarra\impl\target/generated-resources/antrun/META-INF/resources/javax.faces/jsf-uncompressed.js" fork="true" jar="yuicompressor.jar" failonerror="true"/>... @ 50:292 in C:\GitRepository\mojarra\impl\target\antrun\build-main.xml
[ERROR] -> [Help 1]
The Exception showing the paths being mangled
[java] java.io.FileNotFoundException: GitRepositorymojarraimpltarget\generated-resources\antrun\META-INF\resources\javax.faces\jsf.js:\GitRepository\mojarra\impl\target\generated-resources\antrun\META-INF\resources\javax.faces\jsf-uncompressed.js (The filename, directory name, or volume label syntax is incorrect)
[java] at java.io.FileOutputStream.open0(Native Method)
[java] at java.io.FileOutputStream.open(FileOutputStream.java:270)
[java] at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
[java] at java.io.FileOutputStream.<init>(FileOutputStream.java:101)
[java] at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:183)
- On cmd prompt, running yuicompressor directly fails when passed "C:\GitRepository\mojarra....". Somewhat verifying it is an issue with the paths and not eclipse/mvn/etc.
- Works if I update pom.xml to use relative paths for the yuicompressor args (removing project.build.directory)
- Works if I update pom.xml to have hardcoded paths with sufficient escape characters on the backslashes.