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

Abierto Apto para principiantes
#8,763 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
2/5
Tiempo estimado
1-3 horas
Aptitud para principiantes
78/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
java
Área
build-system

Línea de trabajo

Lee los dos archivos index.html indicados y encuentra la configuración de formato de licencia para license-maven-plugin y format-license. Ejecuta mvn -pl components/resources/resources-database,components/resources/resources-monitoring initialize para reproducir los archivos modificados. La tarea está terminada cuando la ubicación elegida para el encabezado o la exclusión hace que ambos archivos permanezcan sin cambios después de esa compilación.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Java
Estrellas
278
Forks
97
Merge medio
15 h 3 min
PR fusionados (30 d)
320

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de eclipse-dirigible/dirigible

Todos los issues de eclipse-dirigible/dirigible

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.