ICEfaces
  1. ICEfaces
  2. ICE-9790

Replace YUI Compressor and ShrinkSafe JS minifiers with Google's Closure Compiler

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.BETA
    • Fix Version/s: 4.0.BETA, 4.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      java

      Description

      Try to replace YUI Compressor and ShrinkSafe JS minifiers with Google's Closure Compiler ( https://developers.google.com/closure/compiler/ ). This will allows us to use only one minification tool across all sub-projects.

        Activity

        Hide
        Mircea Toma added a comment - - edited

        1) The GMAp issue is caused by an evaluation of code that references a local variable. Since local variables are renamed by the compressor the evaluation fails.

        The fix changes slightly the code to avoid evaluating the local variables, instead evaluate only the passed in options which were meant to be evaluated.

        Show
        Mircea Toma added a comment - - edited 1) The GMAp issue is caused by an evaluation of code that references a local variable. Since local variables are renamed by the compressor the evaluation fails. The fix changes slightly the code to avoid evaluating the local variables, instead evaluate only the passed in options which were meant to be evaluated.
        Hide
        Mircea Toma added a comment -

        2) I cannot reproduce the warnings shown during the build. I even ran the build with code that was freshly check-out, the results was the same.

        Show
        Mircea Toma added a comment - 2) I cannot reproduce the warnings shown during the build. I even ran the build with code that was freshly check-out, the results was the same.
        Hide
        Ken Fyten added a comment -

        Note that ICEfaces 4 should use Ant 1.8.4 as a minimum version.

        Show
        Ken Fyten added a comment - Note that ICEfaces 4 should use Ant 1.8.4 as a minimum version.
        Hide
        Carmen Cristurean added a comment -

        Confirming that no warnings occur if building Icefaces4 with Ant 1.8.4.

        Show
        Carmen Cristurean added a comment - Confirming that no warnings occur if building Icefaces4 with Ant 1.8.4.
        Hide
        Mircea Toma added a comment -

        Created issue ICE-9809 to make sure the warnings are fixed, not just ignored.

        Show
        Mircea Toma added a comment - Created issue ICE-9809 to make sure the warnings are fixed, not just ignored.

          People

          • Assignee:
            Mircea Toma
            Reporter:
            Mircea Toma
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: