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();
      }
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.
@param outputFile The file to write to
@param repoUrl
@throws Exception When SDK cannot be retrieved
TODO add proxy and listener and externalize timeout