Browse Source

Try to maintain the current compression setting rather than just avoiding

compression, since Weblogic 6.0 generates compressed jars whereas 5.1
generates uncompressed jars


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@268574 13f79535-47bb-0310-9956-ffa450edef68
master
Conor MacNeill 24 years ago
parent
commit
247d843943
1 changed files with 8 additions and 1 deletions
  1. +8
    -1
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java

+ 8
- 1
src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java View File

@@ -537,7 +537,14 @@ public class WeblogicDeploymentTool extends GenericDeploymentTool {
int bytesRead;
InputStream is;
JarEntry je = (JarEntry)e.nextElement();
if (je.getCompressedSize() == -1 ||
je.getCompressedSize() == je.getSize()) {
newJarStream.setLevel(0);
}
else {
newJarStream.setLevel(9);
}
// Update with changed Bean class
if (replaceEntries.containsKey(je.getName()))
{


Loading…
Cancel
Save