private boolean shouldExtract ( ProjectGenerationRequest request , ProjectGenerationResponse response ) { if ( request . isExtract ( ) ) { return true ; } // explicit name hasn't been provided for an archive and there is no extension if ( isZipArchive ( response ) && request . getOutput ( ) != null && ! request . getOutput ( ) . contains ( "." ) ) { return true ; } return false ; }
Detect if the project should be extracted .