static final String uppercaseDrive ( String path ) { String resultPath = null ; if ( path != null ) { if ( path . length ( ) >= 2 && path . charAt ( 1 ) == ' ' ) { resultPath = Character . toUpperCase ( path . charAt ( 0 ) ) + path . substring ( 1 ) ; } else { resultPath = path ; } } return resultPath ; }
Cygwin prefers lowercase drive letters but other parts of maven use uppercase