You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tomee.apache.org by rm...@apache.org on 2014/07/13 18:11:17 UTC
svn commit: r1610246 -
/tomee/tomee/trunk/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java
Author: rmannibucau
Date: Sun Jul 13 16:11:17 2014
New Revision: 1610246
URL: http://svn.apache.org/r1610246
Log:
unused methods
Modified:
tomee/tomee/trunk/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java
Modified: tomee/tomee/trunk/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java
URL: http://svn.apache.org/viewvc/tomee/tomee/trunk/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java?rev=1610246&r1=1610245&r2=1610246&view=diff
==============================================================================
--- tomee/tomee/trunk/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java (original)
+++ tomee/tomee/trunk/tomee/tomee-common/src/main/java/org/apache/tomee/installer/Installer.java Sun Jul 13 16:11:17 2014
@@ -333,41 +333,6 @@ public class Installer implements Instal
}
}
- private void copyClasses(final File sourceJar, final File destinationJar, final String pattern) {
- if (sourceJar == null) {
- throw new NullPointerException("sourceJar");
- }
- if (destinationJar == null) {
- throw new NullPointerException("destinationJar");
- }
- if (pattern == null) {
- throw new NullPointerException("pattern");
- }
-
- if (destinationJar.exists()) {
- return;
- }
-
- try {
- final ZipInputStream source = new ZipInputStream(IO.read(sourceJar));
- final ByteArrayOutputStream destinationBuffer = new ByteArrayOutputStream(524288);
- final ZipOutputStream destination = new ZipOutputStream(destinationBuffer);
- for (ZipEntry entry; (entry = source.getNextEntry()) != null; ) {
- final String entryName = entry.getName();
- if (!entryName.matches(pattern)) {
- continue;
- }
- destination.putNextEntry(new ZipEntry(entryName));
- IO.copy(source, destination);
- }
- IO.close(source);
- IO.close(destination);
- IO.copy(destinationBuffer.toByteArray(), destinationJar);
- } catch (final IOException e) {
- alerts.addError(e.getMessage());
- }
- }
-
private void removeJar(final File jar) {
if (jar.exists()) {
if (!jar.delete()) {
@@ -377,11 +342,6 @@ public class Installer implements Instal
}
}
- private void removeTomcatLibJar(final String name) {
- final File jar = new File(paths.getCatalinaLibDir(), name);
- removeJar(jar);
- }
-
public void installListener() {
installListener("org.apache.tomee.loader.OpenEJBListener");
}