From 6c00d8428c287e6c9d0016c82d00a328974f0094 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Wed, 15 Jan 2014 19:40:42 -0800 Subject: [PATCH] Migrate to minify-maven-plugin and Google Closure Compiler. --- guacamole-common-js/pom.xml | 42 +++++++++++-------- .../{resources => webapp}/common/license.js | 2 + .../modules/AudioChannel.js | 0 .../{resources => webapp}/modules/Client.js | 0 .../modules/InputStream.js | 0 .../modules/IntegerPool.js | 0 .../{resources => webapp}/modules/Keyboard.js | 0 .../{resources => webapp}/modules/Layer.js | 0 .../{resources => webapp}/modules/Mouse.js | 0 .../modules/OnScreenKeyboard.js | 0 .../modules/OutputStream.js | 0 .../{resources => webapp}/modules/Parser.js | 0 .../{resources => webapp}/modules/Tunnel.js | 0 guacamole-common-js/static.xml | 6 +-- 14 files changed, 29 insertions(+), 21 deletions(-) rename guacamole-common-js/src/main/{resources => webapp}/common/license.js (94%) rename guacamole-common-js/src/main/{resources => webapp}/modules/AudioChannel.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/Client.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/InputStream.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/IntegerPool.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/Keyboard.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/Layer.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/Mouse.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/OnScreenKeyboard.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/OutputStream.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/Parser.js (100%) rename guacamole-common-js/src/main/{resources => webapp}/modules/Tunnel.js (100%) diff --git a/guacamole-common-js/pom.xml b/guacamole-common-js/pom.xml index b149d29aa..7923d98bb 100644 --- a/guacamole-common-js/pom.xml +++ b/guacamole-common-js/pom.xml @@ -72,31 +72,37 @@ - + - net.alchim31.maven - yuicompressor-maven-plugin - 1.3.0 + com.samaxes.maven + minify-maven-plugin + 1.6.1 + default-minify + + + UTF-8 + CLOSURE + + / + / + guacamole.js + + + common/license.js + + + + modules/**/*.js + + + - compress + minify - - true - false - - - ${project.build.directory}/guacamole.js - - ${basedir}/src/main/resources/common/license.js - **/*.js - - - - diff --git a/guacamole-common-js/src/main/resources/common/license.js b/guacamole-common-js/src/main/webapp/common/license.js similarity index 94% rename from guacamole-common-js/src/main/resources/common/license.js rename to guacamole-common-js/src/main/webapp/common/license.js index c6c47cc5c..2d7de929b 100644 --- a/guacamole-common-js/src/main/resources/common/license.js +++ b/guacamole-common-js/src/main/webapp/common/license.js @@ -1,3 +1,5 @@ +/*! (C) 2014 Glyptodon LLC - glyptodon.org/MIT-LICENSE */ + /* * Copyright (C) 2013 Glyptodon LLC * diff --git a/guacamole-common-js/src/main/resources/modules/AudioChannel.js b/guacamole-common-js/src/main/webapp/modules/AudioChannel.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/AudioChannel.js rename to guacamole-common-js/src/main/webapp/modules/AudioChannel.js diff --git a/guacamole-common-js/src/main/resources/modules/Client.js b/guacamole-common-js/src/main/webapp/modules/Client.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/Client.js rename to guacamole-common-js/src/main/webapp/modules/Client.js diff --git a/guacamole-common-js/src/main/resources/modules/InputStream.js b/guacamole-common-js/src/main/webapp/modules/InputStream.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/InputStream.js rename to guacamole-common-js/src/main/webapp/modules/InputStream.js diff --git a/guacamole-common-js/src/main/resources/modules/IntegerPool.js b/guacamole-common-js/src/main/webapp/modules/IntegerPool.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/IntegerPool.js rename to guacamole-common-js/src/main/webapp/modules/IntegerPool.js diff --git a/guacamole-common-js/src/main/resources/modules/Keyboard.js b/guacamole-common-js/src/main/webapp/modules/Keyboard.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/Keyboard.js rename to guacamole-common-js/src/main/webapp/modules/Keyboard.js diff --git a/guacamole-common-js/src/main/resources/modules/Layer.js b/guacamole-common-js/src/main/webapp/modules/Layer.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/Layer.js rename to guacamole-common-js/src/main/webapp/modules/Layer.js diff --git a/guacamole-common-js/src/main/resources/modules/Mouse.js b/guacamole-common-js/src/main/webapp/modules/Mouse.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/Mouse.js rename to guacamole-common-js/src/main/webapp/modules/Mouse.js diff --git a/guacamole-common-js/src/main/resources/modules/OnScreenKeyboard.js b/guacamole-common-js/src/main/webapp/modules/OnScreenKeyboard.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/OnScreenKeyboard.js rename to guacamole-common-js/src/main/webapp/modules/OnScreenKeyboard.js diff --git a/guacamole-common-js/src/main/resources/modules/OutputStream.js b/guacamole-common-js/src/main/webapp/modules/OutputStream.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/OutputStream.js rename to guacamole-common-js/src/main/webapp/modules/OutputStream.js diff --git a/guacamole-common-js/src/main/resources/modules/Parser.js b/guacamole-common-js/src/main/webapp/modules/Parser.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/Parser.js rename to guacamole-common-js/src/main/webapp/modules/Parser.js diff --git a/guacamole-common-js/src/main/resources/modules/Tunnel.js b/guacamole-common-js/src/main/webapp/modules/Tunnel.js similarity index 100% rename from guacamole-common-js/src/main/resources/modules/Tunnel.js rename to guacamole-common-js/src/main/webapp/modules/Tunnel.js diff --git a/guacamole-common-js/static.xml b/guacamole-common-js/static.xml index 99bfd25eb..e88abdce0 100644 --- a/guacamole-common-js/static.xml +++ b/guacamole-common-js/static.xml @@ -6,14 +6,14 @@ - src/main/resources/modules/ + src/main/webapp/modules/ *.js - + modules/ - target/ + target/${project.name}-${project.version}/ *.js