Skip to content

V4 changes to make external usage easier #278

New issue

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

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

Already on GitHub? # to your account

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

Claudenw
Copy link
Contributor

@Claudenw Claudenw commented Oct 19, 2024

Fix for #276 and #279 on V4

This change:

  • Adds a public String source() method to MatchPattern to return the "source" instance value.
  • Makes public MatchPattern method static String[] tokenizePathToString(String path, String separator)
  • Adds public List sources() method to MatchPatterns that to return a list of MatchPattern.source() for each enclosed pattern.
  • Makes public SelectorUtils static boolean isAntPrefixedPattern() method
  • Makes public SelectorUtils static boolean isRegexPrefixedPattern() method
  • Adds a SelectorUtils public static String extractPattern(final string pattern, final String separator) method to extract a simplified pattern without the Ant or Regex prefix and with the Ant path modified by a call to toOSRelatedPath to ensure that it is properly formatted.

@Claudenw Claudenw changed the title V4 rat changes V4 changes to make external usage easier Nov 4, 2024
@slachiewicz slachiewicz merged commit 46d98a6 into codehaus-plexus:master Nov 5, 2024
11 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants