Zip () { String version = Main.getAntVersion(); Jar task; if (version != null && (version.contains("1.8.0") || version.contains("1.8.1"))) { task = new PatchedJar(); } else { task = new Jar(); } task.setTaskName("jar"); task.setWhenmanifestonly((Zip.WhenEmpty)EnumeratedAttribute.getInstance(Zip.WhenEmpty.class, "skip")); return task; }