private FilePath copyClassWorldsFile ( FilePath ws , URL resource ) { try { FilePath remoteClassworlds = ws . createTextTempFile ( "classworlds" , "conf" , "" ) ; remoteClassworlds . copyFrom ( resource ) ; return remoteClassworlds ; } catch ( Exception e ) { throw new RuntimeException ( e ) ; } }
Copies a classworlds file to a temporary location either on the local filesystem or on a slave depending on the node type .