[
https://issues.jboss.org/browse/AS7-6308?page=com.atlassian.jira.plugin.s...
]
Alexey Loubyansky commented on AS7-6308:
----------------------------------------
Yes, that would work. Or reading the description of File.isAbsolute():
"...On Microsoft Windows systems, a pathname is absolute if its prefix is a drive
specifier followed by "\\", or if its prefix is "\\\\"."
Thanks.
CLI deploy on windows only treats C:\ forms as absolute
-------------------------------------------------------
Key: AS7-6308
URL:
https://issues.jboss.org/browse/AS7-6308
Project: Application Server 7
Issue Type: Bug
Components: CLI
Affects Versions: 7.1.3.Final (EAP)
Reporter: James Livingston
Assignee: Alexey Loubyansky
WindowsFilenameTabCompleter.startsWithRoot() is implemented to treat strings containing
:\ as absolute paths.
This does not handle UNC paths (network shares) which start with a double backslash. The
rest of the path is also not sensitive to whether you use forward or backward slashes, so
perhaps it should consider paths containing :/ as absolute too.
Are there situations where "new File(path).isAbsolute()" would not work?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira