Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add system prop to store compound extensions types #105

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

ligangty
Copy link
Member

@ligangty ligangty commented Sep 2, 2024

Because of maven classifier does not forbid dots, which makes it hard
to decide the exact file types, so here add a temporary workaround to
let user defines the exact file types for compound extensions to
ditinguish the compound extensions types from classifier with dots.

{
for ( final String type : typesFromSys.split( "," ) )
{
COMPOUND_EXTENSIONS_TYPES.add( type.trim() );
Copy link
Member

@sswguo sswguo Sep 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

COMPOUND_EXTENSIONS_TYPES is a final variable, I guess it does not work here to add others. But from unit test, seems it does. ; -)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see. Ignore the comment here. LGTM.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess it works technically; but looks a bit weird for a final 'set' to change, though. maybe rename to non final one.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good as static final should be an immutable var. Let's change.

Copy link
Contributor

@ruhan1 ruhan1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

  Because of maven classifier does not forbid dots, which makes it hard
  to decide the exact file types, so here add a temporary workaround to
  let user defines the exact file types for compound extensions to
  ditinguish the compound extensions types from classifier with dots.
@sswguo
Copy link
Member

sswguo commented Sep 2, 2024

LGTM.

@ligangty ligangty merged commit b10ebce into Commonjava:master Sep 2, 2024
1 check passed
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.

3 participants