You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by gg...@apache.org on 2016/05/06 17:45:34 UTC

logging-log4j2 git commit: Test XZ compression through Apache Commons Compress.

Repository: logging-log4j2
Updated Branches:
  refs/heads/master 759fa375b -> 9e59afe7a


Test XZ compression through Apache Commons Compress.

Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo
Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/9e59afe7
Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/9e59afe7
Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/9e59afe7

Branch: refs/heads/master
Commit: 9e59afe7ad0306b8307ab605032e2f159ea536b4
Parents: 759fa37
Author: ggregory <gg...@apache.org>
Authored: Fri May 6 10:45:31 2016 -0700
Committer: ggregory <gg...@apache.org>
Committed: Fri May 6 10:45:31 2016 -0700

----------------------------------------------------------------------
 log4j-core/pom.xml                                             | 6 ++++++
 .../log4j/core/appender/rolling/RollingAppenderSizeTest.java   | 3 +--
 pom.xml                                                        | 6 ++++++
 3 files changed, 13 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9e59afe7/log4j-core/pom.xml
----------------------------------------------------------------------
diff --git a/log4j-core/pom.xml b/log4j-core/pom.xml
index 3ce7d8c..d345046 100644
--- a/log4j-core/pom.xml
+++ b/log4j-core/pom.xml
@@ -142,6 +142,12 @@
       <type>test-jar</type>
       <scope>test</scope>
     </dependency>
+    <!--  Apache Commons Compress -->
+    <dependency>
+      <groupId>org.tukaani</groupId>
+      <artifactId>xz</artifactId>
+      <scope>test</scope>
+    </dependency>
     <!-- Zeroconf advertiser tests -->
     <dependency>
       <groupId>javax.jmdns</groupId>

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9e59afe7/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderSizeTest.java
----------------------------------------------------------------------
diff --git a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderSizeTest.java b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderSizeTest.java
index 3aff168..4258cb0 100644
--- a/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderSizeTest.java
+++ b/log4j-core/src/test/java/org/apache/logging/log4j/core/appender/rolling/RollingAppenderSizeTest.java
@@ -94,9 +94,8 @@ public class RollingAppenderSizeTest {
 
         DefaultRolloverStrategy.FileExtensions ext = DefaultRolloverStrategy.FileExtensions.lookup(fileExtension);
         if (ext == null || DefaultRolloverStrategy.FileExtensions.ZIP == ext
-                || DefaultRolloverStrategy.FileExtensions.XZ == ext
                 || DefaultRolloverStrategy.FileExtensions.PACK200 == ext) {
-            return; // commons compress cannot deflate zip and xz? TODO test decompressing these formats
+            return; // commons compress cannot deflate zip? TODO test decompressing these formats
         }
         for (File file : files) {
             if (file.getName().endsWith(fileExtension)) {

http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/9e59afe7/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 36d3d53..b4564e3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -724,6 +724,12 @@
         <artifactId>commons-compress</artifactId>
         <version>1.11</version>
       </dependency>
+      <dependency>
+        <groupId>org.tukaani</groupId>
+        <artifactId>xz</artifactId>
+        <version>1.5</version>
+        <scope>test</scope>
+      </dependency>
       <!-- Used for the CSV layout -->
       <dependency>
         <groupId>org.apache.commons</groupId>