public static void main ( String [ ] args ) throws IOException { if ( args . length != 1 ) { System . out . println ( "There should be an argument: path to a jar." ) ; System . exit ( 0 ) ; } String jarInput = args [ 0 ] ; extract ( new File ( jarInput ) , new File ( "/tmp/junit-ekstazi-agent.jar" ) , new String [ ] { Names . EKSTAZI_PACKAGE_BIN } , new String [ ] { } ) ; for ( String name : extractClassNames ( "/tmp/junit-ekstazi-agent.jar" ) ) { System . out . println ( name ) ; } }
Simple test to print all classes in the given jar .