question: public static void main ( String [ ] args ) throws FormatException { Debug . init ( ) ; if ( args . length == 0 ) { Debug . output ( "Usage: java com.bbn.openmap.layer.vpf.GenerateVPFProperties <path to vpf database directory> <path to vpf database directory> ..." ) ; System . exit ( 0 ) ; } for ( int argsi = 0 ; argsi < args . length ; argsi ++ ) { rootpath = args [ argsi ] ; LibrarySelectionTable lst = new LibrarySelectionTable ( rootpath ) ; if ( Debug . debugging ( "vpf" ) ) { Debug . output ( "Path to database: " + rootpath ) ; Debug . output ( "Database Name: " + lst . getDatabaseName ( ) ) ; } println ( "### Generated openmap.properties for" ) ; println ( "# VPF Data at: " + rootpath ) ; println ( "# Description: " + lst . getDatabaseDescription ( ) ) ; List < String > libraries = lst . getLibraryNames ( ) ; if ( Debug . debugging ( "vpf" ) ) { print ( "Database Libraries: " ) ; for ( String libraryName : libraries ) { print ( libraryName , " " ) ; } println ( ) ; println ( ) ; } for ( String libraryName : libraries ) { String prefix = lst . getDatabaseName ( ) + "_" + libraryName ; println ( "# Library: " + prefix ) ; printLibrary ( prefix , lst . getCAT ( libraryName ) ) ; println ( ) ; } } }
target:  The main program. Takes path arguments, and prints the DB it finds