ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From co...@apache.org
Subject cvs commit: jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb WeblogicDeploymentTool.java
Date Sun, 04 Feb 2001 08:30:44 GMT
conor       01/02/04 00:30:44

  Modified:    src/main/org/apache/tools/ant/taskdefs/optional/ejb
                        WeblogicDeploymentTool.java
  Log:
  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
  
  Revision  Changes    Path
  1.16      +8 -1      jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java
  
  Index: WeblogicDeploymentTool.java
  ===================================================================
  RCS file: /home/cvs/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WeblogicDeploymentTool.java,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- WeblogicDeploymentTool.java	2001/01/25 14:39:17	1.15
  +++ WeblogicDeploymentTool.java	2001/02/04 08:30:44	1.16
  @@ -537,7 +537,14 @@
                           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()))
                           {
  
  
  

Mime
View raw message