guacamole-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Couchman <vn...@apache.org>
Subject Re: Guacmaole Pre-built WAR VS Client
Date Fri, 27 Jul 2018 14:14:47 GMT
On Fri, Jul 27, 2018 at 8:07 AM Asbern <asbern.a@trainocate.com> wrote:

> Hi,
>
>
>
> I have used your extension and added html into that based on
> https://guacamole.apache.org/doc/gug/guacamole-ext.html#ext-patch-html,
> but without html the extension is working fine, when I add html its not
> getting reflected.
>
> https://github.com/sanjay186/Extension, I have uploaded the .jar file,
> please let me know if I had missed something. Thanks
>
>
>

Looks like you're just packaging it incorrectly - when you generate the
JAR, you need to zip it from within the directory.  So, your JAR looks like
this:

   Length      Date    Time    Name
---------  ---------- -----   ----
        0  2018-07-25 07:39   generic-customize-extension/
        0  2018-07-27 12:28   generic-customize-extension/web/
      719  2016-05-14 21:38   generic-customize-extension/web/custom.css
      272  2018-07-27 12:26   generic-customize-extension/web/loginnew.html
        0  2015-05-17 22:51   generic-customize-extension/web/images/
    34858  2016-05-14 21:36
 generic-customize-extension/web/images/logo.png
    11171  2016-05-14 21:30
 generic-customize-extension/web/images/logo-144.png
     4651  2015-05-17 20:51
 generic-customize-extension/web/images/background.png
     4414  2016-05-14 21:34
 generic-customize-extension/web/images/logo-64.png
      566  2018-07-27 12:27   generic-customize-extension/guac-manifest.json
        0  2015-06-03 08:46   generic-customize-extension/translations/
      129  2016-05-14 21:21
 generic-customize-extension/translations/en.json
---------                     -------
    56780                     12 files


but it should look like this:

Archive:  generic-customize-extension.jar
  Length      Date    Time    Name
---------  ---------- -----   ----
        0  2018-07-27 12:28   web/
      719  2016-05-14 21:38   web/custom.css
      272  2018-07-27 12:26   web/loginnew.html
        0  2015-05-17 22:51   web/images/
    34858  2016-05-14 21:36   web/images/logo.png
    11171  2016-05-14 21:30   web/images/logo-144.png
     4651  2015-05-17 20:51   web/images/background.png
     4414  2016-05-14 21:34   web/images/logo-64.png
      566  2018-07-27 12:27   guac-manifest.json
        0  2015-06-03 08:46   translations/
      129  2016-05-14 21:21   translations/en.json
---------                     -------
    56780                     11 files


So, when you run the zip command, run it inside the directory and zip it to
a file up one level:
cd generic-customize-extension
zip -r ../generic-customize-extension.jar ./

-Nick

Mime
View raw message