code: public static void copyFile( PlexusIoResource in, File outFile )
          throws IOException
      {
          InputStream input = null;
          OutputStream output = null;
          try
          {
              input = in.getContents();
              output = new FileOutputStream( outFile );
              IOUtil.copy( input, output );
          }
          finally
          {
              IOUtil.close( input );
              IOUtil.close( output );
          }
      }
docs: Copies the sources contents to the given destination file.