github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

yui / builder

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 79
    • 24
  • Source
  • Commits
  • Network (24)
  • Downloads (54)
  • Graphs
  • Tree: b6ecbfb

click here to add a description

click here to add a homepage

  • Switch Branches (1)
    • master
  • Switch Tags (54)
    • builder-53
    • builder-52
    • builder-51
    • builder-50
    • builder-49
    • builder-48
    • builder-47
    • builder-46
    • builder-45
    • builder-44
    • builder-43
    • builder-42
    • builder-41
    • builder-40
    • builder-39
    • builder-38
    • builder-37
    • builder-36
    • builder-35
    • builder-34
    • builder-33
    • builder-32
    • builder-31
    • builder-30
    • builder-29
    • builder-28
    • builder-27
    • builder-26
    • builder-25
    • builder-24
    • builder-23
    • builder-22
    • builder-21
    • builder-20
    • builder-19
    • builder-18
    • builder-17
    • builder-16
    • builder-15
    • builder-14
    • builder-13
    • builder-12
    • builder-11
    • builder-10
    • builder-9
    • builder-8
    • builder-7
    • builder-6
    • builder-5
    • builder-4
    • builder-3
    • builder-2
    • builder-1
    • builder-0
  • Comments
  • Contributors
Sending Request…

YUI Build Tool — Read more

  Cancel

http://yuilibrary.com/projects/builder

  Cancel
  • HTTP
  • Git Read-Only

This URL has Read+Write access

Added charset argument for yuicompressor. Defaults to utf-8. Overrideable using 
yuicompressor.js.charset and yuicompressor.css.charset
sdesai (author)
Thu Feb 11 20:03:49 -0800 2010
commit  b6ecbfbb803f5559148a
tree    fd3aa00ad25752da5c53
parent  7840dd727c88f48741f9
M componentbuild/docs/properties.html 10 •••••
M componentbuild/shared/properties.xml 7 ••••
Txt componentbuild/docs/properties.html
  • View file @ b6ecbfb
... ...
@@ -303,6 +303,16 @@
303 303
                     <td>Whether or not YUI Compressor should run with verbose output enabled for CSS compession.</td>
304 304
                     <td class="default">true</td>
305 305
                 </tr>
  306
+                <tr>
  307
+                    <td class="term">yuicompressor.js.charset</td>
  308
+                    <td>The charset to use both for reading the js file to compress and when writing the generated min file.</td>
  309
+                    <td class="default">utf-8</td>
  310
+                </tr>
  311
+                <tr>
  312
+                    <td class="term">yuicompressor.css.charset</td>
  313
+                    <td>The charset to use both for reading the css file to compress and when writing the generated min file.</td>
  314
+                    <td class="default">utf-8</td>
  315
+                </tr>
306 316
             </tbody>
307 317
         </table>
308 318
         <table class="desc">
Txt componentbuild/shared/properties.xml
  • View file @ b6ecbfb
... ...
@@ -31,15 +31,18 @@
31 31
     <property name="yuicompressor.css.args" value="--type css --line-break 6000" />
32 32
     <property name="yuicompressor.js.args" value="--disable-optimizations --preserve-semi --line-break 6000" />
33 33
 
  34
+    <property name="yuicompressor.js.charset" value="utf-8" />
  35
+    <property name="yuicompressor.css.charset" value="utf-8" />
  36
+
34 37
     <!-- Enable/Disable YUI Compressor verbosity. NOTE: Checked in build files should not disable this flag -->
35 38
     <property name="yuicompressor.js.verbose" value="true" />
36 39
     <property name="yuicompressor.css.verbose" value="true" />
37 40
 
38  
-    <condition property="yuicompressor.js.args.internal" value="-v ${yuicompressor.js.args}" else="${yuicompressor.js.args}">
  41
+    <condition property="yuicompressor.js.args.internal" value="-v --charset ${yuicompressor.js.charset} ${yuicompressor.js.args}" else="--charset ${yuicompressor.js.charset} ${yuicompressor.js.args}">
39 42
         <istrue value="${yuicompressor.js.verbose}" />
40 43
     </condition>
41 44
 
42  
-    <condition property="yuicompressor.css.args.internal" value="-v ${yuicompressor.css.args}" else="${yuicompressor.css.args}">
  45
+    <condition property="yuicompressor.css.args.internal" value="-v --charset ${yuicompressor.css.charset} ${yuicompressor.css.args}" else="--charset ${yuicompressor.css.charset} ${yuicompressor.css.args}">
43 46
         <istrue value="${yuicompressor.css.verbose}" />
44 47
     </condition>
45 48
 

0 notes on commit b6ecbfb

Please log in to comment.
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server
  • English
  • Català
  • Čeština
  • Deutsch
  • Español
  • Français
  • Hrvatski
  • Indonesia
  • Italiano
  • 日本語
  • Nederlands
  • Norsk
  • Polski
  • Português (BR)
  • Српски
  • Svenska
  • 中文