private void doGet ( final File outputFile , final String repoUrl ) throws Exception { int readTimeOut = 5 * 60 * 1000 ; Repository repository = new Repository ( repoUrl , repoUrl ) ; wagon . setReadTimeout ( readTimeOut ) ; getLog ( ) . info ( "Read Timeout is set to " + readTimeOut + " milliseconds" ) ; wagon . connect ( repository ) ; wagon . get ( outputFile . getName ( ) , outputFile ) ; wagon . disconnect ( ) ; }
Does the actual retrieval .