You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to use the compressor as "java -jar E:/yuicompressor-2.4.8.jar --type js --charset UTF-8 E:/tmp/src/my.js -o E:/tmp/src/my.min.js" . When run the command, I got an error like "java.io.FileNotFoundException: \tmp\src\my.min.js:\tmp\src\my.js". The full stack is:
java.io.FileNotFoundException: \tmp\src\my.min.js:\tmp\src\my.js
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:101)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:204)
The text was updated successfully, but these errors were encountered:
I found a comment in class named YUICompressor, line number 159. Code is:
// if a substitution pattern was passed in
if (pattern.length > 1 && files.size() > 0) {
outputFilename = inputFilename.replaceFirst(pattern[0], pattern[1]);
}
The code block replaced the absolute path .
I tried to use the compressor as "java -jar E:/yuicompressor-2.4.8.jar --type js --charset UTF-8 E:/tmp/src/my.js -o E:/tmp/src/my.min.js" . When run the command, I got an error like "java.io.FileNotFoundException: \tmp\src\my.min.js:\tmp\src\my.js". The full stack is:
java.io.FileNotFoundException: \tmp\src\my.min.js:\tmp\src\my.js
at java.io.FileOutputStream.open0(Native Method)
at java.io.FileOutputStream.open(FileOutputStream.java:270)
at java.io.FileOutputStream.(FileOutputStream.java:213)
at java.io.FileOutputStream.(FileOutputStream.java:101)
at com.yahoo.platform.yui.compressor.YUICompressor.main(YUICompressor.java:204)
The text was updated successfully, but these errors were encountered: