google-code-export / wro4j

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

setting up encoding in command line #625

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
unable setting up encoding in command line tool,
I made ​​a little change to Wro4jCommandLineRunner,let it supporting 
setting up encoding,see attachment.
example:
-jar wro4j-runner-1.4.7-jar-with-dependencies.jar --wroFile $FilePath$ 
--encoding gb2312

Original issue reported on code.google.com by jinkerji...@gmail.com on 1 Dec 2012 at 4:50

Attachments:

GoogleCodeExporter commented 9 years ago
The latest version is 1.6.1. It should be possible to set incoding in 
wro.properties configuration file. Let me know if that works for you and I'll 
close this issue with INVALID resolution.

Original comment by alex.obj...@gmail.com on 2 Dec 2012 at 4:46

GoogleCodeExporter commented 9 years ago
Actually you are right.. it is not possible to configure wro4j-runner with 
wro.properties. I'll implement this feature.

Original comment by alex.obj...@gmail.com on 2 Dec 2012 at 4:48

GoogleCodeExporter commented 9 years ago

Original comment by alex.obj...@gmail.com on 2 Dec 2012 at 5:07

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

Now it is possible to apply various configurations by creating wro.properties 
file in current user directory. Read more about possible configurations here: 
http://code.google.com/p/wro4j/wiki/ConfigurationOptions

Original comment by alex.obj...@gmail.com on 2 Dec 2012 at 7:21

GoogleCodeExporter commented 9 years ago
The command line tool is not picking up uglifyJS and YUICssMin. also the Even 
when i mentioned the same processors as part of wro.properties files, it doesnt 
get picked up, instead i need to pass the them using --preProcessors and 
--postProcessors.

Original comment by chaitany...@gmail.com on 22 Jan 2013 at 6:57

GoogleCodeExporter commented 9 years ago
My Mistake, on command line tool the minifications is working if i add extra 
argument --minimize, but i don't understand why i need to do this. But as said 
in earlier comment, the properties for preProcessors, postProcessors, 
namingStrategy and hashStrategy specified under wro.properties are not getting 
pickedup.

Original comment by chaitany...@gmail.com on 22 Jan 2013 at 7:05

GoogleCodeExporter commented 9 years ago
The wro4j-runner does not pick-up the properties from wro.properties. If you 
need this feature, please create a feature request. 
The --minimize argument exist from a historical reason. Probably it doesn't 
make sense now. Feel free to create an issue for removing this argument.

Original comment by alex.obj...@gmail.com on 22 Jan 2013 at 9:41