8207690: Parsing API for classpath and similar path strings
roger.riggs at oracle.com
Tue Sep 11 14:48:37 UTC 2018
What would the use case be for that?
A search path is usually just a sequence of file paths; wildcard
expansion is not includes.
Wildcards are significant only in shell contexts, though the expansion
is done by the shell on Unix and by the application on Windows; it
would add a fair bit of complexity.
On 9/11/18 10:44 AM, Weijun Wang wrote:
> Is the wildcard character allowed in the input?
> I'm thinking of the wildcard support in classpath.
>> On Sep 11, 2018, at 2:16 AM, Roger Riggs <Roger.Riggs at oracle.com> wrote:
>> Please review the API and implementation of an API to parse Path strings.
>> Two methods are added to java.nio.file.Paths to parse a string using the path separator delimiter
>> and return either List<String> or List<Path>. Empty path elements are ignored.
>> For compatibility with current URLClassPath behavior the internal implementation handles
>> replacement of empty paths.
>> Thanks, Roger
More information about the core-libs-dev