public static String toUrl( String path ) { // Is our work already done for us? if ( path.startsWith( "file:/" ) ) { return path; } return toUrl( Paths.get( path ) ); }
public static String toUrl( String path ) { // Is our work already done for us? if ( path.startsWith( "file:/" ) ) { return path; } return toUrl( new File( path ) ); }
String defaultRepositoryUrl = PathUtil.toUrl( repositoryDirectory );
String defaultRepositoryUrl = PathUtil.toUrl( repositoryDirectory );