public static boolean expand ( AbstractWisdomMojo mojo , File destination , String profileOrGAV ) throws MojoExecutionException { if ( destination . exists ( ) && isWisdomAlreadyInstalled ( destination ) ) { return false ; } File archive = getArchive ( mojo , profileOrGAV ) ; if ( archive == null || ! archive . exists ( ) ) { throw new MojoExecutionException ( "Cannot retrieve the Wisdom-Runtime file" ) ; } unzip ( mojo , archive , destination ) ; ensure ( destination ) ; return true ; }
Downloads and expands the Wisdom distribution .