Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BA928200BB7 for ; Wed, 9 Nov 2016 19:00:04 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B939C160AFA; Wed, 9 Nov 2016 18:00:04 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0BB0E160AEB for ; Wed, 9 Nov 2016 19:00:03 +0100 (CET) Received: (qmail 17439 invoked by uid 500); 9 Nov 2016 18:00:03 -0000 Mailing-List: contact commits-help@guacamole.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@guacamole.incubator.apache.org Delivered-To: mailing list commits@guacamole.incubator.apache.org Received: (qmail 17429 invoked by uid 99); 9 Nov 2016 18:00:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2016 18:00:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id C511C1A016A for ; Wed, 9 Nov 2016 18:00:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id y5l4JFP5VE9f for ; Wed, 9 Nov 2016 18:00:00 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with SMTP id 90F3A5F19B for ; Wed, 9 Nov 2016 17:59:59 +0000 (UTC) Received: (qmail 17291 invoked by uid 99); 9 Nov 2016 17:59:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Nov 2016 17:59:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8E84B2C2A68 for ; Wed, 9 Nov 2016 17:59:58 +0000 (UTC) Date: Wed, 9 Nov 2016 17:59:58 +0000 (UTC) From: "Michael Jumper (JIRA)" To: commits@guacamole.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (GUACAMOLE-116) Please strip pre-built minified JavaScript libraries from source tarballl MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 09 Nov 2016 18:00:04 -0000 [ https://issues.apache.org/jira/browse/GUACAMOLE-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15651593#comment-15651593 ] Michael Jumper commented on GUACAMOLE-116: ------------------------------------------ From what I recall, this was our original intent, but Google Closure Compiler failed to compile the non-minified version of AngularJS due to the use of reserved words for variable names: {code:none} ... Creating merged file [guacamole.js]. Creating minified file [guacamole.min.css]. Creating minified file [guacamole.min.js]. [guacamole.js:9630] missing ( before function parameters. [guacamole.js:9630] missing } after function body [guacamole.js:9632] syntax error [guacamole.js:9635] missing ; before statement [guacamole.js:9637] syntax error [guacamole.js:9655] missing ; before statement [guacamole.js:9656] syntax error [guacamole.js:19809] identifier is a reserved word [guacamole.js:25300] identifier is a reserved word [guacamole.js:25300] illegal character [guacamole.js:25300] syntax error [guacamole.js:25301] syntax error [guacamole.js:25302] syntax error [guacamole.js:25303] syntax error [guacamole.js:25304] syntax error [guacamole.js:25305] syntax error [guacamole.js:25306] syntax error [guacamole.js:25307] syntax error [guacamole.js:26622] identifier is a reserved word [guacamole.js:26623] identifier is a reserved word [guacamole.js:26625] identifier is a reserved word [guacamole.js:26626] identifier is a reserved word [guacamole.js:26627] identifier is a reserved word [guacamole.js:26628] identifier is a reserved word [guacamole.js:26645] identifier is a reserved word [guacamole.js:26838] identifier is a reserved word [guacamole.js:35580] identifier is a reserved word [guacamole.js:35600] identifier is a reserved word [guacamole.js:35613] invalid return [guacamole.js:35626] syntax error [guacamole.js:1] Compilation produced 30 syntax errors. {code} Apparently newer versions of the compiler do not suffer from this problem, as newer versions of ECMAScript do not reserve those words: http://stackoverflow.com/questions/18539486/angularjs-failing-to-compile-with-google-closure-app-ant With that in mind, I just tried upgrading the {{minify-maven-plugin}} to a newer version (1.7.5), and the build errors disappear, though additional JSDoc-related warnings appear which would need to be suppressed within the pom.xml, again due to AngularJS: {code:xml} OFF OFF {code} While I am also curious what distribution requirements [~Natureshadow] is referring to, this is a problem even without such requirements. Source should not bundle pre-compiled artifacts. It's simply a problem we've been forced to accept due to the limitations of the build. Now that those limitations seem to be gone, I would be very much in favor of fixing this. > Please strip pre-built minified JavaScript libraries from source tarballl > ------------------------------------------------------------------------- > > Key: GUACAMOLE-116 > URL: https://issues.apache.org/jira/browse/GUACAMOLE-116 > Project: Guacamole > Issue Type: Improvement > Components: guacamole-client > Affects Versions: 0.9.9 > Reporter: Dominik George > Priority: Minor > > Please do not ship pre-built minified versions of JavaScript libraries, like angularjs.min.js, with the source tarball. > They should be recreated at build time, and having them in the source tarball is an issue for distributions. -- This message was sent by Atlassian JIRA (v6.3.4#6332)