cuba-platform / cuba-gradle-plugin

Gradle plugin for building CUBA platform and applications
https://www.cuba-platform.com
Apache License 2.0
15 stars 18 forks source link

Junk files are deployed to tomcat when using grapesjs and theme extension #127

Open alexbudarov opened 4 years ago

alexbudarov commented 4 years ago

Environment

Description of the bug or enhancement

Sample project: attached comtheme.zip

How to create sample project with Studio 13-snapshot:

Problem

Deploy prepared project (gradlew setupTomcat deploy) Check tomcat contents:

$ tree deploy/tomcat/webapps/app/VAADIN/themes/ | more
deploy/tomcat/webapps/app/VAADIN/themes/
├── com
│   └── haulmont
│       └── addon
│           └── grapesjs
│               ├── web
│               │   ├── gui
│               │   │   ├── components
│               │   │   │   ├── GrapesJsHtmlEditor.class
│               │   │   │   └── WebGrapesJsHtmlEditor.class
│               │   │   └── xml
│               │   │       └── layout
│               │   │           └── loaders
│               │   │               └── GrapesJsHtmlEditorLoader.class
│               │   ├── messages.properties
│               │   └── toolkit
│               │       └── ui
│               │           └── grapesjshtmleditorcomponent
│               │               ├── GrapesJsHtmlEditorComponent.class
│               │               ├── grapesjshtmleditorcomponent-connector.js
│               │               ├── GrapesJsHtmlEditorComponent$FileUploadListener.class
│               │               ├── GrapesJsHtmlEditorComponentState.class
│               │               └── GrapesJsHtmlEditorComponent$ValueChangeListener.class
│               ├── web-app.properties
│               ├── web-dispatcher-spring.xml
│               ├── web-menu.xml
│               ├── web-permissions.xml
│               ├── web-screens.xml
│               └── web-spring.xml
├── cuba-ui-component.xml
├── halo
│   ├── app
│   │   └── images
│   │       ├── cuba-icon-login.png
│   │       ├── exit.png
│   │       ├── fts-button.png
│   │       ├── login-button.png
│   │       └── new-window.png
│   ├── branding
│   │   ├── app-icon-login.png
│   │   └── app-icon-menu.png

Whoot? Compiled classes and resources from grapesjs-web-0.3.0.jar were copied to tomcat webapps.