Reputation: 41
I used this command:
java -jar yuicompressor-2.4.7.jar -o '.js$:-min.js' *.js
and I got 0KB file named '.js$
on windows 7
why?
what should I do to compress batch js files?
Upvotes: 0
Views: 1006
Reputation: 5154
The following command worked for me (on Win7 without any quote), but I have no idea why.
java -jar yuicompressor-2.4.7.jar -o .js$:-min.js *.js
It would be really appreciated if anybody could share some insight. Thanks in advance.
EDIT:
I've created a simple batch file (name it as test.bat
) with the following contents trying to figure out what actually happens.
@echo off
for %%a in (%*) do (
echo %%a
)
When I run it with test.bat -o '.js$:-min.js' *s
, it gave out something like this:
-o
'.js$:-min.js'
fb.js
test.cs
test.js
So I think the command prompt doesn't process the quotation marks in the way of *nix.
Upvotes: 1