public static JSONArray getRepositoryNames ( ) { final JSONArray ret = new JSONArray ( ) ; if ( null == repositoriesDescription ) { LOGGER . log ( Level . INFO , "Not found repository description[repository.json] file under classpath" ) ; return ret ; } final JSONArray repositories = repositoriesDescription . optJSONArray ( "repositories" ) ; for ( int i = 0 ; i < repositories . length ( ) ; i ++ ) { final JSONObject repository = repositories . optJSONObject ( i ) ; ret . put ( repository . optString ( "name" ) ) ; } return ret ; }
Gets repository names .