Skip to content

Move the suntheme module from the Woodstock repository into GlassFish#26105

Open
renatsaf wants to merge 1 commit into
eclipse-ee4j:mainfrom
renatsaf:issue-24495-move-suntheme
Open

Move the suntheme module from the Woodstock repository into GlassFish#26105
renatsaf wants to merge 1 commit into
eclipse-ee4j:mainfrom
renatsaf:issue-24495-move-suntheme

Conversation

@renatsaf

Copy link
Copy Markdown
Contributor

Fixes #24495

What

Moves the woodstock-webui-jsf-suntheme module out of the external glassfish-woodstock repository into a new appserver/admingui/suntheme module, so the Sun theme and the Admin Console can be modified together.

This is the suntheme-only move described in the issue. The module is resource-only (no Java sources): ~340 static assets (gif/jpg/png/js/css/properties/html) plus a filtered MANIFEST.MF.

Approach

  • New module appserver/admingui/suntheme inherits the admingui parent but keeps the existing coordinates org.glassfish.woodstock:woodstock-webui-jsf-suntheme, so the three in-repo consumers need no dependency-declaration changes.
  • The pom reproduces the exact runtime contract: resources relocated under com/sun/webui/jsf/suntheme/ and the X-SJWUIC-Theme-* manifest headers preserved (timestamp filtered). Packaging is jar (not glassfish-jar) to keep the custom manifest intact.
  • Registered the module in the admingui reactor before community-theme.
  • The module is now built locally, so its dependencyManagement version in appserver/pom.xml is repointed from ${woodstock.version} to ${project.version}. woodstock.version still applies to woodstock-webui-jsf and the external libraries.

Verification

  • Module builds offline (Maven 3.9.16).
  • Built jar has 374 entries under com/sun/webui/jsf/suntheme/ and all X-SJWUIC-Theme-* manifest headers preserved — runtime theme contract intact.
  • community-theme resolves the locally-built 8.0.3-SNAPSHOT artifact instead of the released 6.0.3.

Out of scope / follow-ups

  • Deleting the suntheme module from the glassfish-woodstock repository is a separate PR in that repo. No clash in the meantime: GlassFish now builds and consumes its own 8.0.3-SNAPSHOT suntheme and never pulls the released 6.0.3.
  • Bringing woodstock-webui-jsf itself into GlassFish (suggested in the issue discussion) is left for a separate decision; this PR is the minimal, reversible step the issue asks for.

🤖 Generated with Claude Code

The woodstock-webui-jsf-suntheme module is a resource-only theme (static
assets plus a filtered MANIFEST.MF) used solely by the Admin Console. Move
it from the external glassfish-woodstock repository into a new
appserver/admingui/suntheme module so the theme and the Admin Console can
evolve together.

The module keeps its existing coordinates
(org.glassfish.woodstock:woodstock-webui-jsf-suntheme) and reproduces the
exact runtime contract: resources relocated under
com/sun/webui/jsf/suntheme and the X-SJWUIC-Theme-* manifest headers
preserved, so the console styling is unaffected. It is now built locally,
so the dependencyManagement version is repointed from ${woodstock.version}
to ${project.version}; woodstock.version still applies to
woodstock-webui-jsf and the external libraries.

Fixes eclipse-ee4j#24495

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Move the suntheme module from the Woodstock repository into the GlassFish main repository

1 participant