build: a default-profile build adds a second license header to the database and monitoring shell index.html (header sits after <!doctype html>)

Aperta Adatta ai principianti
#8,763 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
78/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
java
Ambito
build-system

Direzione di ricerca

Leggi i due file index.html indicati e individua la configurazione di formattazione delle licenze per license-maven-plugin e format-license. Esegui mvn -pl components/resources/resources-database,components/resources/resources-monitoring initialize per riprodurre i file modificati. Il lavoro è terminato quando il posizionamento scelto per l’intestazione o l’esclusione mantiene invariati entrambi i file dopo questa compilazione.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

What: a build without -P quick-build (license plugin active) modifies two tracked files:

  • components/resources/resources-database/src/main/resources/META-INF/dirigible/database/index.html
  • components/resources/resources-monitoring/src/main/resources/META-INF/dirigible/monitoring/index.html

Both start with <!doctype html> and carry their copyright comment (in a short custom form) after it. license-maven-plugin:format (format-license, phase initialize, skipExistingHeaders=true) does not recognise that as a header and inserts its full 13-line header above the doctype, so every default build leaves both files dirty.

Verified: on origin/master 9f60b659f2, in a real clone (not a worktree): mvn -pl components/resources/resources-database,components/resources/resources-monitoring initialize -> Updating license header in: .../index.html for both, git status shows both modified. -P quick-build sets license.skip, so CI builds do not see it. Two other src/main html files start with a doctype (application-core/.../shell/views/capture.html, resources-karavan-libs/.../designer/index.html), but the same run left them unchanged.

Expected: a build of an unchanged tree leaves these files unchanged: either put the standard header before the doctype (what the plugin would write, so it is recognised next time), or exclude the two files from license formatting.

Found while working on #8754 (generated files that a build rewrites); left out of that PR because these are hand-written shell pages, not generator output.

Lingua principale
Java
Stelle
278
Fork
97
Merge medio
15h 3m
PR unite (30g)
320

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di eclipse-dirigible/dirigible

Tutte le issue di eclipse-dirigible/dirigible

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.