public static String toCpEnvString ( Collection < ? extends String > entries ) { if ( entries . size ( ) > 0 ) { StringBuffer classPath = new StringBuffer ( "" ) ; for ( String cp : new HashSet < String > ( entries ) ) // remove dublicates { if ( cp == null ) { continue ; } classPath . append ( cp ) ; classPath . append ( System . getProperty ( "path.separator" ) ) ; } classPath . deleteCharAt ( classPath . length ( ) - 1 ) ; return classPath . toString ( ) . trim ( ) ; } return "" ; }
Creates a class path string from the entries using the path . seperator