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

Đang mở Phù hợp với người mới
#8,763 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
build-system

Hướng nghiên cứu

Đọc hai tệp index.html được nêu và tìm cấu hình định dạng giấy phép cho license-maven-plugin và format-license. Chạy mvn -pl components/resources/resources-database,components/resources/resources-monitoring initialize để tái hiện các tệp đã bị sửa đổi. Hoàn tất khi vị trí tiêu đề được chọn hoặc mục loại trừ giúp cả hai tệp không thay đổi sau lần build đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
278
Fork
97
Merge trung bình
15 giờ 3 phút
Pull request đã merge (30 ngày)
320

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của eclipse-dirigible/dirigible

Tất cả issue của eclipse-dirigible/dirigible

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.