Skip to content

Commit ad20f17

Browse files
committed
Merge pull request #1422 from Inori/cookbook/assetic-yui-windows
Added note about java bin location when using yui compressor on windows
2 parents 0fe6e7f + 9109711 commit ad20f17

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cookbook/assetic/yuicompressor.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ stylesheets:
2727
2828
# app/config/config.yml
2929
assetic:
30+
# java: "/usr/bin/java"
3031
filters:
3132
yui_css:
3233
jar: "%kernel.root_dir%/Resources/java/yuicompressor.jar"
@@ -49,6 +50,7 @@ stylesheets:
4950
5051
// app/config/config.php
5152
$container->loadFromExtension('assetic', array(
53+
// 'java' => '/usr/bin/java',
5254
'filters' => array(
5355
'yui_css' => array(
5456
'jar' => '%kernel.root_dir%/Resources/java/yuicompressor.jar',
@@ -58,6 +60,11 @@ stylesheets:
5860
),
5961
),
6062
));
63+
64+
.. note::
65+
66+
Windows users need to remember to update config to proper java location.
67+
In Windows7 x64 bit by default it's `C:\Program Files (x86)\Java\jre6\bin\java.exe`.
6168

6269
You now have access to two new Assetic filters in your application:
6370
``yui_css`` and ``yui_js``. These will use the YUI Compressor to minify

0 commit comments

Comments
 (0)