static String [ ] parsePackages ( String packages ) { if ( packages == null || packages . trim ( ) . length ( ) == 0 ) { return new String [ 0 ] ; } String [ ] commaSplit = packages . split ( "," ) ; String [ ] processPackages = new String [ commaSplit . length ] ; for ( int i = 0 ; i < commaSplit . length ; i ++ ) { processPackages [ i ] = convert ( commaSplit [ i ] ) ; } return processPackages ; }
Split using delimiter and convert to slash notation .