public static void storeLogs ( String sourceLogFileName , String destLogFileName ) throws Exception { // assumes eventmanager is running // store logs String tmpdir = System . getProperty ( "java.io.tmpdir" ) ; if ( tmpdir == null || tmpdir == "null" ) { tmpdir = "/tmp" ; } File tmpLogFile = new File ( tmpdir + File . separator + sourceLogFileName ) ; File destFile = new File ( current_log_dir + File . separator + destLogFileName ) ; Files . copy ( tmpLogFile , destFile ) ; }
Stores the specified log for this test