feat(cmdbuild): scripts de modification IHM sans recompilation Maven#1
Draft
oulom wants to merge 2 commits into
Draft
feat(cmdbuild): scripts de modification IHM sans recompilation Maven#1oulom wants to merge 2 commits into
oulom wants to merge 2 commits into
Conversation
Ajout d'une boîte à outils pour modifier l'interface CMDBuild directement dans le fichier WAR, sans relancer une compilation Maven complète. Scripts ajoutés : - 01_extract_war.sh : extrait le WAR (archive ZIP) dans un dossier - 02_repackage_war.sh : repackage le dossier en WAR de production - 03_deploy_exploded.sh : déploiement Tomcat exploded pour rechargement à chaud - 04_watch_ui.sh : surveillance des fichiers UI avec inotify/fswatch/polling - 05_patch_war.sh : patch ciblé d'un fichier précis dans le WAR README.md décrivant les trois workflows (patch rapide, développement itératif exploded, modification en lot) et la gestion des builds Sencha CMD. Co-authored-by: oulom <oulom@users.noreply.github.com>
Ajout de trois scripts pour exposer les JARs présents dans WEB-INF/lib/ du WAR directement à Maven, sans recompilation des sources : - 06_install_jars_to_m2.sh : installe chaque JAR dans ~/.m2/repository avec coordonnées Maven déduites du nom de fichier ; génère le bloc <dependencies> à coller dans pom.xml - 07_local_repo.sh : construit un dépôt Maven au format file:// dans le projet (committable dans Git, utilisable sans Maven installé) - 08_generate_pom_deps.sh : audit non-destructif des JARs + génération du snippet pom.xml sans rien modifier README mis à jour avec le workflow complet et les deux approches (A/B). Co-authored-by: oulom <oulom@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contexte
CMDBuild est déployé sous forme d'un fichier WAR Tomcat. Ce PR fournit une boîte à outils pour :
Scripts de modification de l'IHM (sans recompilation)
Un WAR étant une archive ZIP, les ressources UI (HTML, JS, CSS, images) peuvent être extraites, modifiées et repackagées sans aucune compilation.
01_extract_war.sh02_repackage_war.sh03_deploy_exploded.sh04_watch_ui.sh05_patch_war.shScripts de réutilisation des JARs du WAR comme dépendances Maven
Le WAR contient dans
WEB-INF/lib/tous les JARs CMDBuild déjà compilés. Ces scripts les rendent utilisables par Maven sans recompilation.06_install_jars_to_m2.sh~/.m2(nécessitemvn)07_local_repo.shfile://committable en Git08_generate_pom_deps.shpom.xmlWorkflow typique
Ou en alternative sans Maven installé, créer un dépôt fichier partageable par Git :
Aucune recompilation Java requise
Tous les scripts utilisent uniquement
zip,unzip,rsync,inotify-toolset optionnellementmvnpour l'installation dans~/.m2.