/** Déplace le dossier template de rapport du plugin dans le projet et le dezipe */
  private void copierTemplate() {
    String resourceName = "Resultat-HTML.zip";

    InputStream is = MutantReport.class.getResourceAsStream(resourceName);
    try {
      File target = new File("./target/" + resourceName);
      OutputStream os = new FileOutputStream(target);
      IOUtils.copy(is, os);
      ZipUtil.unpack(target, new File("target"));
      is.close();
      os.close();
      target.delete();
    } catch (FileNotFoundException e) {
      e.printStackTrace();
    } catch (IOException e) {
      e.printStackTrace();
    }
  }
Пример #2
0
 public static void withUs() {
   ZipUtil.unpack(new File("demo.zip"), new File("demo"));
 }