From 8f4da3ca2f5c36d157298b95bf16cc8ec05ae493 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:40:36 +0100
Subject: [PATCH 01/19] chore: add .gitignore
---
.gitignore | 4 ++++
1 file changed, 4 insertions(+)
create mode 100644 .gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000000..92f6ada872
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/target/
+/tests/output/
+/tests/temp/
+/.idea/
From 746716fd0b10eb0b78a0a98b39fe5921f5771bfe Mon Sep 17 00:00:00 2001
From: Vladimir Sitnikov
Date: Tue, 28 Dec 2021 13:46:10 +0300
Subject: [PATCH 02/19] Add .editorconfig for automatic IDE configuration
See https://editorconfig.org/
---
.editorconfig | 15 +++++++++++++++
1 file changed, 15 insertions(+)
create mode 100644 .editorconfig
diff --git a/.editorconfig b/.editorconfig
new file mode 100644
index 0000000000..c7bcf9dcd3
--- /dev/null
+++ b/.editorconfig
@@ -0,0 +1,15 @@
+root = true
+
+[*]
+trim_trailing_whitespace = true
+insert_final_newline = true
+charset = utf-8
+indent_style = space
+indent_size = 2
+max_line_length = 120
+
+[*.java]
+# Doc: https://youtrack.jetbrains.com/issue/IDEA-170643#focus=streamItem-27-3708697.0-0
+#"all other", "java.", "javax.", "all static"
+ij_java_imports_layout = *,|,java.**,|,javax.**,|,$*
+ij_java_use_single_class_imports = true
From e9cb076308aabfd9eec2df3a29a98664eaf77dd7 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:42:20 +0100
Subject: [PATCH 03/19] docs: update copyright year
---
NOTICE | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/NOTICE b/NOTICE
index d697542317..8a493edeb0 100644
--- a/NOTICE
+++ b/NOTICE
@@ -1,5 +1,5 @@
Apache log4j
-Copyright 2010 The Apache Software Foundation
+Copyright 2000-2021 The Apache Software Foundation
This product includes software developed at
The Apache Software Foundation (http://www.apache.org/).
From 5c953232caa1e52f1db663acfdc93034cf7c2ea2 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:45:54 +0100
Subject: [PATCH 04/19] docs: add a readme
---
README.md | 13 +++++++++++++
src/assembly/bin.xml | 1 +
2 files changed, 14 insertions(+)
create mode 100644 README.md
diff --git a/README.md b/README.md
new file mode 100644
index 0000000000..d0d98ee414
--- /dev/null
+++ b/README.md
@@ -0,0 +1,13 @@
+# End Of Life
+
+On August 5, 2015 the Logging Services Project Management Committee announced that Log4j 1.x had reached end of life. For complete text of the announcement please see the [Apache Blog](https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces). Users of Log4j 1 are recommended to upgrade to [Apache Log4j 2](https://logging.apache.org/log4j/2.x/index.html).
+
+# Security release 1.2.18
+
+Several security vulnerabilities have been identified in Log4J 1 up to and including 1.2.17. All users should upgrade to Log4J 2. For users that cannot upgrade, certain fixes are made available here. Please note Log4J 1 remains End Of Life.
+
+See [the log4j 1.2 website](https://logging.apache.org/log4j/1.2/) for more information.
+
+## Changes in 1.2.18
+
+See the [Changes Report](https://logging.apache.org/log4j/1.2/changes-report.html) for a detailed list of changes. This file is generated from [changes.xml](src/changes/changes.xml).
diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml
index e0d085f516..c9ce55ac4b 100644
--- a/src/assembly/bin.xml
+++ b/src/assembly/bin.xml
@@ -29,6 +29,7 @@
*.txt*.sample*.xml
+ README.mdINSTALLKEYSLICENSE
From 98e92799e7f9f6fd138cfe961c67a69461ca4efd Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:56:20 +0100
Subject: [PATCH 05/19] build: check in NTEventLogappender.dll from log4j
1.2.17 binary.
---
NTEventLogAppender.dll | Bin 0 -> 10240 bytes
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 NTEventLogAppender.dll
diff --git a/NTEventLogAppender.dll b/NTEventLogAppender.dll
new file mode 100644
index 0000000000000000000000000000000000000000..dab03ac621a30c51a5c7877647c8651cc011dfef
GIT binary patch
literal 10240
zcmeHNZERcDc|N3Rn^q-TiIvn%vh_A~QZLA4N|qgqEm|qo_3Bub8GWVB;z^WrB}%18
zi>vXq&(gGqMaDu(fEKVg-W!*w8Pp%?8afq8Upu&B)ebDF$QEhKq>kgh0sD
zMGN;l@3~i`WT#DvwHPoT;@or3d*09IyyrvLKK0}!wM{7%LM@e)x{Q{kMV>$XF^%Ef
zAO7xc_03)1|H$P)`}aT6ofyp+6LxyUj*lCI@l-197z37JXH&*#%4j>?WsIkXtooXo
zs{Nkon5k5IAgo?H^Jk}hYd6&HkA5H!JgTZeA!AUfxmvWW2C7;dk$2GPcL0^GluLM`
z^Y*NgxI}<*6p+?yVoF^gxnHSQp+`+9b-s#(EoEA%uWljzZ*=P&>%0R+tF%eK80$t5
zct`11vHtp@xD&@ahb4CU>cv44ON)xk)!Ul!HG&aACEuN>6$N}P^#hpBvj4Er(881BA_5B_EBL68OG3A`|%dv3*NCDULO%%?F<
zyAR&P_vmKI?cUFeK+o*I<%-pLGn}YxSsY0yJYwz-b}4mj{!+ntPH@6eBs+PUU>OqY{1`@D~9rSQPa$I=acywDlW9HH(!~&w{T`He=IaJ=Y&g(
znq~Hfx#dvvm2)n<=yW@vcwsw5sf#9x)nm&2l(v^YyMAqcx#m)3fxX_Y{MqW<+X3fL
zEN|Avy7Jj@ulpGCX6E(TSI%U2zaXy6IYVw=sZ=UhYqKlA`CDhNR4c{@1Bq$aa_7Th
z@I{ZgZGj%B7wNn^i81#&x}7vI764o^*TqVkedRMVZ#iG9(An@-MaMk{!G^aMB-xi|
z=(pe*ej#iCojK>@G_N8s@hmuJujH;)%LWYK_QYa|8jN(h7clhX8F1H-o06qPKyz*0
zo1e4tQpP`548ITpS6)HpuF|4(a&w^dWsreUk=XB
z7mfw;bu*Nixt?8F{$9ld3Ldq?3+6ikb#W@Z2TAmWN7)Us`{53B53#$A-Gf<5#(dnc1E
zglT|x366{f+`lKrSHqsi`!J1({YZcWGI`p4b_XTGzWp7rAI$DrFpD&}yb~|mThw&k
zENY#(;=ToQonx4oQntEauE)mISP&JzQZ}r$ep0kz`D0-TPT_)yH5VQW#l}M9gKXF}
zv~6E=SX9=!|FB(FOiN%c-$S8TC-r+WMHxgejPPRdGJ^1Ye1R~{nk%`f6_wq~y!kR0
zz@LZ!0G5G0&-@NR#72_XhPE*CB(f@2%C5Md7q-x>xtg0=RePT4!*JeQ9bS0GBoBBC
z1HkdSMDFtEB>qsW^KrLYJG)>md7uX>_6C_1~>kfqG=ER%|0NmA+T
zC}nGP0w2~YMEDLZEE&{`&EI&%Tt*srocH?1in*zx%60dNS_6pb;Q(agffiab!ST9np=(dV-EE0{?OGsr*{q)pw
zAiEnPWZA7*yiHFs{s7`$Fjs~UDxE-)09Oh#Mdq@b(`tkm_KD{Jk;0N*Qp5%4=u|p(3C)_o%R74e7nC70aLNhvW1zRG1M~
z$>UOX)!m`(SBx-6IZ_n#u=qn`J0%rK{6?9$Bf*R#@k>4tc&)ns#KnEJ+TT%--I8g*
zOMsfHRnBQark44@lNN|0q`bN2=fhr~Sk!ZXz?cpq@Vbm49o7PK+svY5LT;+gS1Kv<
z2fq9|!uOT_HK&P|Rz&GaDZ9RrW3nM#h0=8@T@j^7I55WCs&{0D(9QS2A8ds#_bnuM
zOs|(3-Q%{UGiFFz(q`OV-NQx(NG=frzx4d&Yd{cN=ug;Y_T?WBb0+W
z?VQ)X?6r$t`^8#qSK^0e97N(g$N!Ks>8`RPkcRBj7AhP+D;V%)?t!KFt`_sL#>
z`S+O(Vu>BSG`&}!%Y657z1@}(Si!}t+`Iku{|SNQ=)lO}SYM`oD4A4!kDcr5v_?iV
zj%6Q9#xog9z7=$-Gpb80R-p8xY%j4q+WYeGHuEnEf$sjY=H!4xI%^MF>bC>P@ngw!#yV+TP`@iZ+lo8vn&+QT&yvz+B`u*mp}xU>
zm*w=vlUa)l_(}kZY_%17LB9g}MA~+QiheBc8gnLH
zZDFhYYH&Ob#zCcC3XWUjgA@1|{AO@+Ff$m(r|Y-mjkKTeEor4>Ui$HTm)hFa+ZsD@
zsIk7Sy`8*u;H#`B&CU+99pgNUP!3@HXVvk{xk20UB`9^fyk7*aZ~WU!P<;Tx20l2|
zqQy2pjYgHn1K9Pkwr@e-g+F(N`4;?0DH*ENL;g$P{qn@-e_v^P8X1buy?zPeg*N#)
z<31AU80zzA>M+uc6FDxoj2gv%N+GQcC-eZ$;t^G*oxsUFj8j=tG~W}Dv_Y?=nV|44
zV^_!?2cLtQ^k}uP@qlXBkZao21k1g+_4MIss!qI}P^WQs=|kIryNCX#t-lKW$2*KB
zh#Ei;e)~a4vj7q~cctS!p2NpqoVu`Y;|7yLO#V&Ak4UMM@I
z9o|dEad(MB`U1R(qo?mdyhjnc1o{SSq=As5CPCxv&VVI-qZtClzn{^Y^XdTf`hF1Y
z47AX{iA{VlAVx{zZo{e}mL1qj;|7&MUym5?>6XX5tFExy3%fS7=zAmmYETbDXQMnD
z)Df@6Ii&VNj(G9z#u?{amXUZbcTDQ9-mw}C;BLp8BQ+4&31G^|M-UY@MU3h@Zwj9A
zo@juYmZwJf=fT_n-mRFQYq?_k}XiN$&%#H-KO(3Q!
zc<;{uk=%*}{iDCy({g-z_Rc_O795q>`^apb(arPEeB7L;%+GqP&MM5Qui^eJS#v+;
z`Qwnh;8`UK7tl|k?}!(A_HN~`h1JQwxwsNFk{ToK0Gxg90vzXTRL&47n|;@L;79KJ
zkjCD^y^wRn{3*`>aUVwCk7~0v@;ZpR3LO5AE5?CeQFRc%N%_@-ue>YOL#K^-KDZ@w
zGoZA4+1Pv{U~3b3i1R6><3Cuc-3+
zD6eE4`6RUIyk#D8o--1EdH<|>*R^r0EZT~e&ckl+XKRZ!myH7v2r^sPx%;
z7-&BMdbj#CR&Nhl1N~N&~(@a{o;5^C$y(3pqO~yUrjiagK<37A^m_
zH}Fi$_XY0loFDECl;RFTB>hu@`9Rqr_>sg2N14t3{=@N~Jv;T-=X=!$ai*M>EEo}+
z+`IfUktd8kW#7x$Qu+NNid#hhH!t2nhTzK}d@G++3iD829Ymt?JHsdBeB3O%dG~qu
zGx8x=WjyVY5f(HLBPV#$5kGxy@(g5YlV>ktv^OF?0aQ72Ec@jqqi<$BY4k0id`|BQ
z{W-5Xx6A(p1aO!BWB5@O*%NsvaxiixG8p-M
Date: Sun, 19 Dec 2021 10:15:22 +0100
Subject: [PATCH 06/19] build: rewrite maven build for modern 2021 tools
The new build requires JDK8 or later, and a JDK6 installed as a maven
toolchain.
Main changes include:
* switch to Maven 3, requiring JDK7 to invoke
* switch to latest (compatible) maven plugins, requiring JDK8 to invoke
* introduce two profiles: toolchain (default) and no-toolchain
* toolchain profile uses maven toolchains feature with JDK6
(can also use JDK7) and source/target version of 1.4,
for compatibility with JDK 1.4/5/6/7 and beyond
* no-toolchain profile uses default system JDK with
source/target version of 7,
for compatibility with JDK 8/9/10/11/17 and beyond
* stop building NTEventLogAppender.dll from maven by invoking ant
(instead use the checked-in version)
* replace some plugin use with resources section
* replace some ant tasks with maven clean plugin
* change all project metadata for correctness
* remove duplicate LICENSE and NOTICE files and use the main ones
* set default encoding to UTF-8 to silence some warnings
* enable running all unit tests instead of a whitelist
* change when and how site is generated
* customize site templating for modern site plugin
* remove unused and unsupported ant build files
* update INSTALL document to match changes
---
INSTALL | 79 +--
build.properties.sample | 71 ---
build.xml | 804 ----------------------------
pom.xml | 690 +++++++++++-------------
src/assembly/bin.xml | 2 +-
src/main/resources/META-INF/LICENSE | 202 -------
src/main/resources/META-INF/NOTICE | 5 -
src/site/default-site-macros.vm | 494 +++++++++++++++++
src/site/maven-site.vm | 522 ------------------
src/site/site-template.vm | 106 ++++
10 files changed, 958 insertions(+), 2017 deletions(-)
delete mode 100644 build.properties.sample
delete mode 100644 build.xml
delete mode 100644 src/main/resources/META-INF/LICENSE
delete mode 100644 src/main/resources/META-INF/NOTICE
create mode 100644 src/site/default-site-macros.vm
delete mode 100644 src/site/maven-site.vm
create mode 100644 src/site/site-template.vm
diff --git a/INSTALL b/INSTALL
index fecdc441f7..bd3f0dad96 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,19 +1,3 @@
- Licensed to the Apache Software Foundation (ASF) under one or more
- contributor license agreements. See the NOTICE file distributed with
- this work for additional information regarding copyright ownership.
- The ASF licenses this file to You under the Apache License, Version 2.0
- (the "License"); you may not use this file except in compliance with
- the License. You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-
===========
Using log4j
===========
@@ -73,32 +57,49 @@ except test cases and classes from the "examples" and
Building log4j
==============
-log4j (as of 1.2.15) is built with Maven 2. To rebuild log4j,
-place Maven 2 on the PATH and execute "mvn package". The resulting
-jar will be placed in the target subdirectory.
+log4j (as of 1.2.18) is built with Maven 3 and JDK 8 or higher.
+
+To build for compatibility with older JDKs (1.4/5/7), set up a Maven
+toolchain JDK with version=1.6 and vendor=oracle. For example set up
+the following configuration in ~/.m2/toolchains.xml:
+
+
+
+
+ jdk
+
+ 1.6
+ oracle
+
+
+ /usr/lib/jvm/java-1.6.0-openjdk-amd64
+
+
+
+
+
+See https://maven.apache.org/guides/mini/guide-using-toolchains.html
+for more information about maven toolchains.
+
+After setting up a toolchain you can then build using the default
+profile:
+
+ mvn verify
+
+If you do not care about compatibility with old JDKs, you can use a
+build without a toolchain and execute
-If building with JDK 1.4, one dependency will need to be manually
-installed since its license does not allow it to be placed in the
-online maven repositories. If not already installed, a build attempt will
-describe where to download and how to install the dependency. To
-install the dependency:
+ mvn verify -P no-toolchain
-Download JMX 1.2.1 from http://java.sun.com/products/JavaManagement/download.html.
+Build results can be found in the target/ subdirectory.
-$ jar xf jmx-1_2_1-ri.zip
-$ mvn install:install-file -DgroupId=com.sun.jmx -DartifactId=jmxri \
- -Dversion=1.2.1 -Dpackaging=jar -Dfile=jmx-1_2_1-bin/lib/jmxri.jar
+==================
+NTEventLogAppender
+==================
+The maven build uses prebuilt NTEventLogAppender.dll and
+NTEventLogAppender.amd64.dll binaries. To rebuild these, see
-The build script will attempt to build NTEventLogAppender.dll if
-MinGW is available on the path. If the unit tests are run on Windows
-without NTEventLogAppender.dll, many warnings of the missing DLL
-will be generated. An installer for MinGW on Windows is
-available for download at http://sourceforge.net/project/showfiles.php?group_id=2435.
-MinGW is also available through the package managers of many Linux distributions.
+ src/ntdll
-In case of problems send an e-mail note to
-log4j-user@logging.apache.org. Please do not directly e-mail any
-log4j developers. The answer to your question might be useful to other
-users. Moreover, there are many knowledgeable users on the log4j-user
-mailing lists who can quickly answer your questions.
+for more information.
diff --git a/build.properties.sample b/build.properties.sample
deleted file mode 100644
index 101a6c49eb..0000000000
--- a/build.properties.sample
+++ /dev/null
@@ -1,71 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-#
-
-#
-# Providing a build.properties file is no longer
-# necessary for an Ant build as long as one Maven build
-# has previously been performed.
-#
-
-
-# base location of support directories
-#
-lib.home.dir=/java
-
-# The jaxp interface and a jaxp parser are required
-# to build the DOMConfigurator.
-#
-# modern equivalent is xml-commons-apis.jar
-#
-jaxp.home=${lib.home.dir}/crimson-1.1.3
-jaxp.jaxp.jar=${jaxp.home}/crimson.jar
-
-# JavaMail API Required to build the SMTPAppender
-javamail.jar=${lib.home.dir}/javamail-1.3.2/mail.jar
-
-# and JavaBeans Activation Framework
-# http://java.sun.com/products/javabeans/jaf/index.jsp
-activation.jar=${lib.home.dir}/jaf-1.0.2/activation.jar
-
-
-# JMS interfaces are required to be on the classpath
-# in order to build the JMSAppender.
-jms.jar=${lib.home.dir}/jms1.1/lib/jms.jar
-
-# Required to build the org.apache.log4j.jmx package.
-jmx.home.dir=${lib.home.dir}/jmx-1_2_1-bin
-jmx.jar=${jmx.home.dir}/lib/jmxri.jar
-jndi.jar=${lib.home.dir}/jndi-1_2_1/lib/jndi.jar
-
-# Required to run Checkstyle. Available from http://checkstyle.sf.net
-checkstyle.jar=${lib.home.dir}/checkstyle-2.2/checkstyle-all-2.2.jar
-
-# Velocity's Anakia task is used in the generation of the documentation
-# download from http://jakarta.apache.org
-velocity.jar=${lib.home.dir}/velocity-1.4/velocity-dep-1.4.jar
-# Velocity's Anakia task requires JDOM,
-# but Velocity 1.4 is not compatible with JDOM 1.0, but beta 8 works okay
-# download for http://www.jdom.org/dist/binary/archive
-jdom.jar=${lib.home.dir}/jdom-b8/build/jdom.jar
-
-
-#
-# CLIRR binary compatibility checker
-# http://clirr.sourceforge.net
-clirr-core.jar=${lib.home.dir}/clirr-0.6/clirr-core-0.6.jar
-# bcel 5.1 will throw NullPointerExceptions
-bcel.jar=${lib.home.dir}/bcel-5.2/bcel-5.2.jar
diff --git a/build.xml b/build.xml
deleted file mode 100644
index 4fbda3d6dd..0000000000
--- a/build.xml
+++ /dev/null
@@ -1,804 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- These are the targets supported by this ANT build scpript:
-
- build - compile all project files, if a certain library is missing,
- then the compilation of its dependents are skipped.
-
- javadoc - build project javadoc files
-
- jar - build log4j-core and log4j jar files
-
- dist - will create a complete distribution in dist/
- Setting the env variable NO_JAVADOC will build the distribution
- without running the javadoc target.
-
- release - will create a complete distribution in dist/
- using stricter settings for public distribution.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- clirr-core-${clirr.version}.jar not in maven repo. Run mvn clirr:check to download.
-
-
-
- bcel-${bcel.version}.jar not in maven repo. Run mvn clirr:check to download.
-
-
-
- log4j-${reference.version}.jar not in maven repo. Run mvn clirr:check to download.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/pom.xml b/pom.xml
index 93881cd3a3..596c231a59 100644
--- a/pom.xml
+++ b/pom.xml
@@ -15,34 +15,20 @@
limitations under the License.
-->
-
-
+4.0.0log4jlog4jbundleApache Log4j
- 1.2.17
- Apache Log4j 1.2
+ 1.2.18-SNAPSHOT
+ Apache Log4j 1.2 (UNMAINTAINED)http://logging.apache.org/log4j/1.2/
- Bugzilla
- https://issues.apache.org/bugzilla/describecomponents.cgi?product=Log4j
+ GitHub
+ https://github.com/apache/logging-log4j1/issues
-
- Gump
- http://vmgump.apache.org/gump/public/logging-log4j-12/logging-log4j-12/index.html
- 1999
@@ -50,122 +36,99 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
log4j-user-subscribe@logging.apache.orglog4j-user-unsubscribe@logging.apache.orglog4j-user@logging.apache.org
- http://mail-archives.apache.org/mod_mbox/logging-log4j-user/
-
- http://marc.info/?l=log4j-user
- http://dir.gmane.org/gmane.comp.jakarta.log4j.user
-
+ https://lists.apache.org/list.html?log4j-user@logging.apache.orglog4j-dev
- log4j-dev-subscribe@logging.apache.org
- log4j-dev-unsubscribe@logging.apache.org
- log4j-dev@logging.apache.org
- http://mail-archives.apache.org/mod_mbox/logging-log4j-dev/
-
- http://marc.info/?l=log4j-dev
- http://dir.gmane.org/gmane.comp.jakarta.log4j.devel
-
+ dev-subscribe@logging.apache.org
+ dev-unsubscribe@logging.apache.org
+ dev@logging.apache.org
+ https://lists.apache.org/list.html?dev@logging.apache.org
- The Apache Software License, Version 2.0
+ Apache License, Version 2.0http://www.apache.org/licenses/LICENSE-2.0.txtrepo
- scm:svn:http://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_17_rc3
- scm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_17_rc3
- http://svn.apache.org/viewvc/logging/log4j/tags/v1_2_17_rc3
+ scm:git:https://github.com/apache/logging-log4j1
+ scm:git:https://github.com/apache/logging-log4j1
+ https://github.com/apache/logging-log4j1Apache Software Foundationhttp://www.apache.org
+
+ UTF-8
+ UTF-8
+ org.apache.maven.pluginsmaven-resources-plugin
+ 3.2.0UTF-8
-
-
- maven-surefire-plugin
- 2.5
-
- tests
- plain
- pertest
- true
-
- org/apache/log4j/LevelTest.java
- org/apache/log4j/PriorityTest.java
- org/apache/log4j/CategoryTest.java
- org/apache/log4j/FileAppenderTest.java
- org/apache/log4j/LogManagerTest.java
- org/apache/log4j/helpers.LogLogTest.java
- org/apache/log4j/LayoutTest.java
- org/apache/log4j/helpers.DateLayoutTest.java
- org/apache/log4j/TTCCLayoutTest.java
- org/apache/log4j/xml.XMLLayoutTest.java
- org/apache/log4j/HTMLLayoutTest.java
- org/apache/log4j/PatternLayoutTest.java
- org/apache/log4j/spi.LoggingEventTest.java
- org/apache/log4j/spi.ThrowableInformationTest.java
- org/apache/log4j/spi.LocationInfoTest.java
- org/apache/log4j/PropertyConfiguratorTest.java
- org/apache/log4j/MinimumTestCase.java
- org/apache/log4j/LoggerTestCase.java
- org/apache/log4j/PatternLayoutTestCase.java
- org/apache/log4j/HierarchyThresholdTestCase.java
- org/apache/log4j/xml/DOMTestCase.java
- org/apache/log4j/xml/CustomLevelTestCase.java
- org/apache/log4j/customLogger/XLoggerTestCase.java
-
-
- org/apache/log4j/xml/XMLLayoutTestCase.java
- org/apache/log4j/xml/AsyncAppenderTestCase.java
- org/apache/log4j/varia/LevelMatchFilterTestCase.java
-
-
- org/apache/log4j/helpers/BoundedFIFOTestCase.java
- org/apache/log4j/helpers/CyclicBufferTestCase.java
- org/apache/log4j/helpers/PatternParserTestCase.java
- org/apache/log4j/or/ORTestCase.java
- org/apache/log4j/DRFATestCase.java
- org/apache/log4j/RFATestCase.java
- org/apache/log4j/varia/ERFATestCase.java
- org/apache/log4j/net/SyslogAppenderTest
- org/apache/log4j/nt/NTEventLogAppenderTest
- org/apache/log4j/net/SocketAppenderTest
-
-
-
-
- maven-compiler-plugin
- 2.1
-
- 1.4
- 1.4
- UTF-8
-
+
+
+ javadoc.resources
+ pre-site
+
+ copy-resources
+
+
+ ${project.build.directory}/apidocs/META-INF
+
+
+ ${project.basedir}
+ false
+
+ LICENSE
+ NOTICE
+ README.md
+
+
+
+
+
+
+ ntdll.resources
+ process-resources
+
+ copy-resources
+
+
+ ${project.build.directory}
+
+
+ ${project.basedir}
+ false
+
+ NTEventLogAppender.dll
+ NTEventLogAppender.amd64.dll
+
+
+
+
+
+ maven-jar-plugin
- 2.3
+ 3.2.0
- org.apache.log4j
+ org/apache/log4j/
- *
+ *log4j${project.version}"Apache Software Foundation"
@@ -177,195 +140,55 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
maven-antrun-plugin
- 1.2
+ 3.0.0
-
-
- process-classes
- ntdll
-
-
-
-
-
-
-
-
-
-
-
- run
-
-
-
-
- test-compile
- mkdir_tests_output
-
-
-
-
-
-
- run
-
-
-
- clean
- rmdir_tests_output
-
-
-
-
-
-
-
- run
-
-
-
- test
- runAll
-
-
-
-
-
-
-
-
-
-
- run
-
-
-
siteuntag-site
-
+
-
-
+
run
-
- post-site
- post-site
-
-
-
-
-
-
- run
-
-
-
- site-deploy
- site-deploy
-
-
-
-
-
-
- run
-
-
-
- javadoc.resources
- generate-sources
-
- run
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ant
- ant-nodeps
- 1.6.5
-
-
- ant-contrib
- ant-contrib
- 1.0b2
-
-
- ant
- ant-junit
- 1.6.5
-
-
- junit
- junit
- 3.8.1
- compile
-
-
- sun.jdk
- tools
- 1.4.2
- system
- ${tools.jar}
-
- maven-assembly-plugin
- 2.2-beta-5
+ 3.3.0src/assembly/bin.xmlfalse
-
-
-
- assembly
-
-
-
-
maven-javadoc-plugin
- 2.7
+ 3.3.1true.svnUTF-8
- UTF-8
+ javadoc-package
+ pre-packagejarjavadoc
- site
- pre-site
+ javadoc-site
+ pre-sitejavadoc
@@ -374,18 +197,14 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
maven-release-plugin
- 2.0-beta-9
-
+ 3.0.0-M4
- package site-deploy assembly:attached deploy
+ package site-deploy deploymaven-source-plugin
- 2.1.1
+ 3.2.0
@@ -394,74 +213,130 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
-
- org.codehaus.mojo
- clirr-maven-plugin
- 2.2.2
+
+ com.github.siom79.japicmp
+ japicmp-maven-plugin
+ 0.15.4
- 1.2.15
+
+
+ log4j
+ log4j
+ 1.2.17
+ jar
+
+
+
+
+ ${project.build.directory}/${project.artifactId}-${project.version}.jar
+
+
+
+ true
+ true
+ true
+ true
+ false
+
+ javax\.mail\..*
+
+
+
+
+ japicmp-verify
+ verify
+
+ cmp
+
+
+
- org.codehaus.mojo
- rat-maven-plugin
- 1.0-alpha-3
+ org.apache.rat
+ apache-rat-plugin
+ 0.13
-
- tests/witness/**
- tests/output/**
- tests/classes/**
-
+
+ tests/witness/**
+ tests/output/**
+ tests/classes/**
+
+
+ org.apache.felix
+ maven-bundle-plugin
+ 5.1.3
+ true
+
+
+ org.apache.log4j
+
+
+ !org.apache.log4j.lf5.*,
+ !org.apache.log4j.chainsaw.*,
+ org.apache.log4j.*;version=${project.version};-noimport:=true
+
+
+
+ !javax.swing.*,
+ !com.ibm.uvm.tools.*,
+ !com.sun.jdmk.comm.*,
+ javax.jmdns.*;resolution:=optional,
+ javax.jms.*;resolution:=optional,
+ javax.mail.*;resolution:=optional,
+ *
+
+ http://logging.apache.org/log4j/1.2
+ registered
+ J2SE-1.4
+
+
+
- org.apache.felix
- maven-bundle-plugin
- 2.1.0
- true
+ maven-site-plugin
+ 3.9.1
-
-
- !org.apache.log4j.lf5.*,
- !org.apache.log4j.chainsaw.*,
- org.apache.log4j.*;version=1.2.17;-noimport:=true
-
- !javax.swing.*,
- !com.ibm.uvm.tools.*,
- !com.sun.jdmk.comm.*,
- javax.jmdns.*;resolution:=optional,
- javax.jms.*;resolution:=optional,
- javax.mail.*;resolution:=optional,
- *
- http://logging.apache.org/log4j/1.2
-
+ ${basedir}/src/site/site-template.vm
- maven-site-plugin
- 3.1
+ maven-clean-plugin
+ 3.1.0
- ${basedir}/src/site/maven-site.vm
- true
+
+
+ ${basedir}/tests/output
+ false
+
+
+ ${basedir}/tests
+ false
+
+ temp
+
+
+
-
-
- package
-
- site
-
-
- tests/src/java
+
+
+ ${project.basedir}/src/main/resources
+
+
+ META-INF
+ false
+ ${project.basedir}
+
+ LICENSE
+ NOTICE
+
+
+ tests/resources
@@ -470,79 +345,43 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
-
+ maven-project-info-reports-plugin
- 2.4
+ 3.1.2
-
+
- scm
- dependencies
- cim
- issue-tracking
- mailing-list
- license
+ scm
+ dependencies
+ mailing-lists
-
+
-
-
+
+ maven-jxr-plugin
- 2.1
-
-
+ 3.1.1
+
+ maven-changes-plugin
- 2.7
+ 2.12.1
-
+
- changes-report
+ changes-report
-
+
-
+
-
-
- mac
-
-
- mac
-
-
-
- ${java.home}/../Classes/classes.jar
- ${user.home}/.m2/repository
- build
-
-
-
- default
-
- true
-
-
- ${java.home}/../lib/tools.jar
- ${user.home}/.m2/repository
- build
-
-
-
-
-
- maven2-repository.dev.java.net
- Java.net Repository for Maven
- http://download.java.net/maven/2/
- default
-
- javax.mailmail1.4.3true
+ providedorg.apache.openejb
@@ -551,14 +390,6 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
jarprovided
-
orooro
@@ -577,7 +408,7 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
1.0true
-
+
logging.repo
@@ -588,5 +419,118 @@ target platform and specify -Dntdll_target=msbuild on the mvn command line.
scp://localhost/${user.dir}/target/site-deploy
+
+
+ no-toolchain
+
+
+
+ maven-compiler-plugin
+ 3.8.1
+
+ 7
+ 7
+ UTF-8
+
+
+
+ maven-surefire-plugin
+ 2.22.2
+
+ tests
+ plain
+ pertest
+ false
+ -Djava.library.path=${project.basedir}
+
+
+
+ com.soebes.maven.plugins
+ echo-maven-plugin
+ 0.4.0
+
+
+ echo-toolchain-warning
+ validate
+
+ echo
+
+
+
+ WARNING:
+ WARNING:
+ WARNING:
+ WARNING: =========================================================
+ WARNING: You are using a modern JDK without the toolchain profile.
+ WARNING: Resulting jar files will not work with old JDKs!
+ WARNING: =========================================================
+ WARNING:
+ WARNING:
+ WARNING:
+
+
+
+
+
+
+ maven-javadoc-plugin
+
+ false
+ false
+
+
+
+
+
+
+ toolchain
+
+ true
+
+
+
+
+ org.apache.maven.plugins
+ maven-toolchains-plugin
+ 1.1
+
+
+
+ toolchain
+
+
+
+
+
+
+ 1.6
+ oracle
+
+
+
+
+
+ maven-compiler-plugin
+ 3.8.1
+
+ 1.4
+ 1.4
+ UTF-8
+
+
+
+ maven-surefire-plugin
+ 2.22.2
+
+ tests
+ plain
+ pertest
+ false
+ -Djava.library.path=${project.basedir}
+
+
+
+
+
+
-
diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml
index c9ce55ac4b..1e2e9990c9 100644
--- a/src/assembly/bin.xml
+++ b/src/assembly/bin.xml
@@ -58,7 +58,7 @@
target/log4j-${project.version}.jar
- target/NTEventLogAppender.dll
+ NTEventLogAppender.dll0755
diff --git a/src/main/resources/META-INF/LICENSE b/src/main/resources/META-INF/LICENSE
deleted file mode 100644
index 6279e5206d..0000000000
--- a/src/main/resources/META-INF/LICENSE
+++ /dev/null
@@ -1,202 +0,0 @@
-
- Apache License
- Version 2.0, January 2004
- http://www.apache.org/licenses/
-
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
-
- 1. Definitions.
-
- "License" shall mean the terms and conditions for use, reproduction,
- and distribution as defined by Sections 1 through 9 of this document.
-
- "Licensor" shall mean the copyright owner or entity authorized by
- the copyright owner that is granting the License.
-
- "Legal Entity" shall mean the union of the acting entity and all
- other entities that control, are controlled by, or are under common
- control with that entity. For the purposes of this definition,
- "control" means (i) the power, direct or indirect, to cause the
- direction or management of such entity, whether by contract or
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
- outstanding shares, or (iii) beneficial ownership of such entity.
-
- "You" (or "Your") shall mean an individual or Legal Entity
- exercising permissions granted by this License.
-
- "Source" form shall mean the preferred form for making modifications,
- including but not limited to software source code, documentation
- source, and configuration files.
-
- "Object" form shall mean any form resulting from mechanical
- transformation or translation of a Source form, including but
- not limited to compiled object code, generated documentation,
- and conversions to other media types.
-
- "Work" shall mean the work of authorship, whether in Source or
- Object form, made available under the License, as indicated by a
- copyright notice that is included in or attached to the work
- (an example is provided in the Appendix below).
-
- "Derivative Works" shall mean any work, whether in Source or Object
- form, that is based on (or derived from) the Work and for which the
- editorial revisions, annotations, elaborations, or other modifications
- represent, as a whole, an original work of authorship. For the purposes
- of this License, Derivative Works shall not include works that remain
- separable from, or merely link (or bind by name) to the interfaces of,
- the Work and Derivative Works thereof.
-
- "Contribution" shall mean any work of authorship, including
- the original version of the Work and any modifications or additions
- to that Work or Derivative Works thereof, that is intentionally
- submitted to Licensor for inclusion in the Work by the copyright owner
- or by an individual or Legal Entity authorized to submit on behalf of
- the copyright owner. For the purposes of this definition, "submitted"
- means any form of electronic, verbal, or written communication sent
- to the Licensor or its representatives, including but not limited to
- communication on electronic mailing lists, source code control systems,
- and issue tracking systems that are managed by, or on behalf of, the
- Licensor for the purpose of discussing and improving the Work, but
- excluding communication that is conspicuously marked or otherwise
- designated in writing by the copyright owner as "Not a Contribution."
-
- "Contributor" shall mean Licensor and any individual or Legal Entity
- on behalf of whom a Contribution has been received by Licensor and
- subsequently incorporated within the Work.
-
- 2. Grant of Copyright License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- copyright license to reproduce, prepare Derivative Works of,
- publicly display, publicly perform, sublicense, and distribute the
- Work and such Derivative Works in Source or Object form.
-
- 3. Grant of Patent License. Subject to the terms and conditions of
- this License, each Contributor hereby grants to You a perpetual,
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
- (except as stated in this section) patent license to make, have made,
- use, offer to sell, sell, import, and otherwise transfer the Work,
- where such license applies only to those patent claims licensable
- by such Contributor that are necessarily infringed by their
- Contribution(s) alone or by combination of their Contribution(s)
- with the Work to which such Contribution(s) was submitted. If You
- institute patent litigation against any entity (including a
- cross-claim or counterclaim in a lawsuit) alleging that the Work
- or a Contribution incorporated within the Work constitutes direct
- or contributory patent infringement, then any patent licenses
- granted to You under this License for that Work shall terminate
- as of the date such litigation is filed.
-
- 4. Redistribution. You may reproduce and distribute copies of the
- Work or Derivative Works thereof in any medium, with or without
- modifications, and in Source or Object form, provided that You
- meet the following conditions:
-
- (a) You must give any other recipients of the Work or
- Derivative Works a copy of this License; and
-
- (b) You must cause any modified files to carry prominent notices
- stating that You changed the files; and
-
- (c) You must retain, in the Source form of any Derivative Works
- that You distribute, all copyright, patent, trademark, and
- attribution notices from the Source form of the Work,
- excluding those notices that do not pertain to any part of
- the Derivative Works; and
-
- (d) If the Work includes a "NOTICE" text file as part of its
- distribution, then any Derivative Works that You distribute must
- include a readable copy of the attribution notices contained
- within such NOTICE file, excluding those notices that do not
- pertain to any part of the Derivative Works, in at least one
- of the following places: within a NOTICE text file distributed
- as part of the Derivative Works; within the Source form or
- documentation, if provided along with the Derivative Works; or,
- within a display generated by the Derivative Works, if and
- wherever such third-party notices normally appear. The contents
- of the NOTICE file are for informational purposes only and
- do not modify the License. You may add Your own attribution
- notices within Derivative Works that You distribute, alongside
- or as an addendum to the NOTICE text from the Work, provided
- that such additional attribution notices cannot be construed
- as modifying the License.
-
- You may add Your own copyright statement to Your modifications and
- may provide additional or different license terms and conditions
- for use, reproduction, or distribution of Your modifications, or
- for any such Derivative Works as a whole, provided Your use,
- reproduction, and distribution of the Work otherwise complies with
- the conditions stated in this License.
-
- 5. Submission of Contributions. Unless You explicitly state otherwise,
- any Contribution intentionally submitted for inclusion in the Work
- by You to the Licensor shall be under the terms and conditions of
- this License, without any additional terms or conditions.
- Notwithstanding the above, nothing herein shall supersede or modify
- the terms of any separate license agreement you may have executed
- with Licensor regarding such Contributions.
-
- 6. Trademarks. This License does not grant permission to use the trade
- names, trademarks, service marks, or product names of the Licensor,
- except as required for reasonable and customary use in describing the
- origin of the Work and reproducing the content of the NOTICE file.
-
- 7. Disclaimer of Warranty. Unless required by applicable law or
- agreed to in writing, Licensor provides the Work (and each
- Contributor provides its Contributions) on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
- implied, including, without limitation, any warranties or conditions
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
- PARTICULAR PURPOSE. You are solely responsible for determining the
- appropriateness of using or redistributing the Work and assume any
- risks associated with Your exercise of permissions under this License.
-
- 8. Limitation of Liability. In no event and under no legal theory,
- whether in tort (including negligence), contract, or otherwise,
- unless required by applicable law (such as deliberate and grossly
- negligent acts) or agreed to in writing, shall any Contributor be
- liable to You for damages, including any direct, indirect, special,
- incidental, or consequential damages of any character arising as a
- result of this License or out of the use or inability to use the
- Work (including but not limited to damages for loss of goodwill,
- work stoppage, computer failure or malfunction, or any and all
- other commercial damages or losses), even if such Contributor
- has been advised of the possibility of such damages.
-
- 9. Accepting Warranty or Additional Liability. While redistributing
- the Work or Derivative Works thereof, You may choose to offer,
- and charge a fee for, acceptance of support, warranty, indemnity,
- or other liability obligations and/or rights consistent with this
- License. However, in accepting such obligations, You may act only
- on Your own behalf and on Your sole responsibility, not on behalf
- of any other Contributor, and only if You agree to indemnify,
- defend, and hold each Contributor harmless for any liability
- incurred by, or claims asserted against, such Contributor by reason
- of your accepting any such warranty or additional liability.
-
- END OF TERMS AND CONDITIONS
-
- APPENDIX: How to apply the Apache License to your work.
-
- To apply the Apache License to your work, attach the following
- boilerplate notice, with the fields enclosed by brackets "[]"
- replaced with your own identifying information. (Don't include
- the brackets!) The text should be enclosed in the appropriate
- comment syntax for the file format. We also recommend that a
- file or class name and description of purpose be included on the
- same "printed page" as the copyright notice for easier
- identification within third-party archives.
-
- Copyright 1999-2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
diff --git a/src/main/resources/META-INF/NOTICE b/src/main/resources/META-INF/NOTICE
deleted file mode 100644
index 0375732360..0000000000
--- a/src/main/resources/META-INF/NOTICE
+++ /dev/null
@@ -1,5 +0,0 @@
-Apache log4j
-Copyright 2007 The Apache Software Foundation
-
-This product includes software developed at
-The Apache Software Foundation (http://www.apache.org/).
\ No newline at end of file
diff --git a/src/site/default-site-macros.vm b/src/site/default-site-macros.vm
new file mode 100644
index 0000000000..20eb354e29
--- /dev/null
+++ b/src/site/default-site-macros.vm
@@ -0,0 +1,494 @@
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements. See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership. The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied. See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+#macro ( link $href $name $target $img $position $alt $border $width $height $title )
+#**##set ( $linkTitle = ' title="' + $name + '"' )
+#**##if( $target )
+#* *##set ( $linkTarget = ' target="' + $target + '"' )
+#**##else
+#* *##set ( $linkTarget = "" )
+#**##end
+#**##if ( $decoration.isLink( $href ) )
+#* *##set ( $linkClass = ' class="externalLink"' )
+#**##else
+#* *##set ( $linkClass = "" )
+#**##end
+#**##if ( $img )
+#* *##if ( $position == "left" )
+#* *##image($img $alt $border $width $height $title)$name##
+#* *##else
+#* *#$name #image($img $alt $border $width $height $title)##
+#* *##end
+#**##else
+#* *#$name##
+#**##end
+#end
+##
+#macro ( image $img $alt $border $width $height $title )
+#**##if( $img )
+#* *##if ( !$decoration.isLink( $img ) )
+#* *##set ( $imgSrc = $PathTool.calculateLink( $img, $relativePath ) )
+#* *##set ( $imgSrc = $imgSrc.replaceAll( '\\', '/' ) )
+#* *##set ( $imgSrc = ' src="' + $imgSrc + '"' )
+#* *##else
+#* *##set ( $imgSrc = ' src="' + $img + '"' )
+#* *##end
+#* *##if( $alt )
+#* *##set ( $imgAlt = ' alt="' + $alt + '"' )
+#* *##else
+#* *##set ( $imgAlt = ' alt=""' )
+#* *##end
+#* *##if( $border )
+#* *##set ( $imgBorder = ' border="' + $border + '"' )
+#* *##else
+#* *##set ( $imgBorder = "" )
+#* *##end
+#* *##if( $width )
+#* *##set ( $imgWidth = ' width="' + $width + '"' )
+#* *##else
+#* *##set ( $imgWidth = "" )
+#* *##end
+#* *##if( $height )
+#* *##set ( $imgHeight = ' height="' + $height + '"' )
+#* *##else
+#* *##set ( $imgHeight = "" )
+#* *##end
+#* *##if( $title )
+#* *##set ( $imgTitle = ' title="' + $title + '"' )
+#* *##else
+#* *##set ( $imgTitle = "" )
+#* *##end
+#* *###
+#**##end
+#end
+##
+#macro ( banner $banner $id )
+#**##if ( $banner )
+#* *##if( $banner.href )
+#* *##set ( $hrf = $banner.href )
+#* *##if ( !$decoration.isLink( $hrf ) )
+#* *##set ( $hrf = $PathTool.calculateLink( $hrf, $relativePath ) )
+#* *##set ( $hrf = $hrf.replaceAll( '\\', '/' ) )
+#* *##if ( ( $hrf == '' ) )
+#* *##set ( $hrf = './' )
+#* *##end
+#* *##end
+#* *###
+#* *##else
+#* *#
-
-
-
diff --git a/src/site/site-template.vm b/src/site/site-template.vm
new file mode 100644
index 0000000000..63717fe193
--- /dev/null
+++ b/src/site/site-template.vm
@@ -0,0 +1,106 @@
+
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements. See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership. The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License. You may obtain a copy of the License at
+##
+## http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied. See the License for the
+## specific language governing permissions and limitations
+## under the License.
+##
+#parse( "default-site-macros.vm" )
+
+##
+
+
+
+
+## put meta together
+
+#foreach( $author in $authors )
+
+#end
+#if ( $documentDate )
+
+#end
+ $title
+
+
+
+
+#**##if( $decoration.body.head )
+#* *#$render.eval( $decoration.body.head )
+#**##end
+#**##if( $headContent )$headContent#end
+#**##googleAnalytics( $decoration.googleAnalyticsAccountId )
+
+
+
On August 5, 2015 the Logging Services Project
+ Management Committee announced that Log4j 1.x had reached end of life.
+ For complete text of the announcement please see the
+ Apache Blog.
+ Users of Log4j 1 are recommended to upgrade to
+ Apache Log4j 2.
+#* *#$bodyContent
+
+
+
+
+
+
+
+
\ No newline at end of file
From 5631d094f23db48ed9db7abcf66205be3e4c7458 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:08:25 +0100
Subject: [PATCH 07/19] ci: set up github actions
Sets up a matrix build using github actions that runs on every push.
The following combinations all work:
* Toolchain 1.6, JDK 11, OS ubuntu-18.04
* Toolchain 1.6, JDK 11, OS ubuntu-20.04
* Toolchain 1.6, JDK 11, OS windows-2019
* Toolchain 1.6, JDK 11, OS windows-2022
* Toolchain 1.7, JDK 11, OS ubuntu-18.04
* JDK 8, OS ubuntu-18.04
* JDK 11, OS ubuntu-18.04
* JDK 17, OS ubuntu-18.04
* JDK 8, OS ubuntu-20.04
* JDK 11, OS ubuntu-20.04
* JDK 17, OS ubuntu-20.04
* JDK 8, OS windows-2019
* JDK 11, OS windows-2019
* JDK 17, OS windows-2019
* JDK 8, OS windows-2022
* JDK 11, OS windows-2022
* JDK 17, OS windows-2022
---
.github/workflows/maven.yml | 97 +++++++++++++++++++++++++++++++++++++
1 file changed, 97 insertions(+)
create mode 100644 .github/workflows/maven.yml
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000000..22e41d0717
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,97 @@
+name: Maven CI Build
+
+on: [push]
+
+jobs:
+ JDK6Toolchain:
+ name: Toolchain 1.6, JDK 11, OS ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022]
+ fail-fast: true
+ max-parallel: 2
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install Toolchain JDK
+ uses: battila7/jdk-via-jabba@v1
+ with:
+ jdk: zulu@1.6.119
+ javaHomeEnvironmentVariable: TOOLCHAIN_JDK
+ addBinDirectoryToPath: false
+ - name: Configure Maven for Toolchain
+ shell: bash
+ run: |
+ mkdir -p $HOME/.m2 && cat >$HOME/.m2/toolchains.xml <
+
+
+ jdk
+
+ 1.6
+ oracle
+
+
+ ${{ env.TOOLCHAIN_JDK }}
+
+
+
+ EOF
+ - name: Set up Modern JDK for Maven
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+ - name: Run maven build
+ run: mvn clean verify site assembly:single -B
+ JDK7Toolchain:
+ name: Toolchain 1.7, JDK 11, OS ubuntu-18.04
+ runs-on: ubuntu-18.04
+ steps:
+ - uses: actions/checkout@v1
+ - name: Install Toolchain JDK
+ uses: battila7/jdk-via-jabba@v1
+ with:
+ jdk: zulu@1.7.292
+ javaHomeEnvironmentVariable: TOOLCHAIN_JDK
+ addBinDirectoryToPath: false
+ - name: Configure Maven for Toolchain
+ shell: bash
+ run: |
+ mkdir -p $HOME/.m2 && cat >$HOME/.m2/toolchains.xml <
+
+
+ jdk
+
+ 1.6
+ oracle
+
+
+ ${{ env.TOOLCHAIN_JDK }}
+
+
+
+ EOF
+ - name: Set up Modern JDK for Maven
+ uses: actions/setup-java@v1
+ with:
+ java-version: 11
+ - name: Run maven build
+ run: mvn clean verify -B
+ Modern:
+ name: JDK ${{ matrix.jdk }}, OS ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ os: [ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022]
+ jdk: [8, 11, 17]
+ fail-fast: true
+ max-parallel: 4
+ steps:
+ - uses: actions/checkout@v1
+ - name: Set up Modern JDK for Maven
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.jdk }}
+ - name: Run maven build
+ run: mvn clean verify -B -P no-toolchain
From a4f9bef755394f2827b1ffc70c29f4d781f1b348 Mon Sep 17 00:00:00 2001
From: Vladimir Sitnikov
Date: Tue, 28 Dec 2021 13:46:28 +0300
Subject: [PATCH 08/19] Add .gitattributes to ensure files have consistent
end-of-line markers
---
.gitattributes | 16 +
.../org/apache/log4j/net/ZeroConfSupport.java | 412 +++++-----
src/ntdll/NTEventLogAppender.def | 44 +-
src/ntdll/NTEventLogAppender.rc | 252 +++---
tests/input/xml/categoryfactory1.xml | 68 +-
tests/input/xml/categoryfactory2.xml | 74 +-
tests/input/xml/loggerfactory1.xml | 68 +-
.../log4j/PropertyConfiguratorTest.java | 738 +++++++++---------
.../log4j/nt/NTEventLogAppenderTest.java | 110 +--
tests/witness/drfa_blockedRollover.log | 6 +-
tests/witness/pattern/enhancedPatternLayout.1 | 150 ++--
.../witness/pattern/enhancedPatternLayout.10 | 150 ++--
.../witness/pattern/enhancedPatternLayout.11 | 150 ++--
.../witness/pattern/enhancedPatternLayout.12 | 150 ++--
.../witness/pattern/enhancedPatternLayout.13 | 150 ++--
.../witness/pattern/enhancedPatternLayout.14 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.2 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.3 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.4 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.5 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.6 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.7 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.8 | 150 ++--
tests/witness/pattern/enhancedPatternLayout.9 | 150 ++--
.../pattern/enhancedPatternLayout.mdc.2 | 24 +-
tests/witness/xmlLayout.mdc.1 | 16 +-
tests/witness/xmlLayout.mdc.2 | 16 +-
27 files changed, 1980 insertions(+), 1964 deletions(-)
create mode 100644 .gitattributes
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000000..b71b996ec1
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,16 @@
+# Auto detect text files and perform LF normalization
+* text=auto
+
+*.java text
+*.html text
+*.css text
+*.js text
+*.sql text
+*.q text
+
+*.bat text eol=crlf
+*.cmd text eol=crlf
+
+# Blow files don't have extension, so we mention them explicitly
+/src/changes/changes.xml merge=union
+
diff --git a/src/main/java/org/apache/log4j/net/ZeroConfSupport.java b/src/main/java/org/apache/log4j/net/ZeroConfSupport.java
index 32ac971cbd..2fb85dca1a 100644
--- a/src/main/java/org/apache/log4j/net/ZeroConfSupport.java
+++ b/src/main/java/org/apache/log4j/net/ZeroConfSupport.java
@@ -1,206 +1,206 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.log4j.net;
-
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
-import java.util.HashMap;
-import java.util.Hashtable;
-import java.util.Map;
-
-import org.apache.log4j.helpers.LogLog;
-
-public class ZeroConfSupport {
- private static Object jmDNS = initializeJMDNS();
-
- Object serviceInfo;
- private static Class jmDNSClass;
- private static Class serviceInfoClass;
-
- public ZeroConfSupport(String zone, int port, String name, Map properties) {
- //if version 3 is available, use it to constuct a serviceInfo instance, otherwise support the version1 API
- boolean isVersion3 = false;
- try {
- //create method is in version 3, not version 1
- jmDNSClass.getMethod("create", null);
- isVersion3 = true;
- } catch (NoSuchMethodException e) {
- //no-op
- }
-
- if (isVersion3) {
- LogLog.debug("using JmDNS version 3 to construct serviceInfo instance");
- serviceInfo = buildServiceInfoVersion3(zone, port, name, properties);
- } else {
- LogLog.debug("using JmDNS version 1.0 to construct serviceInfo instance");
- serviceInfo = buildServiceInfoVersion1(zone, port, name, properties);
- }
- }
-
- public ZeroConfSupport(String zone, int port, String name) {
- this(zone, port, name, new HashMap());
- }
-
- private static Object createJmDNSVersion1()
- {
- try {
- return jmDNSClass.newInstance();
- } catch (InstantiationException e) {
- LogLog.warn("Unable to instantiate JMDNS", e);
- } catch (IllegalAccessException e) {
- LogLog.warn("Unable to instantiate JMDNS", e);
- }
- return null;
- }
-
- private static Object createJmDNSVersion3()
- {
- try {
- Method jmDNSCreateMethod = jmDNSClass.getMethod("create", null);
- return jmDNSCreateMethod.invoke(null, null);
- } catch (IllegalAccessException e) {
- LogLog.warn("Unable to instantiate jmdns class", e);
- } catch (NoSuchMethodException e) {
- LogLog.warn("Unable to access constructor", e);
- } catch (InvocationTargetException e) {
- LogLog.warn("Unable to call constructor", e);
- }
- return null;
- }
-
- private Object buildServiceInfoVersion1(String zone, int port, String name, Map properties) {
- //version 1 uses a hashtable
- Hashtable hashtableProperties = new Hashtable(properties);
- try {
- Class[] args = new Class[6];
- args[0] = String.class;
- args[1] = String.class;
- args[2] = int.class;
- args[3] = int.class; //weight (0)
- args[4] = int.class; //priority (0)
- args[5] = Hashtable.class;
- Constructor constructor = serviceInfoClass.getConstructor(args);
- Object[] values = new Object[6];
- values[0] = zone;
- values[1] = name;
- values[2] = new Integer(port);
- values[3] = new Integer(0);
- values[4] = new Integer(0);
- values[5] = hashtableProperties;
- Object result = constructor.newInstance(values);
- LogLog.debug("created serviceinfo: " + result);
- return result;
- } catch (IllegalAccessException e) {
- LogLog.warn("Unable to construct ServiceInfo instance", e);
- } catch (NoSuchMethodException e) {
- LogLog.warn("Unable to get ServiceInfo constructor", e);
- } catch (InstantiationException e) {
- LogLog.warn("Unable to construct ServiceInfo instance", e);
- } catch (InvocationTargetException e) {
- LogLog.warn("Unable to construct ServiceInfo instance", e);
- }
- return null;
- }
-
- private Object buildServiceInfoVersion3(String zone, int port, String name, Map properties) {
- try {
- Class[] args = new Class[6];
- args[0] = String.class; //zone/type
- args[1] = String.class; //display name
- args[2] = int.class; //port
- args[3] = int.class; //weight (0)
- args[4] = int.class; //priority (0)
- args[5] = Map.class;
- Method serviceInfoCreateMethod = serviceInfoClass.getMethod("create", args);
- Object[] values = new Object[6];
- values[0] = zone;
- values[1] = name;
- values[2] = new Integer(port);
- values[3] = new Integer(0);
- values[4] = new Integer(0);
- values[5] = properties;
- Object result = serviceInfoCreateMethod.invoke(null, values);
- LogLog.debug("created serviceinfo: " + result);
- return result;
- } catch (IllegalAccessException e) {
- LogLog.warn("Unable to invoke create method", e);
- } catch (NoSuchMethodException e) {
- LogLog.warn("Unable to find create method", e);
- } catch (InvocationTargetException e) {
- LogLog.warn("Unable to invoke create method", e);
- }
- return null;
- }
-
- public void advertise() {
- try {
- Method method = jmDNSClass.getMethod("registerService", new Class[]{serviceInfoClass});
- method.invoke(jmDNS, new Object[]{serviceInfo});
- LogLog.debug("registered serviceInfo: " + serviceInfo);
- } catch(IllegalAccessException e) {
- LogLog.warn("Unable to invoke registerService method", e);
- } catch(NoSuchMethodException e) {
- LogLog.warn("No registerService method", e);
- } catch(InvocationTargetException e) {
- LogLog.warn("Unable to invoke registerService method", e);
- }
- }
-
- public void unadvertise() {
- try {
- Method method = jmDNSClass.getMethod("unregisterService", new Class[]{serviceInfoClass});
- method.invoke(jmDNS, new Object[]{serviceInfo});
- LogLog.debug("unregistered serviceInfo: " + serviceInfo);
- } catch(IllegalAccessException e) {
- LogLog.warn("Unable to invoke unregisterService method", e);
- } catch(NoSuchMethodException e) {
- LogLog.warn("No unregisterService method", e);
- } catch(InvocationTargetException e) {
- LogLog.warn("Unable to invoke unregisterService method", e);
- }
- }
-
- private static Object initializeJMDNS() {
- try {
- jmDNSClass = Class.forName("javax.jmdns.JmDNS");
- serviceInfoClass = Class.forName("javax.jmdns.ServiceInfo");
- } catch (ClassNotFoundException e) {
- LogLog.warn("JmDNS or serviceInfo class not found", e);
- }
-
- //if version 3 is available, use it to constuct a serviceInfo instance, otherwise support the version1 API
- boolean isVersion3 = false;
- try {
- //create method is in version 3, not version 1
- jmDNSClass.getMethod("create", null);
- isVersion3 = true;
- } catch (NoSuchMethodException e) {
- //no-op
- }
-
- if (isVersion3) {
- return createJmDNSVersion3();
- } else {
- return createJmDNSVersion1();
- }
- }
-
- public static Object getJMDNSInstance() {
- return jmDNS;
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.log4j.net;
+
+import java.lang.reflect.Constructor;
+import java.lang.reflect.InvocationTargetException;
+import java.lang.reflect.Method;
+import java.util.HashMap;
+import java.util.Hashtable;
+import java.util.Map;
+
+import org.apache.log4j.helpers.LogLog;
+
+public class ZeroConfSupport {
+ private static Object jmDNS = initializeJMDNS();
+
+ Object serviceInfo;
+ private static Class jmDNSClass;
+ private static Class serviceInfoClass;
+
+ public ZeroConfSupport(String zone, int port, String name, Map properties) {
+ //if version 3 is available, use it to constuct a serviceInfo instance, otherwise support the version1 API
+ boolean isVersion3 = false;
+ try {
+ //create method is in version 3, not version 1
+ jmDNSClass.getMethod("create", null);
+ isVersion3 = true;
+ } catch (NoSuchMethodException e) {
+ //no-op
+ }
+
+ if (isVersion3) {
+ LogLog.debug("using JmDNS version 3 to construct serviceInfo instance");
+ serviceInfo = buildServiceInfoVersion3(zone, port, name, properties);
+ } else {
+ LogLog.debug("using JmDNS version 1.0 to construct serviceInfo instance");
+ serviceInfo = buildServiceInfoVersion1(zone, port, name, properties);
+ }
+ }
+
+ public ZeroConfSupport(String zone, int port, String name) {
+ this(zone, port, name, new HashMap());
+ }
+
+ private static Object createJmDNSVersion1()
+ {
+ try {
+ return jmDNSClass.newInstance();
+ } catch (InstantiationException e) {
+ LogLog.warn("Unable to instantiate JMDNS", e);
+ } catch (IllegalAccessException e) {
+ LogLog.warn("Unable to instantiate JMDNS", e);
+ }
+ return null;
+ }
+
+ private static Object createJmDNSVersion3()
+ {
+ try {
+ Method jmDNSCreateMethod = jmDNSClass.getMethod("create", null);
+ return jmDNSCreateMethod.invoke(null, null);
+ } catch (IllegalAccessException e) {
+ LogLog.warn("Unable to instantiate jmdns class", e);
+ } catch (NoSuchMethodException e) {
+ LogLog.warn("Unable to access constructor", e);
+ } catch (InvocationTargetException e) {
+ LogLog.warn("Unable to call constructor", e);
+ }
+ return null;
+ }
+
+ private Object buildServiceInfoVersion1(String zone, int port, String name, Map properties) {
+ //version 1 uses a hashtable
+ Hashtable hashtableProperties = new Hashtable(properties);
+ try {
+ Class[] args = new Class[6];
+ args[0] = String.class;
+ args[1] = String.class;
+ args[2] = int.class;
+ args[3] = int.class; //weight (0)
+ args[4] = int.class; //priority (0)
+ args[5] = Hashtable.class;
+ Constructor constructor = serviceInfoClass.getConstructor(args);
+ Object[] values = new Object[6];
+ values[0] = zone;
+ values[1] = name;
+ values[2] = new Integer(port);
+ values[3] = new Integer(0);
+ values[4] = new Integer(0);
+ values[5] = hashtableProperties;
+ Object result = constructor.newInstance(values);
+ LogLog.debug("created serviceinfo: " + result);
+ return result;
+ } catch (IllegalAccessException e) {
+ LogLog.warn("Unable to construct ServiceInfo instance", e);
+ } catch (NoSuchMethodException e) {
+ LogLog.warn("Unable to get ServiceInfo constructor", e);
+ } catch (InstantiationException e) {
+ LogLog.warn("Unable to construct ServiceInfo instance", e);
+ } catch (InvocationTargetException e) {
+ LogLog.warn("Unable to construct ServiceInfo instance", e);
+ }
+ return null;
+ }
+
+ private Object buildServiceInfoVersion3(String zone, int port, String name, Map properties) {
+ try {
+ Class[] args = new Class[6];
+ args[0] = String.class; //zone/type
+ args[1] = String.class; //display name
+ args[2] = int.class; //port
+ args[3] = int.class; //weight (0)
+ args[4] = int.class; //priority (0)
+ args[5] = Map.class;
+ Method serviceInfoCreateMethod = serviceInfoClass.getMethod("create", args);
+ Object[] values = new Object[6];
+ values[0] = zone;
+ values[1] = name;
+ values[2] = new Integer(port);
+ values[3] = new Integer(0);
+ values[4] = new Integer(0);
+ values[5] = properties;
+ Object result = serviceInfoCreateMethod.invoke(null, values);
+ LogLog.debug("created serviceinfo: " + result);
+ return result;
+ } catch (IllegalAccessException e) {
+ LogLog.warn("Unable to invoke create method", e);
+ } catch (NoSuchMethodException e) {
+ LogLog.warn("Unable to find create method", e);
+ } catch (InvocationTargetException e) {
+ LogLog.warn("Unable to invoke create method", e);
+ }
+ return null;
+ }
+
+ public void advertise() {
+ try {
+ Method method = jmDNSClass.getMethod("registerService", new Class[]{serviceInfoClass});
+ method.invoke(jmDNS, new Object[]{serviceInfo});
+ LogLog.debug("registered serviceInfo: " + serviceInfo);
+ } catch(IllegalAccessException e) {
+ LogLog.warn("Unable to invoke registerService method", e);
+ } catch(NoSuchMethodException e) {
+ LogLog.warn("No registerService method", e);
+ } catch(InvocationTargetException e) {
+ LogLog.warn("Unable to invoke registerService method", e);
+ }
+ }
+
+ public void unadvertise() {
+ try {
+ Method method = jmDNSClass.getMethod("unregisterService", new Class[]{serviceInfoClass});
+ method.invoke(jmDNS, new Object[]{serviceInfo});
+ LogLog.debug("unregistered serviceInfo: " + serviceInfo);
+ } catch(IllegalAccessException e) {
+ LogLog.warn("Unable to invoke unregisterService method", e);
+ } catch(NoSuchMethodException e) {
+ LogLog.warn("No unregisterService method", e);
+ } catch(InvocationTargetException e) {
+ LogLog.warn("Unable to invoke unregisterService method", e);
+ }
+ }
+
+ private static Object initializeJMDNS() {
+ try {
+ jmDNSClass = Class.forName("javax.jmdns.JmDNS");
+ serviceInfoClass = Class.forName("javax.jmdns.ServiceInfo");
+ } catch (ClassNotFoundException e) {
+ LogLog.warn("JmDNS or serviceInfo class not found", e);
+ }
+
+ //if version 3 is available, use it to constuct a serviceInfo instance, otherwise support the version1 API
+ boolean isVersion3 = false;
+ try {
+ //create method is in version 3, not version 1
+ jmDNSClass.getMethod("create", null);
+ isVersion3 = true;
+ } catch (NoSuchMethodException e) {
+ //no-op
+ }
+
+ if (isVersion3) {
+ return createJmDNSVersion3();
+ } else {
+ return createJmDNSVersion1();
+ }
+ }
+
+ public static Object getJMDNSInstance() {
+ return jmDNS;
+ }
+}
diff --git a/src/ntdll/NTEventLogAppender.def b/src/ntdll/NTEventLogAppender.def
index 1cbcee84c8..031a3e29d9 100644
--- a/src/ntdll/NTEventLogAppender.def
+++ b/src/ntdll/NTEventLogAppender.def
@@ -1,22 +1,22 @@
-;
-; Licensed to the Apache Software Foundation (ASF) under one or more
-; contributor license agreements. See the NOTICE file distributed with
-; this work for additional information regarding copyright ownership.
-; The ASF licenses this file to You under the Apache License, Version 2.0
-; (the "License"); you may not use this file except in compliance with
-; the License. You may obtain a copy of the License at
-;
-; http://www.apache.org/licenses/LICENSE-2.0
-;
-; Unless required by applicable law or agreed to in writing, software
-; distributed under the License is distributed on an "AS IS" BASIS,
-; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-; See the License for the specific language governing permissions and
-; limitations under the License.
-;
-
-LIBRARY "NTEventLogAppender"
-
-EXPORTS
- DllRegisterServer PRIVATE
- DllUnregisterServer PRIVATE
+;
+; Licensed to the Apache Software Foundation (ASF) under one or more
+; contributor license agreements. See the NOTICE file distributed with
+; this work for additional information regarding copyright ownership.
+; The ASF licenses this file to You under the Apache License, Version 2.0
+; (the "License"); you may not use this file except in compliance with
+; the License. You may obtain a copy of the License at
+;
+; http://www.apache.org/licenses/LICENSE-2.0
+;
+; Unless required by applicable law or agreed to in writing, software
+; distributed under the License is distributed on an "AS IS" BASIS,
+; WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+; See the License for the specific language governing permissions and
+; limitations under the License.
+;
+
+LIBRARY "NTEventLogAppender"
+
+EXPORTS
+ DllRegisterServer PRIVATE
+ DllUnregisterServer PRIVATE
diff --git a/src/ntdll/NTEventLogAppender.rc b/src/ntdll/NTEventLogAppender.rc
index 8808456be1..461fad2612 100755
--- a/src/ntdll/NTEventLogAppender.rc
+++ b/src/ntdll/NTEventLogAppender.rc
@@ -1,126 +1,126 @@
-//
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements. See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership. The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License. You may obtain a copy of the License at
-//
-// http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied. See the License for the
-// specific language governing permissions and limitations
-// under the License.
-//
-//
-// Message file include
-//
-LANGUAGE 0x9,0x1
-1 11 MSG00001.bin
-// Microsoft Visual C++ generated resource script.
-//
-#include "windows.h"
-
-#define APSTUDIO_READONLY_SYMBOLS
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 2 resource.
-//
-//#include "afxres.h"
-
-/////////////////////////////////////////////////////////////////////////////
-#undef APSTUDIO_READONLY_SYMBOLS
-
-/////////////////////////////////////////////////////////////////////////////
-// English (U.S.) resources
-
-#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
-#ifdef _WIN32
-LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
-#pragma code_page(1252)
-#endif //_WIN32
-
-#ifdef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// TEXTINCLUDE
-//
-
-1 TEXTINCLUDE
-BEGIN
- "resource.h\0"
-END
-
-2 TEXTINCLUDE
-BEGIN
- "#include ""afxres.h""\r\n"
- "\0"
-END
-
-3 TEXTINCLUDE
-BEGIN
- "\r\n"
- "\0"
-END
-
-#endif // APSTUDIO_INVOKED
-
-
-/////////////////////////////////////////////////////////////////////////////
-//
-// Version
-//
-
-VS_VERSION_INFO VERSIONINFO
- FILEVERSION 1, 2, 16, 1
- PRODUCTVERSION 1, 2, 16, 1
- FILEFLAGSMASK 0x17L
-#ifdef _DEBUG
- FILEFLAGS 0x1L
-#else
- FILEFLAGS 0x0L
-#endif
- FILEOS 0x4L
- FILETYPE 0x2L
- FILESUBTYPE 0x0L
-BEGIN
- BLOCK "StringFileInfo"
- BEGIN
- BLOCK "040904b0"
- BEGIN
- VALUE "CompanyName", "Apache Software Foundation"
- VALUE "FileDescription", "Platform methods for NTEventLogAppender"
- VALUE "FileVersion", "1, 2, 16, 1"
- VALUE "InternalName", "NTEventLogAppender"
- VALUE "LegalCopyright", "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the ""License""); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an ""AS IS"" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."
- VALUE "OriginalFilename", "NTEventLogAppender.dll"
- VALUE "ProductName", "Apache log4j"
- VALUE "ProductVersion", "1, 2, 16, 1"
- VALUE "OLESelfRegister", "\0"
- END
- END
- BLOCK "VarFileInfo"
- BEGIN
- VALUE "Translation", 0x409, 1200
- END
-END
-
-#endif // English (U.S.) resources
-/////////////////////////////////////////////////////////////////////////////
-
-
-
-#ifndef APSTUDIO_INVOKED
-/////////////////////////////////////////////////////////////////////////////
-//
-// Generated from the TEXTINCLUDE 3 resource.
-//
-
-
-/////////////////////////////////////////////////////////////////////////////
-#endif // not APSTUDIO_INVOKED
-
+//
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache License, Version 2.0 (the
+// "License"); you may not use this file except in compliance
+// with the License. You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing,
+// software distributed under the License is distributed on an
+// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+// KIND, either express or implied. See the License for the
+// specific language governing permissions and limitations
+// under the License.
+//
+//
+// Message file include
+//
+LANGUAGE 0x9,0x1
+1 11 MSG00001.bin
+// Microsoft Visual C++ generated resource script.
+//
+#include "windows.h"
+
+#define APSTUDIO_READONLY_SYMBOLS
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 2 resource.
+//
+//#include "afxres.h"
+
+/////////////////////////////////////////////////////////////////////////////
+#undef APSTUDIO_READONLY_SYMBOLS
+
+/////////////////////////////////////////////////////////////////////////////
+// English (U.S.) resources
+
+#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
+#ifdef _WIN32
+LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
+#pragma code_page(1252)
+#endif //_WIN32
+
+#ifdef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// TEXTINCLUDE
+//
+
+1 TEXTINCLUDE
+BEGIN
+ "resource.h\0"
+END
+
+2 TEXTINCLUDE
+BEGIN
+ "#include ""afxres.h""\r\n"
+ "\0"
+END
+
+3 TEXTINCLUDE
+BEGIN
+ "\r\n"
+ "\0"
+END
+
+#endif // APSTUDIO_INVOKED
+
+
+/////////////////////////////////////////////////////////////////////////////
+//
+// Version
+//
+
+VS_VERSION_INFO VERSIONINFO
+ FILEVERSION 1, 2, 16, 1
+ PRODUCTVERSION 1, 2, 16, 1
+ FILEFLAGSMASK 0x17L
+#ifdef _DEBUG
+ FILEFLAGS 0x1L
+#else
+ FILEFLAGS 0x0L
+#endif
+ FILEOS 0x4L
+ FILETYPE 0x2L
+ FILESUBTYPE 0x0L
+BEGIN
+ BLOCK "StringFileInfo"
+ BEGIN
+ BLOCK "040904b0"
+ BEGIN
+ VALUE "CompanyName", "Apache Software Foundation"
+ VALUE "FileDescription", "Platform methods for NTEventLogAppender"
+ VALUE "FileVersion", "1, 2, 16, 1"
+ VALUE "InternalName", "NTEventLogAppender"
+ VALUE "LegalCopyright", "Licensed to the Apache Software Foundation (ASF) under one or more\ncontributor license agreements. See the NOTICE file distributed with\nthis work for additional information regarding copyright ownership.\nThe ASF licenses this file to You under the Apache License, Version 2.0\n(the ""License""); you may not use this file except in compliance with\nthe License. You may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an ""AS IS"" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License."
+ VALUE "OriginalFilename", "NTEventLogAppender.dll"
+ VALUE "ProductName", "Apache log4j"
+ VALUE "ProductVersion", "1, 2, 16, 1"
+ VALUE "OLESelfRegister", "\0"
+ END
+ END
+ BLOCK "VarFileInfo"
+ BEGIN
+ VALUE "Translation", 0x409, 1200
+ END
+END
+
+#endif // English (U.S.) resources
+/////////////////////////////////////////////////////////////////////////////
+
+
+
+#ifndef APSTUDIO_INVOKED
+/////////////////////////////////////////////////////////////////////////////
+//
+// Generated from the TEXTINCLUDE 3 resource.
+//
+
+
+/////////////////////////////////////////////////////////////////////////////
+#endif // not APSTUDIO_INVOKED
+
diff --git a/tests/input/xml/categoryfactory1.xml b/tests/input/xml/categoryfactory1.xml
index 369e7c9474..eba5a33181 100644
--- a/tests/input/xml/categoryfactory1.xml
+++ b/tests/input/xml/categoryfactory1.xml
@@ -1,35 +1,35 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/input/xml/categoryfactory2.xml b/tests/input/xml/categoryfactory2.xml
index 146e5f2429..9f48b1ee96 100644
--- a/tests/input/xml/categoryfactory2.xml
+++ b/tests/input/xml/categoryfactory2.xml
@@ -1,38 +1,38 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/input/xml/loggerfactory1.xml b/tests/input/xml/loggerfactory1.xml
index c2514a7631..467245002a 100644
--- a/tests/input/xml/loggerfactory1.xml
+++ b/tests/input/xml/loggerfactory1.xml
@@ -1,35 +1,35 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/tests/src/java/org/apache/log4j/PropertyConfiguratorTest.java b/tests/src/java/org/apache/log4j/PropertyConfiguratorTest.java
index 4b5e030197..720f917411 100644
--- a/tests/src/java/org/apache/log4j/PropertyConfiguratorTest.java
+++ b/tests/src/java/org/apache/log4j/PropertyConfiguratorTest.java
@@ -1,369 +1,369 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.log4j;
-
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.FileOutputStream;
-import java.io.FileWriter;
-import java.io.IOException;
-import java.net.URL;
-import java.util.Properties;
-import java.util.zip.ZipEntry;
-import java.util.zip.ZipOutputStream;
-
-import junit.framework.TestCase;
-
-import org.apache.log4j.spi.Filter;
-import org.apache.log4j.spi.LoggingEvent;
-import org.apache.log4j.spi.OptionHandler;
-import org.apache.log4j.spi.ThrowableRenderer;
-import org.apache.log4j.spi.ThrowableRendererSupport;
-import org.apache.log4j.varia.LevelRangeFilter;
-
-/**
- * Test property configurator.
- *
- */
-public class PropertyConfiguratorTest extends TestCase {
- public PropertyConfiguratorTest(final String testName) {
- super(testName);
- }
-
- /**
- * Test for bug 40944.
- * Did not catch IllegalArgumentException on Properties.load
- * and close input stream.
- * @throws IOException if IOException creating properties file.
- */
- public void testBadUnicodeEscape() throws IOException {
- String fileName = "output/badescape.properties";
- FileWriter writer = new FileWriter(fileName);
- writer.write("log4j.rootLogger=\\uXX41");
- writer.close();
- PropertyConfigurator.configure(fileName);
- File file = new File(fileName);
- assertTrue(file.delete()) ;
- assertFalse(file.exists());
- }
-
- /**
- * Test for bug 40944.
- * configure(URL) never closed opened stream.
- * @throws IOException if IOException creating properties file.
- */
- public void testURL() throws IOException {
- File file = new File("output/unclosed.properties");
- FileWriter writer = new FileWriter(file);
- writer.write("log4j.rootLogger=debug");
- writer.close();
- URL url = file.toURL();
- PropertyConfigurator.configure(url);
- assertTrue(file.delete());
- assertFalse(file.exists());
- }
-
- /**
- * Test for bug 40944.
- * configure(URL) did not catch IllegalArgumentException and
- * did not close stream.
- * @throws IOException if IOException creating properties file.
- */
- public void testURLBadEscape() throws IOException {
- File file = new File("output/urlbadescape.properties");
- FileWriter writer = new FileWriter(file);
- writer.write("log4j.rootLogger=\\uXX41");
- writer.close();
- URL url = file.toURL();
- PropertyConfigurator.configure(url);
- assertTrue(file.delete());
- assertFalse(file.exists());
- }
-
- /**
- * Tests configuring Log4J from an InputStream.
- *
- * @since 1.2.17
- */
- public void testInputStream() throws IOException {
- File file = new File("input/filter1.properties");
- assertTrue(file.exists());
- FileInputStream inputStream = new FileInputStream(file);
- try {
- PropertyConfigurator.configure(inputStream);
- } finally {
- inputStream.close();
- }
- this.validateNested();
- LogManager.resetConfiguration();
- }
-
- public void validateNested() {
- RollingFileAppender rfa = (RollingFileAppender)
- Logger.getLogger("org.apache.log4j.PropertyConfiguratorTest")
- .getAppender("ROLLING");
- FixedWindowRollingPolicy rollingPolicy = (FixedWindowRollingPolicy) rfa.getRollingPolicy();
- assertEquals("filterBase-test1.log", rollingPolicy.getActiveFileName());
- assertEquals("filterBased-test1.%i", rollingPolicy.getFileNamePattern());
- assertEquals(0, rollingPolicy.getMinIndex());
- assertTrue(rollingPolicy.isActivated());
- FilterBasedTriggeringPolicy triggeringPolicy =
- (FilterBasedTriggeringPolicy) rfa.getTriggeringPolicy();
- LevelRangeFilter filter = (LevelRangeFilter) triggeringPolicy.getFilter();
- assertTrue(Level.INFO.equals(filter.getLevelMin()));
- }
-
- /**
- * Test for bug 47465.
- * configure(URL) did not close opened JarURLConnection.
- * @throws IOException if IOException creating properties jar.
- */
- public void testJarURL() throws IOException {
- File dir = new File("output");
- dir.mkdirs();
- File file = new File("output/properties.jar");
- ZipOutputStream zos =
- new ZipOutputStream(new FileOutputStream(file));
- zos.putNextEntry(new ZipEntry(LogManager.DEFAULT_CONFIGURATION_FILE));
- zos.write("log4j.rootLogger=debug".getBytes());
- zos.closeEntry();
- zos.close();
- URL url = new URL("jar:" + file.toURL() + "!/" +
- LogManager.DEFAULT_CONFIGURATION_FILE);
- PropertyConfigurator.configure(url);
- assertTrue(file.delete());
- assertFalse(file.exists());
- }
-
- /**
- * Test processing of log4j.reset property, see bug 17531.
- *
- */
- public void testReset() {
- VectorAppender appender = new VectorAppender();
- appender.setName("A1");
- Logger.getRootLogger().addAppender(appender);
- Properties props = new Properties();
- props.put("log4j.reset", "true");
- PropertyConfigurator.configure(props);
- assertNull(Logger.getRootLogger().getAppender("A1"));
- LogManager.resetConfiguration();
- }
-
-
- /**
- * Mock definition of org.apache.log4j.rolling.RollingPolicy
- * from extras companion.
- */
- public static class RollingPolicy implements OptionHandler {
- private boolean activated = false;
-
- public RollingPolicy() {
-
- }
- public void activateOptions() {
- activated = true;
- }
-
- public final boolean isActivated() {
- return activated;
- }
-
- }
-
- /**
- * Mock definition of FixedWindowRollingPolicy from extras companion.
- */
- public static final class FixedWindowRollingPolicy extends RollingPolicy {
- private String activeFileName;
- private String fileNamePattern;
- private int minIndex;
-
- public FixedWindowRollingPolicy() {
- minIndex = -1;
- }
-
- public String getActiveFileName() {
- return activeFileName;
- }
- public void setActiveFileName(final String val) {
- activeFileName = val;
- }
-
- public String getFileNamePattern() {
- return fileNamePattern;
- }
- public void setFileNamePattern(final String val) {
- fileNamePattern = val;
- }
-
- public int getMinIndex() {
- return minIndex;
- }
-
- public void setMinIndex(final int val) {
- minIndex = val;
- }
- }
-
- /**
- * Mock definition of TriggeringPolicy from extras companion.
- */
- public static class TriggeringPolicy implements OptionHandler {
- private boolean activated = false;
-
- public TriggeringPolicy() {
-
- }
- public void activateOptions() {
- activated = true;
- }
-
- public final boolean isActivated() {
- return activated;
- }
-
- }
-
- /**
- * Mock definition of FilterBasedTriggeringPolicy from extras companion.
- */
- public static final class FilterBasedTriggeringPolicy extends TriggeringPolicy {
- private Filter filter;
- public FilterBasedTriggeringPolicy() {
- }
-
- public void setFilter(final Filter val) {
- filter = val;
- }
-
- public Filter getFilter() {
- return filter;
-
- }
- }
-
- /**
- * Mock definition of org.apache.log4j.rolling.RollingFileAppender
- * from extras companion.
- */
- public static final class RollingFileAppender extends AppenderSkeleton {
- private RollingPolicy rollingPolicy;
- private TriggeringPolicy triggeringPolicy;
- private boolean append;
-
- public RollingFileAppender() {
-
- }
-
- public RollingPolicy getRollingPolicy() {
- return rollingPolicy;
- }
-
- public void setRollingPolicy(final RollingPolicy policy) {
- rollingPolicy = policy;
- }
-
- public TriggeringPolicy getTriggeringPolicy() {
- return triggeringPolicy;
- }
-
- public void setTriggeringPolicy(final TriggeringPolicy policy) {
- triggeringPolicy = policy;
- }
-
- public boolean getAppend() {
- return append;
- }
-
- public void setAppend(boolean val) {
- append = val;
- }
-
- public void close() {
-
- }
-
- public boolean requiresLayout() {
- return true;
- }
-
- public void append(final LoggingEvent event) {
-
- }
- }
-
- /**
- * Tests processing of nested objects, see bug 36384.
- */
- public void testNested() {
- try {
- PropertyConfigurator.configure("input/filter1.properties");
- this.validateNested();
- } finally {
- LogManager.resetConfiguration();
- }
- }
-
-
- /**
- * Mock ThrowableRenderer for testThrowableRenderer. See bug 45721.
- */
- public static class MockThrowableRenderer implements ThrowableRenderer, OptionHandler {
- private boolean activated = false;
- private boolean showVersion = true;
-
- public MockThrowableRenderer() {
- }
-
- public void activateOptions() {
- activated = true;
- }
-
- public boolean isActivated() {
- return activated;
- }
-
- public String[] doRender(final Throwable t) {
- return new String[0];
- }
-
- public void setShowVersion(boolean v) {
- showVersion = v;
- }
-
- public boolean getShowVersion() {
- return showVersion;
- }
- }
-
- /**
- * Test of log4j.throwableRenderer support. See bug 45721.
- */
- public void testThrowableRenderer() {
- Properties props = new Properties();
- props.put("log4j.throwableRenderer", "org.apache.log4j.PropertyConfiguratorTest$MockThrowableRenderer");
- props.put("log4j.throwableRenderer.showVersion", "false");
- PropertyConfigurator.configure(props);
- ThrowableRendererSupport repo = (ThrowableRendererSupport) LogManager.getLoggerRepository();
- MockThrowableRenderer renderer = (MockThrowableRenderer) repo.getThrowableRenderer();
- LogManager.resetConfiguration();
- assertNotNull(renderer);
- assertEquals(true, renderer.isActivated());
- assertEquals(false, renderer.getShowVersion());
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.log4j;
+
+import java.io.File;
+import java.io.FileInputStream;
+import java.io.FileOutputStream;
+import java.io.FileWriter;
+import java.io.IOException;
+import java.net.URL;
+import java.util.Properties;
+import java.util.zip.ZipEntry;
+import java.util.zip.ZipOutputStream;
+
+import junit.framework.TestCase;
+
+import org.apache.log4j.spi.Filter;
+import org.apache.log4j.spi.LoggingEvent;
+import org.apache.log4j.spi.OptionHandler;
+import org.apache.log4j.spi.ThrowableRenderer;
+import org.apache.log4j.spi.ThrowableRendererSupport;
+import org.apache.log4j.varia.LevelRangeFilter;
+
+/**
+ * Test property configurator.
+ *
+ */
+public class PropertyConfiguratorTest extends TestCase {
+ public PropertyConfiguratorTest(final String testName) {
+ super(testName);
+ }
+
+ /**
+ * Test for bug 40944.
+ * Did not catch IllegalArgumentException on Properties.load
+ * and close input stream.
+ * @throws IOException if IOException creating properties file.
+ */
+ public void testBadUnicodeEscape() throws IOException {
+ String fileName = "output/badescape.properties";
+ FileWriter writer = new FileWriter(fileName);
+ writer.write("log4j.rootLogger=\\uXX41");
+ writer.close();
+ PropertyConfigurator.configure(fileName);
+ File file = new File(fileName);
+ assertTrue(file.delete()) ;
+ assertFalse(file.exists());
+ }
+
+ /**
+ * Test for bug 40944.
+ * configure(URL) never closed opened stream.
+ * @throws IOException if IOException creating properties file.
+ */
+ public void testURL() throws IOException {
+ File file = new File("output/unclosed.properties");
+ FileWriter writer = new FileWriter(file);
+ writer.write("log4j.rootLogger=debug");
+ writer.close();
+ URL url = file.toURL();
+ PropertyConfigurator.configure(url);
+ assertTrue(file.delete());
+ assertFalse(file.exists());
+ }
+
+ /**
+ * Test for bug 40944.
+ * configure(URL) did not catch IllegalArgumentException and
+ * did not close stream.
+ * @throws IOException if IOException creating properties file.
+ */
+ public void testURLBadEscape() throws IOException {
+ File file = new File("output/urlbadescape.properties");
+ FileWriter writer = new FileWriter(file);
+ writer.write("log4j.rootLogger=\\uXX41");
+ writer.close();
+ URL url = file.toURL();
+ PropertyConfigurator.configure(url);
+ assertTrue(file.delete());
+ assertFalse(file.exists());
+ }
+
+ /**
+ * Tests configuring Log4J from an InputStream.
+ *
+ * @since 1.2.17
+ */
+ public void testInputStream() throws IOException {
+ File file = new File("input/filter1.properties");
+ assertTrue(file.exists());
+ FileInputStream inputStream = new FileInputStream(file);
+ try {
+ PropertyConfigurator.configure(inputStream);
+ } finally {
+ inputStream.close();
+ }
+ this.validateNested();
+ LogManager.resetConfiguration();
+ }
+
+ public void validateNested() {
+ RollingFileAppender rfa = (RollingFileAppender)
+ Logger.getLogger("org.apache.log4j.PropertyConfiguratorTest")
+ .getAppender("ROLLING");
+ FixedWindowRollingPolicy rollingPolicy = (FixedWindowRollingPolicy) rfa.getRollingPolicy();
+ assertEquals("filterBase-test1.log", rollingPolicy.getActiveFileName());
+ assertEquals("filterBased-test1.%i", rollingPolicy.getFileNamePattern());
+ assertEquals(0, rollingPolicy.getMinIndex());
+ assertTrue(rollingPolicy.isActivated());
+ FilterBasedTriggeringPolicy triggeringPolicy =
+ (FilterBasedTriggeringPolicy) rfa.getTriggeringPolicy();
+ LevelRangeFilter filter = (LevelRangeFilter) triggeringPolicy.getFilter();
+ assertTrue(Level.INFO.equals(filter.getLevelMin()));
+ }
+
+ /**
+ * Test for bug 47465.
+ * configure(URL) did not close opened JarURLConnection.
+ * @throws IOException if IOException creating properties jar.
+ */
+ public void testJarURL() throws IOException {
+ File dir = new File("output");
+ dir.mkdirs();
+ File file = new File("output/properties.jar");
+ ZipOutputStream zos =
+ new ZipOutputStream(new FileOutputStream(file));
+ zos.putNextEntry(new ZipEntry(LogManager.DEFAULT_CONFIGURATION_FILE));
+ zos.write("log4j.rootLogger=debug".getBytes());
+ zos.closeEntry();
+ zos.close();
+ URL url = new URL("jar:" + file.toURL() + "!/" +
+ LogManager.DEFAULT_CONFIGURATION_FILE);
+ PropertyConfigurator.configure(url);
+ assertTrue(file.delete());
+ assertFalse(file.exists());
+ }
+
+ /**
+ * Test processing of log4j.reset property, see bug 17531.
+ *
+ */
+ public void testReset() {
+ VectorAppender appender = new VectorAppender();
+ appender.setName("A1");
+ Logger.getRootLogger().addAppender(appender);
+ Properties props = new Properties();
+ props.put("log4j.reset", "true");
+ PropertyConfigurator.configure(props);
+ assertNull(Logger.getRootLogger().getAppender("A1"));
+ LogManager.resetConfiguration();
+ }
+
+
+ /**
+ * Mock definition of org.apache.log4j.rolling.RollingPolicy
+ * from extras companion.
+ */
+ public static class RollingPolicy implements OptionHandler {
+ private boolean activated = false;
+
+ public RollingPolicy() {
+
+ }
+ public void activateOptions() {
+ activated = true;
+ }
+
+ public final boolean isActivated() {
+ return activated;
+ }
+
+ }
+
+ /**
+ * Mock definition of FixedWindowRollingPolicy from extras companion.
+ */
+ public static final class FixedWindowRollingPolicy extends RollingPolicy {
+ private String activeFileName;
+ private String fileNamePattern;
+ private int minIndex;
+
+ public FixedWindowRollingPolicy() {
+ minIndex = -1;
+ }
+
+ public String getActiveFileName() {
+ return activeFileName;
+ }
+ public void setActiveFileName(final String val) {
+ activeFileName = val;
+ }
+
+ public String getFileNamePattern() {
+ return fileNamePattern;
+ }
+ public void setFileNamePattern(final String val) {
+ fileNamePattern = val;
+ }
+
+ public int getMinIndex() {
+ return minIndex;
+ }
+
+ public void setMinIndex(final int val) {
+ minIndex = val;
+ }
+ }
+
+ /**
+ * Mock definition of TriggeringPolicy from extras companion.
+ */
+ public static class TriggeringPolicy implements OptionHandler {
+ private boolean activated = false;
+
+ public TriggeringPolicy() {
+
+ }
+ public void activateOptions() {
+ activated = true;
+ }
+
+ public final boolean isActivated() {
+ return activated;
+ }
+
+ }
+
+ /**
+ * Mock definition of FilterBasedTriggeringPolicy from extras companion.
+ */
+ public static final class FilterBasedTriggeringPolicy extends TriggeringPolicy {
+ private Filter filter;
+ public FilterBasedTriggeringPolicy() {
+ }
+
+ public void setFilter(final Filter val) {
+ filter = val;
+ }
+
+ public Filter getFilter() {
+ return filter;
+
+ }
+ }
+
+ /**
+ * Mock definition of org.apache.log4j.rolling.RollingFileAppender
+ * from extras companion.
+ */
+ public static final class RollingFileAppender extends AppenderSkeleton {
+ private RollingPolicy rollingPolicy;
+ private TriggeringPolicy triggeringPolicy;
+ private boolean append;
+
+ public RollingFileAppender() {
+
+ }
+
+ public RollingPolicy getRollingPolicy() {
+ return rollingPolicy;
+ }
+
+ public void setRollingPolicy(final RollingPolicy policy) {
+ rollingPolicy = policy;
+ }
+
+ public TriggeringPolicy getTriggeringPolicy() {
+ return triggeringPolicy;
+ }
+
+ public void setTriggeringPolicy(final TriggeringPolicy policy) {
+ triggeringPolicy = policy;
+ }
+
+ public boolean getAppend() {
+ return append;
+ }
+
+ public void setAppend(boolean val) {
+ append = val;
+ }
+
+ public void close() {
+
+ }
+
+ public boolean requiresLayout() {
+ return true;
+ }
+
+ public void append(final LoggingEvent event) {
+
+ }
+ }
+
+ /**
+ * Tests processing of nested objects, see bug 36384.
+ */
+ public void testNested() {
+ try {
+ PropertyConfigurator.configure("input/filter1.properties");
+ this.validateNested();
+ } finally {
+ LogManager.resetConfiguration();
+ }
+ }
+
+
+ /**
+ * Mock ThrowableRenderer for testThrowableRenderer. See bug 45721.
+ */
+ public static class MockThrowableRenderer implements ThrowableRenderer, OptionHandler {
+ private boolean activated = false;
+ private boolean showVersion = true;
+
+ public MockThrowableRenderer() {
+ }
+
+ public void activateOptions() {
+ activated = true;
+ }
+
+ public boolean isActivated() {
+ return activated;
+ }
+
+ public String[] doRender(final Throwable t) {
+ return new String[0];
+ }
+
+ public void setShowVersion(boolean v) {
+ showVersion = v;
+ }
+
+ public boolean getShowVersion() {
+ return showVersion;
+ }
+ }
+
+ /**
+ * Test of log4j.throwableRenderer support. See bug 45721.
+ */
+ public void testThrowableRenderer() {
+ Properties props = new Properties();
+ props.put("log4j.throwableRenderer", "org.apache.log4j.PropertyConfiguratorTest$MockThrowableRenderer");
+ props.put("log4j.throwableRenderer.showVersion", "false");
+ PropertyConfigurator.configure(props);
+ ThrowableRendererSupport repo = (ThrowableRendererSupport) LogManager.getLoggerRepository();
+ MockThrowableRenderer renderer = (MockThrowableRenderer) repo.getThrowableRenderer();
+ LogManager.resetConfiguration();
+ assertNotNull(renderer);
+ assertEquals(true, renderer.isActivated());
+ assertEquals(false, renderer.getShowVersion());
+ }
+}
diff --git a/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java b/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
index bba8de0602..a32e76712f 100755
--- a/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
+++ b/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
@@ -1,55 +1,55 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-package org.apache.log4j.nt;
-import junit.framework.TestCase;
-import org.apache.log4j.Logger;
-import org.apache.log4j.LogManager;
-import org.apache.log4j.Level;
-import org.apache.log4j.BasicConfigurator;
-
-
-/**
- *
- * NTEventLogAppender tests.
- *
- * @author Curt Arnold
- */
-public class NTEventLogAppenderTest extends TestCase {
-
- /**
- * Clean up configuration after each test.
- */
- public void tearDown() {
- LogManager.shutdown();
- }
-
- /**
- * Simple test of NTEventLogAppender.
- */
- public void testSimple() {
- BasicConfigurator.configure(new NTEventLogAppender());
- Logger logger = Logger.getLogger("org.apache.log4j.nt.NTEventLogAppenderTest");
- int i = 0;
- logger.debug( "Message " + i++);
- logger.info( "Message " + i++);
- logger.warn( "Message " + i++);
- logger.error( "Message " + i++);
- logger.log(Level.FATAL, "Message " + i++);
- logger.debug("Message " + i++, new Exception("Just testing."));
- }
-}
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.log4j.nt;
+import junit.framework.TestCase;
+import org.apache.log4j.Logger;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Level;
+import org.apache.log4j.BasicConfigurator;
+
+
+/**
+ *
+ * NTEventLogAppender tests.
+ *
+ * @author Curt Arnold
+ */
+public class NTEventLogAppenderTest extends TestCase {
+
+ /**
+ * Clean up configuration after each test.
+ */
+ public void tearDown() {
+ LogManager.shutdown();
+ }
+
+ /**
+ * Simple test of NTEventLogAppender.
+ */
+ public void testSimple() {
+ BasicConfigurator.configure(new NTEventLogAppender());
+ Logger logger = Logger.getLogger("org.apache.log4j.nt.NTEventLogAppenderTest");
+ int i = 0;
+ logger.debug( "Message " + i++);
+ logger.info( "Message " + i++);
+ logger.warn( "Message " + i++);
+ logger.error( "Message " + i++);
+ logger.log(Level.FATAL, "Message " + i++);
+ logger.debug("Message " + i++, new Exception("Just testing."));
+ }
+}
diff --git a/tests/witness/drfa_blockedRollover.log b/tests/witness/drfa_blockedRollover.log
index 3c7883740e..b9ee6825ee 100644
--- a/tests/witness/drfa_blockedRollover.log
+++ b/tests/witness/drfa_blockedRollover.log
@@ -1,3 +1,3 @@
-INFO - Prior to rollover
-INFO - Rollover attempt while blocked
-INFO - Message after block removed
+INFO - Prior to rollover
+INFO - Rollover attempt while blocked
+INFO - Message after block removed
diff --git a/tests/witness/pattern/enhancedPatternLayout.1 b/tests/witness/pattern/enhancedPatternLayout.1
index d5ab5347c3..09b08bf04e 100644
--- a/tests/witness/pattern/enhancedPatternLayout.1
+++ b/tests/witness/pattern/enhancedPatternLayout.1
@@ -1,75 +1,75 @@
-DEBUG - Message 0
-DEBUG - Message 0
-INFO - Message 1
-INFO - Message 1
-WARN - Message 2
-WARN - Message 2
-ERROR - Message 3
-ERROR - Message 3
-FATAL - Message 4
-FATAL - Message 4
-DEBUG - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-INFO - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-WARN - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-ERROR - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-FATAL - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+DEBUG - Message 0
+DEBUG - Message 0
+INFO - Message 1
+INFO - Message 1
+WARN - Message 2
+WARN - Message 2
+ERROR - Message 3
+ERROR - Message 3
+FATAL - Message 4
+FATAL - Message 4
+DEBUG - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+INFO - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+WARN - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ERROR - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+FATAL - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test1(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.10 b/tests/witness/pattern/enhancedPatternLayout.10
index 381c2db048..0dda751482 100644
--- a/tests/witness/pattern/enhancedPatternLayout.10
+++ b/tests/witness/pattern/enhancedPatternLayout.10
@@ -1,75 +1,75 @@
-[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
-[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
-[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
-[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
-[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
-[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
-[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
-[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
-[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
-[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
-[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
+[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
+[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
+[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
+[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
+[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
+[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
+[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
+[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
+[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
+[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test10(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.11 b/tests/witness/pattern/enhancedPatternLayout.11
index 65f933b704..b3a581c428 100644
--- a/tests/witness/pattern/enhancedPatternLayout.11
+++ b/tests/witness/pattern/enhancedPatternLayout.11
@@ -1,75 +1,75 @@
-DEBUG [main] log4j.EnhancedPatternLayoutTest: Message 0
-DEBUG [main] root: Message 0
-INFO [main] log4j.EnhancedPatternLayoutTest: Message 1
-INFO [main] root: Message 1
-WARN [main] log4j.EnhancedPatternLayoutTest: Message 2
-WARN [main] root: Message 2
-ERROR [main] log4j.EnhancedPatternLayoutTest: Message 3
-ERROR [main] root: Message 3
-FATAL [main] log4j.EnhancedPatternLayoutTest: Message 4
-FATAL [main] root: Message 4
-DEBUG [main] log4j.EnhancedPatternLayoutTest: Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-INFO [main] log4j.EnhancedPatternLayoutTest: Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-WARN [main] log4j.EnhancedPatternLayoutTest: Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-ERROR [main] log4j.EnhancedPatternLayoutTest: Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-FATAL [main] log4j.EnhancedPatternLayoutTest: Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+DEBUG [main] log4j.EnhancedPatternLayoutTest: Message 0
+DEBUG [main] root: Message 0
+INFO [main] log4j.EnhancedPatternLayoutTest: Message 1
+INFO [main] root: Message 1
+WARN [main] log4j.EnhancedPatternLayoutTest: Message 2
+WARN [main] root: Message 2
+ERROR [main] log4j.EnhancedPatternLayoutTest: Message 3
+ERROR [main] root: Message 3
+FATAL [main] log4j.EnhancedPatternLayoutTest: Message 4
+FATAL [main] root: Message 4
+DEBUG [main] log4j.EnhancedPatternLayoutTest: Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+INFO [main] log4j.EnhancedPatternLayoutTest: Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+WARN [main] log4j.EnhancedPatternLayoutTest: Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ERROR [main] log4j.EnhancedPatternLayoutTest: Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+FATAL [main] log4j.EnhancedPatternLayoutTest: Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test11(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.12 b/tests/witness/pattern/enhancedPatternLayout.12
index 78039c7f03..a2ac364c0f 100644
--- a/tests/witness/pattern/enhancedPatternLayout.12
+++ b/tests/witness/pattern/enhancedPatternLayout.12
@@ -1,75 +1,75 @@
-[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
-[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
-[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
-[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
-[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
-[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
-[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
-[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
-[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
-[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
-[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
+[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
+[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
+[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
+[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
+[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
+[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
+[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
+[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
+[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
+[main] DEBUG org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] INFO org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] WARN org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] ERROR org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] FATAL org.apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test12(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.13 b/tests/witness/pattern/enhancedPatternLayout.13
index dbd6bd4657..3a00e8900a 100644
--- a/tests/witness/pattern/enhancedPatternLayout.13
+++ b/tests/witness/pattern/enhancedPatternLayout.13
@@ -1,75 +1,75 @@
-[main] DEBUG apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
-[main] DEBUG apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
-[main] INFO apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
-[main] INFO apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
-[main] WARN apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
-[main] WARN apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
-[main] ERROR apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
-[main] ERROR apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
-[main] FATAL apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
-[main] FATAL apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
-[main] DEBUG apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] INFO apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] WARN apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] ERROR apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] FATAL apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+[main] DEBUG apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
+[main] DEBUG apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 0
+[main] INFO apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
+[main] INFO apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 1
+[main] WARN apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
+[main] WARN apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 2
+[main] ERROR apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
+[main] ERROR apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 3
+[main] FATAL apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
+[main] FATAL apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 4
+[main] DEBUG apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] INFO apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] WARN apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] ERROR apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] FATAL apache.log4j.EnhancedPatternLayoutTestCase.common(X): Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test13(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.14 b/tests/witness/pattern/enhancedPatternLayout.14
index 9bdc71ee2a..4d3ba70043 100644
--- a/tests/witness/pattern/enhancedPatternLayout.14
+++ b/tests/witness/pattern/enhancedPatternLayout.14
@@ -1,75 +1,75 @@
-DEBUG [main] o.a.l.EnhancedPatternLayoutTest: Message 0
-DEBUG [main] root: Message 0
-INFO [main] o.a.l.EnhancedPatternLayoutTest: Message 1
-INFO [main] root: Message 1
-WARN [main] o.a.l.EnhancedPatternLayoutTest: Message 2
-WARN [main] root: Message 2
-ERROR [main] o.a.l.EnhancedPatternLayoutTest: Message 3
-ERROR [main] root: Message 3
-FATAL [main] o.a.l.EnhancedPatternLayoutTest: Message 4
-FATAL [main] root: Message 4
-DEBUG [main] o.a.l.EnhancedPatternLayoutTest: Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-INFO [main] o.a.l.EnhancedPatternLayoutTest: Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-WARN [main] o.a.l.EnhancedPatternLayoutTest: Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-ERROR [main] o.a.l.EnhancedPatternLayoutTest: Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-FATAL [main] o.a.l.EnhancedPatternLayoutTest: Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+DEBUG [main] o.a.l.EnhancedPatternLayoutTest: Message 0
+DEBUG [main] root: Message 0
+INFO [main] o.a.l.EnhancedPatternLayoutTest: Message 1
+INFO [main] root: Message 1
+WARN [main] o.a.l.EnhancedPatternLayoutTest: Message 2
+WARN [main] root: Message 2
+ERROR [main] o.a.l.EnhancedPatternLayoutTest: Message 3
+ERROR [main] root: Message 3
+FATAL [main] o.a.l.EnhancedPatternLayoutTest: Message 4
+FATAL [main] root: Message 4
+DEBUG [main] o.a.l.EnhancedPatternLayoutTest: Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+INFO [main] o.a.l.EnhancedPatternLayoutTest: Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+WARN [main] o.a.l.EnhancedPatternLayoutTest: Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ERROR [main] o.a.l.EnhancedPatternLayoutTest: Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+FATAL [main] o.a.l.EnhancedPatternLayoutTest: Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test14(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.2 b/tests/witness/pattern/enhancedPatternLayout.2
index d4caecc625..d45b7458b3 100644
--- a/tests/witness/pattern/enhancedPatternLayout.2
+++ b/tests/witness/pattern/enhancedPatternLayout.2
@@ -1,75 +1,75 @@
- [main] DEBUG atternLayoutTest - Message 0
- [main] DEBUG root - Message 0
- [main] INFO atternLayoutTest - Message 1
- [main] INFO root - Message 1
- [main] WARN atternLayoutTest - Message 2
- [main] WARN root - Message 2
- [main] ERROR atternLayoutTest - Message 3
- [main] ERROR root - Message 3
- [main] FATAL atternLayoutTest - Message 4
- [main] FATAL root - Message 4
- [main] DEBUG atternLayoutTest - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] INFO atternLayoutTest - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] WARN atternLayoutTest - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] ERROR atternLayoutTest - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] FATAL atternLayoutTest - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+ [main] DEBUG atternLayoutTest - Message 0
+ [main] DEBUG root - Message 0
+ [main] INFO atternLayoutTest - Message 1
+ [main] INFO root - Message 1
+ [main] WARN atternLayoutTest - Message 2
+ [main] WARN root - Message 2
+ [main] ERROR atternLayoutTest - Message 3
+ [main] ERROR root - Message 3
+ [main] FATAL atternLayoutTest - Message 4
+ [main] FATAL root - Message 4
+ [main] DEBUG atternLayoutTest - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] INFO atternLayoutTest - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] WARN atternLayoutTest - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] ERROR atternLayoutTest - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] FATAL atternLayoutTest - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test2(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.3 b/tests/witness/pattern/enhancedPatternLayout.3
index 248df6d60e..45e2507300 100644
--- a/tests/witness/pattern/enhancedPatternLayout.3
+++ b/tests/witness/pattern/enhancedPatternLayout.3
@@ -1,75 +1,75 @@
- [main] DEBUG atternLayoutTest - Message 0
- [main] DEBUG root - Message 0
- [main] INFO atternLayoutTest - Message 1
- [main] INFO root - Message 1
- [main] WARN atternLayoutTest - Message 2
- [main] WARN root - Message 2
- [main] ERROR atternLayoutTest - Message 3
- [main] ERROR root - Message 3
- [main] FATAL atternLayoutTest - Message 4
- [main] FATAL root - Message 4
- [main] DEBUG atternLayoutTest - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] INFO atternLayoutTest - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] WARN atternLayoutTest - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] ERROR atternLayoutTest - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] FATAL atternLayoutTest - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+ [main] DEBUG atternLayoutTest - Message 0
+ [main] DEBUG root - Message 0
+ [main] INFO atternLayoutTest - Message 1
+ [main] INFO root - Message 1
+ [main] WARN atternLayoutTest - Message 2
+ [main] WARN root - Message 2
+ [main] ERROR atternLayoutTest - Message 3
+ [main] ERROR root - Message 3
+ [main] FATAL atternLayoutTest - Message 4
+ [main] FATAL root - Message 4
+ [main] DEBUG atternLayoutTest - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] INFO atternLayoutTest - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] WARN atternLayoutTest - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] ERROR atternLayoutTest - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] FATAL atternLayoutTest - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test3(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.4 b/tests/witness/pattern/enhancedPatternLayout.4
index 4dce6ef4a5..9808857ee2 100644
--- a/tests/witness/pattern/enhancedPatternLayout.4
+++ b/tests/witness/pattern/enhancedPatternLayout.4
@@ -1,75 +1,75 @@
- [main] DEBUG atternLayoutTest - Message 0
- [main] DEBUG root - Message 0
- [main] INFO atternLayoutTest - Message 1
- [main] INFO root - Message 1
- [main] WARN atternLayoutTest - Message 2
- [main] WARN root - Message 2
- [main] ERROR atternLayoutTest - Message 3
- [main] ERROR root - Message 3
- [main] FATAL atternLayoutTest - Message 4
- [main] FATAL root - Message 4
- [main] DEBUG atternLayoutTest - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] INFO atternLayoutTest - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] WARN atternLayoutTest - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] ERROR atternLayoutTest - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] FATAL atternLayoutTest - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+ [main] DEBUG atternLayoutTest - Message 0
+ [main] DEBUG root - Message 0
+ [main] INFO atternLayoutTest - Message 1
+ [main] INFO root - Message 1
+ [main] WARN atternLayoutTest - Message 2
+ [main] WARN root - Message 2
+ [main] ERROR atternLayoutTest - Message 3
+ [main] ERROR root - Message 3
+ [main] FATAL atternLayoutTest - Message 4
+ [main] FATAL root - Message 4
+ [main] DEBUG atternLayoutTest - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] INFO atternLayoutTest - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] WARN atternLayoutTest - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] ERROR atternLayoutTest - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] FATAL atternLayoutTest - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test4(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.5 b/tests/witness/pattern/enhancedPatternLayout.5
index cb88bddb6c..9c6d6b911d 100644
--- a/tests/witness/pattern/enhancedPatternLayout.5
+++ b/tests/witness/pattern/enhancedPatternLayout.5
@@ -1,75 +1,75 @@
- [main] DEBUG atternLayoutTest - Message 0
- [main] DEBUG root - Message 0
- [main] INFO atternLayoutTest - Message 1
- [main] INFO root - Message 1
- [main] WARN atternLayoutTest - Message 2
- [main] WARN root - Message 2
- [main] ERROR atternLayoutTest - Message 3
- [main] ERROR root - Message 3
- [main] FATAL atternLayoutTest - Message 4
- [main] FATAL root - Message 4
- [main] DEBUG atternLayoutTest - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] INFO atternLayoutTest - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] WARN atternLayoutTest - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] ERROR atternLayoutTest - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] FATAL atternLayoutTest - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+ [main] DEBUG atternLayoutTest - Message 0
+ [main] DEBUG root - Message 0
+ [main] INFO atternLayoutTest - Message 1
+ [main] INFO root - Message 1
+ [main] WARN atternLayoutTest - Message 2
+ [main] WARN root - Message 2
+ [main] ERROR atternLayoutTest - Message 3
+ [main] ERROR root - Message 3
+ [main] FATAL atternLayoutTest - Message 4
+ [main] FATAL root - Message 4
+ [main] DEBUG atternLayoutTest - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] INFO atternLayoutTest - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] WARN atternLayoutTest - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] ERROR atternLayoutTest - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] FATAL atternLayoutTest - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test5(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.6 b/tests/witness/pattern/enhancedPatternLayout.6
index 5e1db41d5d..d0dc713ae1 100644
--- a/tests/witness/pattern/enhancedPatternLayout.6
+++ b/tests/witness/pattern/enhancedPatternLayout.6
@@ -1,75 +1,75 @@
- [main] DEBUG atternLayoutTest - Message 0
- [main] DEBUG root - Message 0
- [main] INFO atternLayoutTest - Message 1
- [main] INFO root - Message 1
- [main] WARN atternLayoutTest - Message 2
- [main] WARN root - Message 2
- [main] ERROR atternLayoutTest - Message 3
- [main] ERROR root - Message 3
- [main] FATAL atternLayoutTest - Message 4
- [main] FATAL root - Message 4
- [main] DEBUG atternLayoutTest - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] INFO atternLayoutTest - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] WARN atternLayoutTest - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] ERROR atternLayoutTest - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] FATAL atternLayoutTest - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+ [main] DEBUG atternLayoutTest - Message 0
+ [main] DEBUG root - Message 0
+ [main] INFO atternLayoutTest - Message 1
+ [main] INFO root - Message 1
+ [main] WARN atternLayoutTest - Message 2
+ [main] WARN root - Message 2
+ [main] ERROR atternLayoutTest - Message 3
+ [main] ERROR root - Message 3
+ [main] FATAL atternLayoutTest - Message 4
+ [main] FATAL root - Message 4
+ [main] DEBUG atternLayoutTest - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] INFO atternLayoutTest - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] WARN atternLayoutTest - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] ERROR atternLayoutTest - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] FATAL atternLayoutTest - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test6(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.7 b/tests/witness/pattern/enhancedPatternLayout.7
index 5c6daa4572..2e499e4123 100644
--- a/tests/witness/pattern/enhancedPatternLayout.7
+++ b/tests/witness/pattern/enhancedPatternLayout.7
@@ -1,75 +1,75 @@
- [main] DEBUG atternLayoutTest - Message 0
- [main] DEBUG root - Message 0
- [main] INFO atternLayoutTest - Message 1
- [main] INFO root - Message 1
- [main] WARN atternLayoutTest - Message 2
- [main] WARN root - Message 2
- [main] ERROR atternLayoutTest - Message 3
- [main] ERROR root - Message 3
- [main] FATAL atternLayoutTest - Message 4
- [main] FATAL root - Message 4
- [main] DEBUG atternLayoutTest - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] INFO atternLayoutTest - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] WARN atternLayoutTest - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] ERROR atternLayoutTest - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] FATAL atternLayoutTest - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+ [main] DEBUG atternLayoutTest - Message 0
+ [main] DEBUG root - Message 0
+ [main] INFO atternLayoutTest - Message 1
+ [main] INFO root - Message 1
+ [main] WARN atternLayoutTest - Message 2
+ [main] WARN root - Message 2
+ [main] ERROR atternLayoutTest - Message 3
+ [main] ERROR root - Message 3
+ [main] FATAL atternLayoutTest - Message 4
+ [main] FATAL root - Message 4
+ [main] DEBUG atternLayoutTest - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] INFO atternLayoutTest - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] WARN atternLayoutTest - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] ERROR atternLayoutTest - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] FATAL atternLayoutTest - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test7(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.8 b/tests/witness/pattern/enhancedPatternLayout.8
index 2a08506812..dd50524522 100644
--- a/tests/witness/pattern/enhancedPatternLayout.8
+++ b/tests/witness/pattern/enhancedPatternLayout.8
@@ -1,75 +1,75 @@
- [main] DEBUG atternLayoutTest - Message 0
- [main] DEBUG root - Message 0
- [main] INFO atternLayoutTest - Message 1
- [main] INFO root - Message 1
- [main] WARN atternLayoutTest - Message 2
- [main] WARN root - Message 2
- [main] ERROR atternLayoutTest - Message 3
- [main] ERROR root - Message 3
- [main] FATAL atternLayoutTest - Message 4
- [main] FATAL root - Message 4
- [main] DEBUG atternLayoutTest - Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] INFO atternLayoutTest - Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] WARN atternLayoutTest - Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] ERROR atternLayoutTest - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
- [main] FATAL atternLayoutTest - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+ [main] DEBUG atternLayoutTest - Message 0
+ [main] DEBUG root - Message 0
+ [main] INFO atternLayoutTest - Message 1
+ [main] INFO root - Message 1
+ [main] WARN atternLayoutTest - Message 2
+ [main] WARN root - Message 2
+ [main] ERROR atternLayoutTest - Message 3
+ [main] ERROR root - Message 3
+ [main] FATAL atternLayoutTest - Message 4
+ [main] FATAL root - Message 4
+ [main] DEBUG atternLayoutTest - Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] INFO atternLayoutTest - Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] WARN atternLayoutTest - Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] ERROR atternLayoutTest - Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+ [main] FATAL atternLayoutTest - Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test8(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.9 b/tests/witness/pattern/enhancedPatternLayout.9
index 6b8dd1af87..7496a0cf9f 100644
--- a/tests/witness/pattern/enhancedPatternLayout.9
+++ b/tests/witness/pattern/enhancedPatternLayout.9
@@ -1,75 +1,75 @@
-[main] DEBUG atternLayoutTest : Message 0
-[main] DEBUG root : Message 0
-[main] INFO atternLayoutTest : Message 1
-[main] INFO root : Message 1
-[main] WARN atternLayoutTest : Message 2
-[main] WARN root : Message 2
-[main] ERROR atternLayoutTest : Message 3
-[main] ERROR root : Message 3
-[main] FATAL atternLayoutTest : Message 4
-[main] FATAL root : Message 4
-[main] DEBUG atternLayoutTest : Message 5
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] INFO atternLayoutTest : Message 6
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] WARN atternLayoutTest : Message 7
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] ERROR atternLayoutTest : Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
-[main] FATAL atternLayoutTest : Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
- at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
- at java.lang.reflect.Method.invoke(X)
- at junit.framework.TestCase.runTest(X)
- at junit.framework.TestCase.runBare(X)
- at junit.framework.TestResult$1.protect(X)
- at junit.framework.TestResult.runProtected(X)
- at junit.framework.TestResult.run(X)
- at junit.framework.TestCase.run(X)
- at junit.framework.TestSuite.runTest(X)
- at junit.framework.TestSuite.run(X)
+[main] DEBUG atternLayoutTest : Message 0
+[main] DEBUG root : Message 0
+[main] INFO atternLayoutTest : Message 1
+[main] INFO root : Message 1
+[main] WARN atternLayoutTest : Message 2
+[main] WARN root : Message 2
+[main] ERROR atternLayoutTest : Message 3
+[main] ERROR root : Message 3
+[main] FATAL atternLayoutTest : Message 4
+[main] FATAL root : Message 4
+[main] DEBUG atternLayoutTest : Message 5
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] INFO atternLayoutTest : Message 6
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] WARN atternLayoutTest : Message 7
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] ERROR atternLayoutTest : Message 8
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
+[main] FATAL atternLayoutTest : Message 9
+java.lang.Exception: Just testing
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.common(X)
+ at org.apache.log4j.EnhancedPatternLayoutTestCase.test9(X)
+ at java.lang.reflect.Method.invoke(X)
+ at junit.framework.TestCase.runTest(X)
+ at junit.framework.TestCase.runBare(X)
+ at junit.framework.TestResult$1.protect(X)
+ at junit.framework.TestResult.runProtected(X)
+ at junit.framework.TestResult.run(X)
+ at junit.framework.TestCase.run(X)
+ at junit.framework.TestSuite.runTest(X)
+ at junit.framework.TestSuite.run(X)
diff --git a/tests/witness/pattern/enhancedPatternLayout.mdc.2 b/tests/witness/pattern/enhancedPatternLayout.mdc.2
index 3ccf2b4ba9..c7104dc38c 100644
--- a/tests/witness/pattern/enhancedPatternLayout.mdc.2
+++ b/tests/witness/pattern/enhancedPatternLayout.mdc.2
@@ -1,12 +1,12 @@
-starting mdc pattern test
-empty mdc, no key specified in pattern : {}
-empty mdc, key1 in pattern :
-empty mdc, key2 in pattern :
-empty mdc, key3 in pattern :
-empty mdc, key1, key2, and key3 in pattern : ,,
-filled mdc, no key specified in pattern : {{key1,value1}{key2,value2}}
-filled mdc, key1 in pattern : value1
-filled mdc, key2 in pattern : value2
-filled mdc, key3 in pattern :
-filled mdc, key1, key2, and key3 in pattern : value1,value2,
-finished mdc pattern test
+starting mdc pattern test
+empty mdc, no key specified in pattern : {}
+empty mdc, key1 in pattern :
+empty mdc, key2 in pattern :
+empty mdc, key3 in pattern :
+empty mdc, key1, key2, and key3 in pattern : ,,
+filled mdc, no key specified in pattern : {{key1,value1}{key2,value2}}
+filled mdc, key1 in pattern : value1
+filled mdc, key2 in pattern : value2
+filled mdc, key3 in pattern :
+filled mdc, key1, key2, and key3 in pattern : value1,value2,
+finished mdc pattern test
diff --git a/tests/witness/xmlLayout.mdc.1 b/tests/witness/xmlLayout.mdc.1
index 2dfe4ef8f7..9215d1be72 100644
--- a/tests/witness/xmlLayout.mdc.1
+++ b/tests/witness/xmlLayout.mdc.1
@@ -1,8 +1,8 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/tests/witness/xmlLayout.mdc.2 b/tests/witness/xmlLayout.mdc.2
index d382c4c43f..c690780b68 100644
--- a/tests/witness/xmlLayout.mdc.2
+++ b/tests/witness/xmlLayout.mdc.2
@@ -1,8 +1,8 @@
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
From 4722f24ebb7198178706c0012ab3e5a04188e73e Mon Sep 17 00:00:00 2001
From: Vladimir Sitnikov
Date: Tue, 28 Dec 2021 15:26:34 +0300
Subject: [PATCH 09/19] Remove timestamps from the generated javadoc via
notimestamp=true
---
pom.xml | 22 +---------------------
1 file changed, 1 insertion(+), 21 deletions(-)
diff --git a/pom.xml b/pom.xml
index 596c231a59..0505b9aef3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -138,27 +138,6 @@
-
- maven-antrun-plugin
- 3.0.0
-
-
- site
- untag-site
-
-
-
-
-
-
-
-
-
- run
-
-
-
- maven-assembly-plugin3.3.0
@@ -176,6 +155,7 @@
true.svnUTF-8
+ true
From a6219b8cfd1a0c027521653920b7b47a90db8297 Mon Sep 17 00:00:00 2001
From: Vladimir Sitnikov
Date: Tue, 28 Dec 2021 15:47:04 +0300
Subject: [PATCH 10/19] Refine GitHub Actions
---
.github/workflows/main.yml | 45 +++++++++
.github/workflows/maven.yml | 97 -------------------
.github/workflows/toolchains.xml | 12 +++
pom.xml | 158 ++++++++++++-------------------
4 files changed, 117 insertions(+), 195 deletions(-)
create mode 100644 .github/workflows/main.yml
delete mode 100644 .github/workflows/maven.yml
create mode 100644 .github/workflows/toolchains.xml
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
new file mode 100644
index 0000000000..273de2f5fc
--- /dev/null
+++ b/.github/workflows/main.yml
@@ -0,0 +1,45 @@
+name: CI
+
+on:
+ push:
+ branches:
+ - '*'
+ pull_request:
+ branches:
+ - '*'
+
+# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/software-installed-on-github-hosted-runners
+
+jobs:
+ Test:
+ name: JDK ${{ matrix.jdk }}, ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+ strategy:
+ matrix:
+ jdk: [8, 11, 17]
+ os: [ubuntu-latest, windows-latest, macos-latest]
+ fail-fast: true
+ max-parallel: 4
+ steps:
+ - uses: actions/checkout@v2
+ with:
+ fetch-depth: 50
+ - name: Set up Java 8
+ id: setup-java-8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 8
+ - name: Set up Java ${{ matrix.jdk }}
+ if: ${{ matrix.jdk != '8' }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.jdk }}
+ - name: Compile
+ # download dependencies, etc, so test log looks better
+ run: mvn -B --toolchains .github/workflows/toolchains.xml compile
+ env:
+ JAVA_HOME_8: ${{ steps.setup-java-8.outputs.path }}
+ - name: Test
+ run: mvn -B --toolchains .github/workflows/toolchains.xml verify
+ env:
+ JAVA_HOME_8: ${{ steps.setup-java-8.outputs.path }}
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
deleted file mode 100644
index 22e41d0717..0000000000
--- a/.github/workflows/maven.yml
+++ /dev/null
@@ -1,97 +0,0 @@
-name: Maven CI Build
-
-on: [push]
-
-jobs:
- JDK6Toolchain:
- name: Toolchain 1.6, JDK 11, OS ${{ matrix.os }}
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022]
- fail-fast: true
- max-parallel: 2
- steps:
- - uses: actions/checkout@v1
- - name: Install Toolchain JDK
- uses: battila7/jdk-via-jabba@v1
- with:
- jdk: zulu@1.6.119
- javaHomeEnvironmentVariable: TOOLCHAIN_JDK
- addBinDirectoryToPath: false
- - name: Configure Maven for Toolchain
- shell: bash
- run: |
- mkdir -p $HOME/.m2 && cat >$HOME/.m2/toolchains.xml <
-
-
- jdk
-
- 1.6
- oracle
-
-
- ${{ env.TOOLCHAIN_JDK }}
-
-
-
- EOF
- - name: Set up Modern JDK for Maven
- uses: actions/setup-java@v1
- with:
- java-version: 11
- - name: Run maven build
- run: mvn clean verify site assembly:single -B
- JDK7Toolchain:
- name: Toolchain 1.7, JDK 11, OS ubuntu-18.04
- runs-on: ubuntu-18.04
- steps:
- - uses: actions/checkout@v1
- - name: Install Toolchain JDK
- uses: battila7/jdk-via-jabba@v1
- with:
- jdk: zulu@1.7.292
- javaHomeEnvironmentVariable: TOOLCHAIN_JDK
- addBinDirectoryToPath: false
- - name: Configure Maven for Toolchain
- shell: bash
- run: |
- mkdir -p $HOME/.m2 && cat >$HOME/.m2/toolchains.xml <
-
-
- jdk
-
- 1.6
- oracle
-
-
- ${{ env.TOOLCHAIN_JDK }}
-
-
-
- EOF
- - name: Set up Modern JDK for Maven
- uses: actions/setup-java@v1
- with:
- java-version: 11
- - name: Run maven build
- run: mvn clean verify -B
- Modern:
- name: JDK ${{ matrix.jdk }}, OS ${{ matrix.os }}
- runs-on: ${{ matrix.os }}
- strategy:
- matrix:
- os: [ubuntu-18.04, ubuntu-20.04, windows-2019, windows-2022]
- jdk: [8, 11, 17]
- fail-fast: true
- max-parallel: 4
- steps:
- - uses: actions/checkout@v1
- - name: Set up Modern JDK for Maven
- uses: actions/setup-java@v1
- with:
- java-version: ${{ matrix.jdk }}
- - name: Run maven build
- run: mvn clean verify -B -P no-toolchain
diff --git a/.github/workflows/toolchains.xml b/.github/workflows/toolchains.xml
new file mode 100644
index 0000000000..e75a4d314d
--- /dev/null
+++ b/.github/workflows/toolchains.xml
@@ -0,0 +1,12 @@
+
+
+
+ jdk
+
+ 1.8
+
+
+ ${env.JAVA_HOME_8}
+
+
+
diff --git a/pom.xml b/pom.xml
index 0505b9aef3..7cba5fec34 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@
bundleApache Log4j1.2.18-SNAPSHOT
- Apache Log4j 1.2 (UNMAINTAINED)
+ Apache Log4j 1.2http://logging.apache.org/log4j/1.2/GitHub
@@ -49,7 +49,7 @@
Apache License, Version 2.0
- http://www.apache.org/licenses/LICENSE-2.0.txt
+ https://www.apache.org/licenses/LICENSE-2.0.txtrepo
@@ -60,13 +60,55 @@
Apache Software Foundation
- http://www.apache.org
+ https://www.apache.orgUTF-8UTF-8
+ 1.4
+
+
+
+ org.apache.maven.plugins
+ maven-toolchains-plugin
+ 3.0.0
+
+
+ maven-javadoc-plugin
+ 3.3.1
+
+ true
+ .svn
+ ${project.build.sourceEncoding}
+ true
+ false
+ false
+
+
+
+ maven-compiler-plugin
+ 3.8.1
+
+ ${project.javac.target}
+ ${project.javac.target}
+ ${project.build.sourceEncoding}
+
+
+
+ maven-surefire-plugin
+ 2.22.2
+
+ tests
+ plain
+ pertest
+ false
+ -Djava.library.path=${project.basedir}
+
+
+
+ org.apache.maven.plugins
@@ -150,13 +192,6 @@
maven-javadoc-plugin
- 3.3.1
-
- true
- .svn
- UTF-8
- true
- javadoc-package
@@ -269,7 +304,7 @@
javax.mail.*;resolution:=optional,
*
- http://logging.apache.org/log4j/1.2
+ https://logging.apache.org/log4j/1.2registeredJ2SE-1.4
@@ -401,78 +436,26 @@
- no-toolchain
-
-
-
- maven-compiler-plugin
- 3.8.1
-
- 7
- 7
- UTF-8
-
-
-
- maven-surefire-plugin
- 2.22.2
-
- tests
- plain
- pertest
- false
- -Djava.library.path=${project.basedir}
-
-
-
- com.soebes.maven.plugins
- echo-maven-plugin
- 0.4.0
-
-
- echo-toolchain-warning
- validate
-
- echo
-
-
-
- WARNING:
- WARNING:
- WARNING:
- WARNING: =========================================================
- WARNING: You are using a modern JDK without the toolchain profile.
- WARNING: Resulting jar files will not work with old JDKs!
- WARNING: =========================================================
- WARNING:
- WARNING:
- WARNING:
-
-
-
-
-
-
- maven-javadoc-plugin
-
- false
- false
-
-
-
-
-
-
- toolchain
+ toolchains
- true
+ (8,]
+
+
+
+ maven-surefire-plugin
+
+
+ ${env.JAVA_HOME}/bin/java
+
+
+
+ org.apache.maven.pluginsmaven-toolchains-plugin
- 1.1
@@ -483,32 +466,11 @@
- 1.6
- oracle
+ [1.4, 8]
-
- maven-compiler-plugin
- 3.8.1
-
- 1.4
- 1.4
- UTF-8
-
-
-
- maven-surefire-plugin
- 2.22.2
-
- tests
- plain
- pertest
- false
- -Djava.library.path=${project.basedir}
-
-
From 206f4639a41e57fc54402394ad4d0dd52befc377 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:23:50 +0100
Subject: [PATCH 11/19] test: delete old scripts to run tests in favor of mvn
test
Now that the main build runs all tests, remove the old way of running
them with ant or bash.
---
tests/README | 53 ----
tests/build.properties.sample | 48 ---
tests/build.xml | 565 ----------------------------------
tests/run-tests.bat | 111 -------
4 files changed, 777 deletions(-)
delete mode 100644 tests/README
delete mode 100644 tests/build.properties.sample
delete mode 100644 tests/build.xml
delete mode 100755 tests/run-tests.bat
diff --git a/tests/README b/tests/README
deleted file mode 100644
index fcca3958ba..0000000000
--- a/tests/README
+++ /dev/null
@@ -1,53 +0,0 @@
-
-This directory contains a series of log4j test cases.
-
-Prerequisites
-=============
-
-Jakarta-ant is used to compile and run the tests. Jakarta-ant version
-1.4.0 was used to compile and run the tests. The optional
-jakarta-ant-1.4-optional.jar file is required to be in the
-$ANT_HOME/lib directory where ANT_HOME envrironment variable point to
-the directory where you installed jakarta-ant.
-
-The tests cases as well running ant require a JAXP compatible
-parser. Such a parser is placed on the classpath by the shell or batch
-script that invokes ant, namely $ANT_HOME/bin/ant on UNIX and
-%ANT_HOME%/bin/ant.bat on Windows.
-
-The test cases are based on Junit version 3.7+.
-
-IMPORTANT: You need to place junit.jar in your CLASSPATH environment
-variable.
-
-The test cases perform some regular expression based filtering. This
-requires jakarta-oro. Version-2.0.5 was used when writing the
-tests. You need to have jakarta.oro.jar property (found in the
-build.properties file) to point to jakarta-oro.jar. See the file
-build.properties.sample for an example of a build.properties file.
-
-Assuming jakarta-ant is installed properly, depending on your platform
-type $ANT_HOME/bin/ant or %ANT_HOME%/bin/ant.bat to see the available
-commands.
-
-------------------------------------------------------------------------
-NOTE: The compilation and execution of tests must be performed from
- within the tests/ directory, that is from the directory where
- this README file is located.
-------------------------------------------------------------------------
-
-Writing a new test case
-=======================
-
-Our test cases are based on junit and you should be familiar with
-junit in order to write new a test case.
-
-Some of the existing test are actually regression tests. They compare
-the output of a test with the output of a previous run, a.k.a a
-witness, which is purported to be correct. Since the ouput of some
-tests vary on time and line numbers, before comparing the output with
-a witness, we transform the output by unifying the result, for example
-by removing date and time information.
-
-To automatically run your test case with the rest of the log4j test
-cases, you need to modify tests/build.xml.
diff --git a/tests/build.properties.sample b/tests/build.properties.sample
deleted file mode 100644
index 5f0f1b879d..0000000000
--- a/tests/build.properties.sample
+++ /dev/null
@@ -1,48 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one or more
-# contributor license agreements. See the NOTICE file distributed with
-# this work for additional information regarding copyright ownership.
-# The ASF licenses this file to You under the Apache License, Version 2.0
-# (the "License"); you may not use this file except in compliance with
-# the License. You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-#
-# by default assume that all necessary dependencies
-# are relative to the user's home directory
-#
-lib.home.dir=/java
-
-# The jaxp interface and a jaxp parser are required
-# to build the DOMConfigurator.
-#
-# modern equivalents are xml-commons-apis.jar
-# and xercesImpl.jar
-jaxp.home=${lib.home.dir}/crimson-1.1.3
-jaxp.jaxp.jar=${jaxp.home}/crimson.jar
-jaxp.parser.jar=${jaxp.home}/crimson.jar
-
-jakarta.oro.jar=${lib.home.dir}/jakarta-oro-2.0.8/jakarta-oro-2.0.8.jar
-clover.jar=${lib.home.dir}/clover-1.3.8/lib/clover.jar
-deprecation=on
-
-# junit must be on the classpath or specified with -lib
-# only needs to be set here for JDK 1.1.
-junit.jar=${lib.home.dir}/junit3.8.1/junit.jar
-
-#
-# Jalopy source code reformatter
-#
-#
-jalopy-ant.dir=${lib.home.dir}/jalopy-ant-0.6.2
-
-#
-# Checkstyle coding convention checker
-#
-checkstyle.jar=${lib.home.dir}/checkstyle-4.0-beta2/checkstyle-all-4.0-beta2.jar
diff --git a/tests/build.xml b/tests/build.xml
deleted file mode 100644
index 74a7139dce..0000000000
--- a/tests/build.xml
+++ /dev/null
@@ -1,565 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- These are the targets supported by this ANT build scpript:
-
- build - compile all project files, if a certain library is missing,
- then the compilation of its dependents are skipped.
-
- regression - Run regression tests which check large parts of log4j.
-
- runAll - run all available tests
-
- Specify the log4j.jar property to test an arbitrary jar,
- otherwise the parent log4j will be built and tested.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- clover.jar must be in the classpath and should also be
- placed in the lib directory. A version of clover
- (http://www.cenqua.com/clover) for use with ASF projects
- is available from the committers/donated-licenses/clover module
- in the SVN repository.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-Specify files to reformat with -Djalopy.files=PATTERN.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/tests/run-tests.bat b/tests/run-tests.bat
deleted file mode 100755
index 11d463dab6..0000000000
--- a/tests/run-tests.bat
+++ /dev/null
@@ -1,111 +0,0 @@
-rem Licensed to the Apache Software Foundation (ASF) under one or more
-rem contributor license agreements. See the NOTICE file distributed with
-rem this work for additional information regarding copyright ownership.
-rem The ASF licenses this file to You under the Apache License, Version 2.0
-rem (the "License"); you may not use this file except in compliance with
-rem the License. You may obtain a copy of the License at
-rem
-rem http://www.apache.org/licenses/LICENSE-2.0
-rem
-rem Unless required by applicable law or agreed to in writing, software
-rem distributed under the License is distributed on an "AS IS" BASIS,
-rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-rem See the License for the specific language governing permissions and
-rem limitations under the License.
-rem Batch file for running tests on JDK 1.1
-rem
-SET CLASSPATH=\java\junit3.8.1\junit.jar;\java\crimson-1.1.3\crimson.jar;\java\jakarta-oro-2.0.8\jakarta-oro-2.0.8.jar;target\classes;..\..\target\classes;resources;%log4j.jar%
-mkdir target
-mkdir target\classes
-cd src\java
-javac -d ..\..\target\classes org\apache\log4j\util\SerializationTestHelper.java
-javac -d ..\..\target\classes org\apache\log4j\spi\LoggingEventTest.java
-javac -d ..\..\target\classes org\apache\log4j\LevelTest.java
-javac -d ..\..\target\classes org\apache\log4j\FileAppenderTest.java
-javac -d ..\..\target\classes org\apache\log4j\PriorityTest.java
-javac -d ..\..\target\classes org\apache\log4j\CategoryTest.java
-javac -d ..\..\target\classes org\apache\log4j\LogManagerTest.java
-javac -d ..\..\target\classes org\apache\log4j\helpers\LogLogTest.java
-javac -d ..\..\target\classes org\apache\log4j\LayoutTest.java
-javac -d ..\..\target\classes org\apache\log4j\helpers\DateLayoutTest.java
-javac -d ..\..\target\classes org\apache\log4j\TTCCLayoutTest.java
-javac -d ..\..\target\classes org\apache\log4j\xml\XMLLayoutTest.java
-javac -d ..\..\target\classes org\apache\log4j\HTMLLayoutTest.java
-javac -d ..\..\target\classes org\apache\log4j\PatternLayoutTest.java
-javac -d ..\..\target\classes org\apache\log4j\spi\ThrowableInformationTest.java
-javac -d ..\..\target\classes org\apache\log4j\spi\LocationInfoTest.java
-javac -d ..\..\target\classes org\apache\log4j\PropertyConfiguratorTest.java
-javac -d ..\..\target\classes org\apache\log4j\CoreTestSuite.java
-javac -d ..\..\target\classes org\apache\log4j\util\UnexpectedFormatException.java
-javac -d ..\..\target\classes org\apache\log4j\util\Filter.java
-javac -d ..\..\target\classes org\apache\log4j\util\Compare.java
-javac -d ..\..\target\classes org\apache\log4j\util\ControlFilter.java
-javac -d ..\..\target\classes org\apache\log4j\util\Transformer.java
-javac -d ..\..\target\classes org\apache\log4j\util\LineNumberFilter.java
-javac -d ..\..\target\classes org\apache\log4j\util\AbsoluteDateAndTimeFilter.java
-javac -d ..\..\target\classes org\apache\log4j\MinimumTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\VectorAppender.java
-javac -d ..\..\target\classes org\apache\log4j\LoggerTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\util\ISO8601Filter.java
-javac -d ..\..\target\classes org\apache\log4j\util\SunReflectFilter.java
-javac -d ..\..\target\classes org\apache\log4j\util\JunitTestRunnerFilter.java
-javac -d ..\..\target\classes org\apache\log4j\xml\DOMTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\xml\XLevel.java
-javac -d ..\..\target\classes org\apache\log4j\xml\CustomLevelTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\customLogger\XLogger.java
-javac -d ..\..\target\classes org\apache\log4j\customLogger\XLoggerTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\defaultInit\TestCase1.java
-javac -d ..\..\target\classes org\apache\log4j\defaultInit\TestCase3.java
-javac -d ..\..\target\classes org\apache\log4j\defaultInit\TestCase4.java
-javac -d ..\..\target\classes org\apache\log4j\util\XMLTimestampFilter.java
-javac -d ..\..\target\classes org\apache\log4j\util\XMLLineAttributeFilter.java
-javac -d ..\..\target\classes org\apache\log4j\xml\XMLLayoutTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\AsyncAppenderTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\helpers\OptionConverterTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\helpers\BoundedFIFOTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\helpers\CyclicBufferTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\or\ORTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\varia\LevelMatchFilterTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\helpers\PatternParserTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\util\AbsoluteTimeFilter.java
-javac -d ..\..\target\classes org\apache\log4j\util\RelativeTimeFilter.java
-javac -d ..\..\target\classes org\apache\log4j\PatternLayoutTestCase.java
-javac -d ..\..\target\classes org\apache\log4j\MyPatternParser.java
-javac -d ..\..\target\classes org\apache\log4j\MyPatternLayout.java
-javac -d ..\..\target\classes org\apache\log4j\VectorErrorHandler.java
-javac -d ..\..\target\classes org\apache\log4j\DRFATestCase.java
-cd ..\..
-mkdir output
-java junit.textui.TestRunner org.apache.log4j.CoreTestSuite
-java junit.textui.TestRunner org.apache.log4j.MinimumTestCase
-java junit.textui.TestRunner org.apache.log4j.LoggerTestCase
-java junit.textui.TestRunner org.apache.log4j.xml.DOMTestCase
-java junit.textui.TestRunner org.apache.log4j.xml.CustomLevelTestCase
-java junit.textui.TestRunner org.apache.log4j.customLogger.XLoggerTestCase
-del target\classes\log4j.xml
-del target\classes\log4j.properties
-java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase1
-copy input\xml\defaultInit.xml target\classes\log4j.xml
-java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase2
-del target\classes\log4j.xml
-copy input\xml\defaultInit.xml target\classes\log4j.xml
-java -Dlog4j.defaultInitOverride=true junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase1
-del target\classes\log4j.xml
-copy input\defaultInit3.properties target\classes\log4j.properties
-java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase3
-del target\classes\log4j.properties
-copy input\xml\defaultInit.xml target\classes\log4j.xml
-copy input\defaultInit3.properties target\classes\log4j.properties
-java junit.textui.TestRunner org.apache.log4j.defaultInit.TestCase4
-del target\classes\log4j.xml
-del target\classes\log4j.properties
-java junit.textui.TestRunner org.apache.log4j.xml.XMLLayoutTestCase
-java junit.textui.TestRunner org.apache.log4j.AsyncAppenderTestCase
-java junit.textui.TestRunner org.apache.log4j.helpers.OptionConverterTestCase
-java junit.textui.TestRunner org.apache.log4j.helpers.BoundedFIFOTestCase
-java junit.textui.TestRunner org.apache.log4j.helpers.CyclicBufferTestCase
-java junit.textui.TestRunner org.apache.log4j.or.ORTestCase
-java junit.textui.TestRunner org.apache.log4j.varia.LevelMatchFilterTestCase
-java junit.textui.TestRunner org.apache.log4j.helpers.PatternParserTestCase
-java junit.textui.TestRunner org.apache.log4j.PatternLayoutTestCase
-java junit.textui.TestRunner org.apache.log4j.DRFATestCase
From 5e14210197c10f3331474ad8702edfac295f07ac Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:38:33 +0100
Subject: [PATCH 12/19] test: note why DRFATestCase is slow
---
tests/src/java/org/apache/log4j/DRFATestCase.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/tests/src/java/org/apache/log4j/DRFATestCase.java b/tests/src/java/org/apache/log4j/DRFATestCase.java
index 8d0417422f..76782c750e 100644
--- a/tests/src/java/org/apache/log4j/DRFATestCase.java
+++ b/tests/src/java/org/apache/log4j/DRFATestCase.java
@@ -415,6 +415,7 @@ public void testMinuteRollover() throws IOException, InterruptedException {
cal.set(Calendar.MILLISECOND, 0);
cal.add(Calendar.MINUTE, 1);
long until = cal.getTime().getTime();
+ System.out.println("Sleep until three seconds into next minute...");
Thread.sleep(until - now);
root.info("Hello, World");
assertTrue(firstFile.exists());
@@ -472,6 +473,7 @@ public void testBlockedRollover() throws IOException, InterruptedException {
//
// sleep until three seconds into next minute
//
+ System.out.println("Sleep until three seconds into next minute...");
Thread.sleep(63000 - (start.getTime() % 60000));
//
// should trigger failed rollover
From 2f5a7546019c5c7c80798034359a190cd9d37587 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Tue, 28 Dec 2021 16:47:13 +0300
Subject: [PATCH 13/19] test: run NTEventLogAppenderTest on Windows only
---
.../apache/log4j/nt/NTEventLogAppenderTest.java | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java b/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
index a32e76712f..5e9e023716 100755
--- a/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
+++ b/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
@@ -5,9 +5,9 @@
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
- *
+ *
* http://www.apache.org/licenses/LICENSE-2.0
- *
+ *
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -16,11 +16,12 @@
*/
package org.apache.log4j.nt;
+
import junit.framework.TestCase;
-import org.apache.log4j.Logger;
-import org.apache.log4j.LogManager;
-import org.apache.log4j.Level;
import org.apache.log4j.BasicConfigurator;
+import org.apache.log4j.Level;
+import org.apache.log4j.LogManager;
+import org.apache.log4j.Logger;
/**
@@ -42,6 +43,9 @@ public void tearDown() {
* Simple test of NTEventLogAppender.
*/
public void testSimple() {
+ if (!System.getProperty("os.name").startsWith("Windows")) {
+ return;
+ }
BasicConfigurator.configure(new NTEventLogAppender());
Logger logger = Logger.getLogger("org.apache.log4j.nt.NTEventLogAppenderTest");
int i = 0;
From 4d54012aff15a183238e658dfe16276e93475d15 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:43:14 +0100
Subject: [PATCH 14/19] test: do not run MDCTestCase reflection test on modern
JDK
MDCTestCase has some nasty reflection inside that is not allowed anymore
on JDK >= 17. Detect and trap the error.
---
tests/src/java/org/apache/log4j/MDCTestCase.java | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/tests/src/java/org/apache/log4j/MDCTestCase.java b/tests/src/java/org/apache/log4j/MDCTestCase.java
index 245c131158..7bbcc92a75 100644
--- a/tests/src/java/org/apache/log4j/MDCTestCase.java
+++ b/tests/src/java/org/apache/log4j/MDCTestCase.java
@@ -46,7 +46,15 @@ public void testRemoveLastKey() throws Exception {
MDC.put("key", "some value");
MDC.remove("key");
- checkThreadLocalsForLeaks();
+ try {
+ checkThreadLocalsForLeaks();
+ } catch (Exception e) {
+ if (e.getClass().getName().endsWith("InaccessibleObjectException")) {
+ System.out.println("Ignoring modern JDK reflection error: " + e.getMessage());
+ } else {
+ throw e;
+ }
+ }
}
private void checkThreadLocalsForLeaks() throws Exception {
From f10e7067a2348634bf546a94dc07f33601c25ea9 Mon Sep 17 00:00:00 2001
From: Vladimir Sitnikov
Date: Tue, 28 Dec 2021 17:20:19 +0300
Subject: [PATCH 15/19] tests: skip executing SocketServerTestCase, TestCase2,
TestCase3, TestCase4
---
pom.xml | 14 +++++++++++++
.../log4j/net/SocketServerTestCase.java | 20 +++++++++++--------
2 files changed, 26 insertions(+), 8 deletions(-)
diff --git a/pom.xml b/pom.xml
index 7cba5fec34..b7320fb61d 100644
--- a/pom.xml
+++ b/pom.xml
@@ -106,6 +106,20 @@
false-Djava.library.path=${project.basedir}
+
+
+ default-test
+
+
+
+ *TestCase2.class
+ *TestCase3.class
+ *TestCase4.class
+
+
+
+
diff --git a/tests/src/java/org/apache/log4j/net/SocketServerTestCase.java b/tests/src/java/org/apache/log4j/net/SocketServerTestCase.java
index 59194076a3..13d04d875c 100644
--- a/tests/src/java/org/apache/log4j/net/SocketServerTestCase.java
+++ b/tests/src/java/org/apache/log4j/net/SocketServerTestCase.java
@@ -395,14 +395,18 @@ public void delay(int secs) {
public static Test suite() {
TestSuite suite = new TestSuite();
- suite.addTest(new SocketServerTestCase("test1"));
- suite.addTest(new SocketServerTestCase("test2"));
- suite.addTest(new SocketServerTestCase("test3"));
- suite.addTest(new SocketServerTestCase("test4"));
- suite.addTest(new SocketServerTestCase("test5"));
- suite.addTest(new SocketServerTestCase("test6"));
- suite.addTest(new SocketServerTestCase("test7"));
- suite.addTest(new SocketServerTestCase("test8"));
+ System.out.println("SocketServerTest requires running SocketServer which is not yet implemented in tests");
+ // TODO: remove the tests or launch SocketServer during the test
+ if (false) {
+ suite.addTest(new SocketServerTestCase("test1"));
+ suite.addTest(new SocketServerTestCase("test2"));
+ suite.addTest(new SocketServerTestCase("test3"));
+ suite.addTest(new SocketServerTestCase("test4"));
+ suite.addTest(new SocketServerTestCase("test5"));
+ suite.addTest(new SocketServerTestCase("test6"));
+ suite.addTest(new SocketServerTestCase("test7"));
+ suite.addTest(new SocketServerTestCase("test8"));
+ }
return suite;
}
}
From e9bc63c94f6030366df6608d776211ee4fbc5c31 Mon Sep 17 00:00:00 2001
From: Vladimir Sitnikov
Date: Tue, 28 Dec 2021 19:01:28 +0300
Subject: [PATCH 16/19] update readme
---
INSTALL | 33 +++++++++++++--------------------
README.md | 13 +++++++------
2 files changed, 20 insertions(+), 26 deletions(-)
diff --git a/INSTALL b/INSTALL
index bd3f0dad96..42b63b30c9 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,7 +1,7 @@
===========
Using log4j
===========
-
+
1) First untar or unzip the distribution file.
2) Assuming you chose to extract the distribution in to the
@@ -11,17 +11,17 @@ Using log4j
directory PATH_OF_YOUR_CHOICE/apache-log4j-VERSION/ as $LOG4J_HOME/.
3) Add $LOG4J_HOME/log4j-VERSION.jar to your CLASSPATH,
-
+
4) You can now test your installation by first compiling the following
simple program.
import org.apache.log4j.Logger;
import org.apache.log4j.BasicConfigurator;
-
+
public class Hello {
-
+
private static final Logger logger = Logger.getLogger(Hello.class);
-
+
public
static
void main(String argv[]) {
@@ -35,7 +35,7 @@ Using log4j
After compilation, try it out by issuing the command
java Hello
-
+
You should see log statements appearing on the console.
5) Refer to the javadoc documentation and the user manual on how to
@@ -59,21 +59,20 @@ Building log4j
log4j (as of 1.2.18) is built with Maven 3 and JDK 8 or higher.
-To build for compatibility with older JDKs (1.4/5/7), set up a Maven
-toolchain JDK with version=1.6 and vendor=oracle. For example set up
-the following configuration in ~/.m2/toolchains.xml:
+The project compiles to Java 1.4 bytecode, so you need to have Java 8 for that.
+If you run Maven with newer Java version, you need to configure
+the location of Java 1.8 via ~/.m2/toolchains.xml.
jdk
- 1.6
- oracle
+ 1.8
- /usr/lib/jvm/java-1.6.0-openjdk-amd64
-
+ /path/to/java-1.8.0_222
+
@@ -81,16 +80,10 @@ the following configuration in ~/.m2/toolchains.xml:
See https://maven.apache.org/guides/mini/guide-using-toolchains.html
for more information about maven toolchains.
-After setting up a toolchain you can then build using the default
-profile:
+After setting up a toolchain you can then build using the following command:
mvn verify
-If you do not care about compatibility with old JDKs, you can use a
-build without a toolchain and execute
-
- mvn verify -P no-toolchain
-
Build results can be found in the target/ subdirectory.
==================
diff --git a/README.md b/README.md
index d0d98ee414..bc6fea7593 100644
--- a/README.md
+++ b/README.md
@@ -1,13 +1,14 @@
-# End Of Life
+# About
-On August 5, 2015 the Logging Services Project Management Committee announced that Log4j 1.x had reached end of life. For complete text of the announcement please see the [Apache Blog](https://blogs.apache.org/foundation/entry/apache_logging_services_project_announces). Users of Log4j 1 are recommended to upgrade to [Apache Log4j 2](https://logging.apache.org/log4j/2.x/index.html).
+log4j a logging library for Java.
-# Security release 1.2.18
+# Status
-Several security vulnerabilities have been identified in Log4J 1 up to and including 1.2.17. All users should upgrade to Log4J 2. For users that cannot upgrade, certain fixes are made available here. Please note Log4J 1 remains End Of Life.
+log4j 1.x is feature complete, so do not expect new features to appear,
+however, security issues might be fixed.
See [the log4j 1.2 website](https://logging.apache.org/log4j/1.2/) for more information.
-## Changes in 1.2.18
+# Log4shell
-See the [Changes Report](https://logging.apache.org/log4j/1.2/changes-report.html) for a detailed list of changes. This file is generated from [changes.xml](src/changes/changes.xml).
+log4j 1.x is not vulnerable to CVE-2021-45105, CVE-2021-45046, and CVE-2021-44228.
From 6337e05b217b091a5041611eb0293e69fc31cdee Mon Sep 17 00:00:00 2001
From: Vladimir Sitnikov
Date: Tue, 28 Dec 2021 19:14:09 +0300
Subject: [PATCH 17/19] Replace http://logging.apache.org with
https://logging.apache.org
---
doap_log4j.rdf | 14 +++++++-------
pom.xml | 2 +-
src/main/java/org/apache/log4j/Hierarchy.java | 2 +-
src/main/java/org/apache/log4j/LogManager.java | 2 +-
src/site/apt/index.apt | 2 +-
src/site/apt/roadmap.apt | 6 +++---
src/site/site-template.vm | 2 +-
src/site/site.xml | 12 ++++++------
src/site/xdoc/manual.xml | 2 +-
9 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/doap_log4j.rdf b/doap_log4j.rdf
index 1c314c30bf..faba0631d5 100644
--- a/doap_log4j.rdf
+++ b/doap_log4j.rdf
@@ -1,8 +1,8 @@
-
+ 2007-02-09Apache log4j
-
-
+
+ Apache log4j provides logging services for Java.
-
-
+
+ Java
diff --git a/pom.xml b/pom.xml
index b7320fb61d..891f79acde 100644
--- a/pom.xml
+++ b/pom.xml
@@ -24,7 +24,7 @@
Apache Log4j1.2.18-SNAPSHOTApache Log4j 1.2
- http://logging.apache.org/log4j/1.2/
+ https://logging.apache.org/log4j/1.2/GitHubhttps://github.com/apache/logging-log4j1/issues
diff --git a/src/main/java/org/apache/log4j/Hierarchy.java b/src/main/java/org/apache/log4j/Hierarchy.java
index 5b712e0b82..1611051f17 100644
--- a/src/main/java/org/apache/log4j/Hierarchy.java
+++ b/src/main/java/org/apache/log4j/Hierarchy.java
@@ -137,7 +137,7 @@ void emitNoAppenderWarning(Category cat) {
LogLog.warn("No appenders could be found for logger (" +
cat.getName() + ").");
LogLog.warn("Please initialize the log4j system properly.");
- LogLog.warn("See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.");
+ LogLog.warn("See https://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.");
this.emittedNoAppenderWarning = true;
}
}
diff --git a/src/main/java/org/apache/log4j/LogManager.java b/src/main/java/org/apache/log4j/LogManager.java
index 5b9659c29c..657f17f052 100644
--- a/src/main/java/org/apache/log4j/LogManager.java
+++ b/src/main/java/org/apache/log4j/LogManager.java
@@ -198,7 +198,7 @@ LoggerRepository getLoggerRepository() {
guard = null;
Exception ex = new IllegalStateException("Class invariant violation");
String msg =
- "log4j called after unloading, see http://logging.apache.org/log4j/1.2/faq.html#unload.";
+ "log4j called after unloading, see https://logging.apache.org/log4j/1.2/faq.html#unload.";
if (isLikelySafeScenario(ex)) {
LogLog.debug(msg, ex);
} else {
diff --git a/src/site/apt/index.apt b/src/site/apt/index.apt
index 1eda45e538..ed6f7cabbb 100644
--- a/src/site/apt/index.apt
+++ b/src/site/apt/index.apt
@@ -19,7 +19,7 @@ Apache log4j\u2122 1.2
is an Apache Software Foundation Project and developed by a dedicated
team of Committers of the Apache Software Foundation.
For more info, please see {{{http://www.apache.org}The Apache Software Foundation}}.
- Apache log4j is also part of a project which is known as {{{http://logging.apache.org}Apache Logging}}.
+ Apache log4j is also part of a project which is known as {{{https://logging.apache.org}Apache Logging}}.
Please see the {{{/license.html}License}}.
If you are interested in the recent changes, visit our {{{/changes-report.html}changes report}}.
diff --git a/src/site/apt/roadmap.apt b/src/site/apt/roadmap.apt
index 7bb284f722..b2b60ae77d 100644
--- a/src/site/apt/roadmap.apt
+++ b/src/site/apt/roadmap.apt
@@ -16,7 +16,7 @@
Apache log4j 1.2 Roadmap
Apache log4j 1.2 is mature and widely deployed. Significant
- changes are unlikely. Bug fixes and maintenance releases are anticipated.
+ changes are unlikely. Bug fixes and maintenance releases are anticipated.
+
+ The next major version with is {{{https://logging.apache.org/log4j/2.0/index.html}Apache log4j 2}}
- The next major version with is {{{http://logging.apache.org/log4j/2.0/index.html}Apache log4j 2}}
-
diff --git a/src/site/site-template.vm b/src/site/site-template.vm
index 63717fe193..b22c7c9174 100644
--- a/src/site/site-template.vm
+++ b/src/site/site-template.vm
@@ -83,7 +83,7 @@
For complete text of the announcement please see the
Apache Blog.
Users of Log4j 1 are recommended to upgrade to
- Apache Log4j 2.