[
http://jira.codehaus.org/browse/MNG-3951?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162413#action_162413
]
Benjamin Bentmann commented on MNG-3951:
----------------------------------------
Yeah, e.g. the commands
{code:java}
System.out.println( new File( "/tmp" ).isAbsolute() );
System.out.println( new File( "/tmp" ).getAbsolutePath() );
{code}
will print
{noformat}
false
D:\tmp
{noformat}
where "D:" is the drive of the current directory.
> Hide drive-relative paths from plugins
> --------------------------------------
>
> Key: MNG-3951
> URL: http://jira.codehaus.org/browse/MNG-3951
> Project: Maven 2
> Issue Type: Improvement
> Components: Plugins and Lifecycle
> Affects Versions: 2.0.9, 2.1.0-M1
> Environment: Windows
> Reporter: Benjamin Bentmann
> Priority: Minor
> Fix For: 2.0.x
>
>
> Take this nice path: /tmp (note the leading slash). This is an absolute path
> on Unix derivates but a drive-relative path on a Windows box. Drive-relative
> paths are resolved by prepending the drive of the current directory, not the
> entire current directory.
> This notation of a drive-relative path is not well-known, even among Windows
> users, and in particular not easy going for cross-platform Java tools. A Java
> developer usually assumes that a path is either (directory-)relative or
> absolute.
> To avoid unnecessary complications as seen on our own multi-OS CI grid (cf.
> dev@ thread [CI Grid, Windows and
> Paths|http://www.nabble.com/CI-Grid%2C-Windows-and-Paths-to21153292.html])
> and as reported by users (e.g. MECLIPSE-404), the core should not only align
> directory-relative paths but also resolve drive-relative paths.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira