Redirecting verbose output of YUI Compressor to a file

I call the YUI compressor as follows:

C:\Program Files (x86)\Java\jre6\bin>java -jar c:\min\yuicompressor-2.4.2.jar -v c:\min\file1.js -o c:\min\file1-min.js > c:\min\output.txt

Is there any way to get verbose output to a file?

Ive tried> c: \ min \ output.txt (as above), but it just creates empty files.

Thank.

+3
source share
1 answer

Answering an old question, because today I ran into the same problem.

It seems that verbose output is directed to standard error output, so ... Replace "> c: \ min \ output.txt" with "2> c: \ min \ output.txt"

+1
source

Source: https://habr.com/ru/post/1769779/


All Articles