From a5ffe95935405de1fe893935d0ef783d589758c9 Mon Sep 17 00:00:00 2001
From: Christian Grobmeier
Date: Fri, 4 May 2012 06:52:21 +0000
Subject: [PATCH 01/26] [maven-scm] copy for tag v1_2_17
git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_17@1333769 13f79535-47bb-0310-9956-ffa450edef68
From e10785b7cd54b64cbc503540f8f6df8caa3c97bc Mon Sep 17 00:00:00 2001
From: Christian Grobmeier
Date: Sun, 6 May 2012 10:59:11 +0000
Subject: [PATCH 02/26] [maven-scm] copy for tag v1_2_17_rc3
git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_17_rc3@1334596 13f79535-47bb-0310-9956-ffa450edef68
From 0f5446b7c730902dc552fdb88d8ec19a80975a93 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:40:36 +0100
Subject: [PATCH 03/26] 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..02ccb9d20b
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+target/
+tests/output/
+tests/temp
+.idea/
From ffda8340937e4b786c11c5b1dcff73996ebaa61a Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:42:20 +0100
Subject: [PATCH 04/26] 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 de9db6758f691fcd36bddf282a91e40b1ee42020 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:45:54 +0100
Subject: [PATCH 05/26] 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 e474998c6449e7abb7e1832163843ae2d1068b30 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 09:56:20 +0100
Subject: [PATCH 06/26] 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 07/26] 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..8aa3e8ee78 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/log4j/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/log4j
+ scm:git:https://github.com/apache/log4j
+ https://github.com/apache/log4jApache 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 d648d7dacfe40ca49541d5a3c50b6474f90e2641 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:08:25 +0100
Subject: [PATCH 08/26] 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 07aafeceeb7f63a66b66ba8eff0d4140e132020b Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:21:53 +0100
Subject: [PATCH 09/26] test: delete several broken low-quality tests
Delete several integration-style tests that are broken.
They are not being run by the main build (because they are broken).
---
tests/input/socketServer1.properties | 23 -
tests/input/socketServer2.properties | 23 -
tests/input/socketServer3.properties | 22 -
tests/input/socketServer4.properties | 22 -
tests/input/socketServer5.properties | 22 -
tests/input/socketServer6.properties | 22 -
tests/input/socketServer7.properties | 22 -
tests/input/socketServer8.properties | 22 -
.../apache/log4j/defaultInit/TestCase2.java | 57 ---
.../apache/log4j/defaultInit/TestCase3.java | 57 ---
.../apache/log4j/defaultInit/TestCase4.java | 58 ---
.../apache/log4j/net/ShortSocketServer.java | 85 ----
.../log4j/net/SocketServerTestCase.java | 408 ------------------
tests/witness/socketServer.1 | 31 --
tests/witness/socketServer.2 | 31 --
tests/witness/socketServer.3 | 31 --
tests/witness/socketServer.4 | 31 --
tests/witness/socketServer.5 | 31 --
tests/witness/socketServer.6 | 31 --
tests/witness/socketServer.7 | 31 --
tests/witness/socketServer.8 | 31 --
21 files changed, 1091 deletions(-)
delete mode 100644 tests/input/socketServer1.properties
delete mode 100644 tests/input/socketServer2.properties
delete mode 100644 tests/input/socketServer3.properties
delete mode 100644 tests/input/socketServer4.properties
delete mode 100644 tests/input/socketServer5.properties
delete mode 100644 tests/input/socketServer6.properties
delete mode 100644 tests/input/socketServer7.properties
delete mode 100644 tests/input/socketServer8.properties
delete mode 100644 tests/src/java/org/apache/log4j/defaultInit/TestCase2.java
delete mode 100644 tests/src/java/org/apache/log4j/defaultInit/TestCase3.java
delete mode 100644 tests/src/java/org/apache/log4j/defaultInit/TestCase4.java
delete mode 100644 tests/src/java/org/apache/log4j/net/ShortSocketServer.java
delete mode 100644 tests/src/java/org/apache/log4j/net/SocketServerTestCase.java
delete mode 100644 tests/witness/socketServer.1
delete mode 100644 tests/witness/socketServer.2
delete mode 100644 tests/witness/socketServer.3
delete mode 100644 tests/witness/socketServer.4
delete mode 100644 tests/witness/socketServer.5
delete mode 100644 tests/witness/socketServer.6
delete mode 100644 tests/witness/socketServer.7
delete mode 100644 tests/witness/socketServer.8
diff --git a/tests/input/socketServer1.properties b/tests/input/socketServer1.properties
deleted file mode 100644
index 573524b6f9..0000000000
--- a/tests/input/socketServer1.properties
+++ /dev/null
@@ -1,23 +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.
-log4j.rootLogger=TRACE, A
-log4j.logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x [%t] %c %m%n
-
diff --git a/tests/input/socketServer2.properties b/tests/input/socketServer2.properties
deleted file mode 100644
index aafd7afba5..0000000000
--- a/tests/input/socketServer2.properties
+++ /dev/null
@@ -1,23 +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.
-log4j.rootLogger=TRACE, A
-log4j.logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x [%t] %C (%F:%L) %m%n
-
diff --git a/tests/input/socketServer3.properties b/tests/input/socketServer3.properties
deleted file mode 100644
index 7ddb85c6f1..0000000000
--- a/tests/input/socketServer3.properties
+++ /dev/null
@@ -1,22 +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.
-log4j.rootLogger=TRACE, A
-log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.Logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x [%t] %C (%F:%L) %m%n
diff --git a/tests/input/socketServer4.properties b/tests/input/socketServer4.properties
deleted file mode 100644
index c00fd65b27..0000000000
--- a/tests/input/socketServer4.properties
+++ /dev/null
@@ -1,22 +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.
-log4j.rootLogger=TRACE, A
-log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.Logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x %X{key1}%X{key4} [%t] %c{1} - %m%n
diff --git a/tests/input/socketServer5.properties b/tests/input/socketServer5.properties
deleted file mode 100644
index d2d03ce8b6..0000000000
--- a/tests/input/socketServer5.properties
+++ /dev/null
@@ -1,22 +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.
-log4j.rootLogger=TRACE, A
-log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.Logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x %X{key1}%X{key5} [%t] %c{1} - %m%n
diff --git a/tests/input/socketServer6.properties b/tests/input/socketServer6.properties
deleted file mode 100644
index 19a817c40c..0000000000
--- a/tests/input/socketServer6.properties
+++ /dev/null
@@ -1,22 +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.
-log4j.rootLogger=TRACE, A
-log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.Logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x %X{hostID} %X{key6} [%t] %c{1} - %m%n
diff --git a/tests/input/socketServer7.properties b/tests/input/socketServer7.properties
deleted file mode 100644
index 742eceb479..0000000000
--- a/tests/input/socketServer7.properties
+++ /dev/null
@@ -1,22 +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.
-log4j.rootLogger=TRACE, A
-log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.Logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x %X{hostID} %X{key7} [%t] %c{1} - %m%n
diff --git a/tests/input/socketServer8.properties b/tests/input/socketServer8.properties
deleted file mode 100644
index fa31a08422..0000000000
--- a/tests/input/socketServer8.properties
+++ /dev/null
@@ -1,22 +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.
-log4j.rootLogger=TRACE, A
-log4j.Logger.org.apache.log4j.test.ShortSocketServer=WARN
-log4j.Logger.org.apache.log4j.net.SocketNode=WARN
-log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.file=output/temp
-log4j.appender.A.Append=false
-log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%5p %x %X{hostID} %X{key8} [%t] %c{1} - %m%n
diff --git a/tests/src/java/org/apache/log4j/defaultInit/TestCase2.java b/tests/src/java/org/apache/log4j/defaultInit/TestCase2.java
deleted file mode 100644
index c5552b8117..0000000000
--- a/tests/src/java/org/apache/log4j/defaultInit/TestCase2.java
+++ /dev/null
@@ -1,57 +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.
- */
-
-package org.apache.log4j.defaultInit;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.framework.Test;
-import java.util.Enumeration;
-import org.apache.log4j.Appender;
-import org.apache.log4j.Logger;
-import org.apache.log4j.LogManager;
-
-public class TestCase2 extends TestCase {
-
- public TestCase2(String name) {
- super(name);
- }
-
- public void setUp() {
- }
-
- public void tearDown() {
- LogManager.shutdown();
- }
-
- public void xmlTest() {
- Logger root = Logger.getRootLogger();
- boolean rootIsConfigured = root.getAllAppenders().hasMoreElements();
- assertTrue(rootIsConfigured);
- Enumeration e = root.getAllAppenders();
- Appender appender = (Appender) e.nextElement();
- assertEquals(appender.getName(), "D1");
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTest(new TestCase2("xmlTest"));
- return suite;
- }
-
-}
-
diff --git a/tests/src/java/org/apache/log4j/defaultInit/TestCase3.java b/tests/src/java/org/apache/log4j/defaultInit/TestCase3.java
deleted file mode 100644
index 661a02633a..0000000000
--- a/tests/src/java/org/apache/log4j/defaultInit/TestCase3.java
+++ /dev/null
@@ -1,57 +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.
- */
-
-package org.apache.log4j.defaultInit;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.framework.Test;
-import java.util.Enumeration;
-import org.apache.log4j.Appender;
-import org.apache.log4j.Logger;
-import org.apache.log4j.LogManager;
-
-public class TestCase3 extends TestCase {
-
- public TestCase3(String name) {
- super(name);
- }
-
- public void setUp() {
- }
-
- public void tearDown() {
- LogManager.shutdown();
- }
-
- public void propertiesTest() {
- Logger root = Logger.getRootLogger();
- boolean rootIsConfigured = root.getAllAppenders().hasMoreElements();
- assertTrue(rootIsConfigured);
- Enumeration e = root.getAllAppenders();
- Appender appender = (Appender) e.nextElement();
- assertEquals(appender.getName(), "D3");
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTest(new TestCase3("propertiesTest"));
- return suite;
- }
-
-}
-
diff --git a/tests/src/java/org/apache/log4j/defaultInit/TestCase4.java b/tests/src/java/org/apache/log4j/defaultInit/TestCase4.java
deleted file mode 100644
index aeed8a13ca..0000000000
--- a/tests/src/java/org/apache/log4j/defaultInit/TestCase4.java
+++ /dev/null
@@ -1,58 +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.
- */
-
-package org.apache.log4j.defaultInit;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.framework.Test;
-import java.util.Enumeration;
-import org.apache.log4j.Appender;
-import org.apache.log4j.Logger;
-import org.apache.log4j.LogManager;
-
-public class TestCase4 extends TestCase {
-
- public TestCase4(String name) {
- super(name);
- }
-
- public void setUp() {
- }
-
- public void tearDown() {
- LogManager.shutdown();
- }
-
- public void combinedTest() {
- Logger root = Logger.getRootLogger();
- boolean rootIsConfigured = root.getAllAppenders().hasMoreElements();
- assertTrue(rootIsConfigured);
- Enumeration e = root.getAllAppenders();
- Appender appender = (Appender) e.nextElement();
- assertEquals(appender.getName(), "D1");
- assertEquals(e.hasMoreElements(), false);
- }
-
- public static Test suite() {
- TestSuite suite = new TestSuite();
- suite.addTest(new TestCase4("combinedTest"));
- return suite;
- }
-
-}
-
diff --git a/tests/src/java/org/apache/log4j/net/ShortSocketServer.java b/tests/src/java/org/apache/log4j/net/ShortSocketServer.java
deleted file mode 100644
index 78eee86905..0000000000
--- a/tests/src/java/org/apache/log4j/net/ShortSocketServer.java
+++ /dev/null
@@ -1,85 +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.
- */
-
-
-package org.apache.log4j.net;
-
-import java.net.Socket;
-import java.net.ServerSocket;
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.LogManager;
-import org.apache.log4j.PropertyConfigurator;
-import org.apache.log4j.MDC;
-import org.apache.log4j.helpers.LogLog;
-
-/**
- * This SocketServer exits after certain number of connections from a
- * client. This number is determined the totalsTest parameter, that is
- * the first argument on the commmand line. The second argument,
- * prefix, determines the prefix of the configuration file to
- * use. Each run of the server will use a different properties
- * file. For the i-th run, the path to the file is
- * (prefix+i+".properties").
- *
- * @author Ceki Gulcu */
-
-public class ShortSocketServer {
-
- static Logger cat = Logger.getLogger(ShortSocketServer.class);
-
- public
- static
- void main(String args[]) throws Exception {
- int totalTests = 0;
- String prefix = null;
-
- if(args.length == 2) {
- totalTests = Integer.parseInt(args[0]);
- prefix = args[1];
- } else {
- usage("Wrong number of arguments.");
- }
-
-
- LogLog.debug("Listening on port " + SocketServerTestCase.PORT);
- ServerSocket serverSocket = new ServerSocket(SocketServerTestCase.PORT);
-
- MDC.put("hostID", "shortSocketServer");
-
- for(int i = 1; i <= totalTests; i++) {
- PropertyConfigurator.configure(prefix+i+".properties");
- LogLog.debug("Waiting to accept a new client.");
- Socket socket = serverSocket.accept();
- LogLog.debug("Connected to client at " + socket.getInetAddress());
- LogLog.debug("Starting new socket node.");
- SocketNode sn = new SocketNode(socket, LogManager.getLoggerRepository());
- Thread t = new Thread(sn);
- t.start();
- t.join();
- }
- }
-
-
- static
- void usage(String msg) {
- System.err.println(msg);
- System.err.println(
- "Usage: java " +ShortSocketServer.class.getName() + " totalTests configFilePrefix");
- System.exit(1);
- }
-}
diff --git a/tests/src/java/org/apache/log4j/net/SocketServerTestCase.java b/tests/src/java/org/apache/log4j/net/SocketServerTestCase.java
deleted file mode 100644
index 59194076a3..0000000000
--- a/tests/src/java/org/apache/log4j/net/SocketServerTestCase.java
+++ /dev/null
@@ -1,408 +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.
- */
-
-package org.apache.log4j.net;
-
-import junit.framework.TestCase;
-import junit.framework.TestSuite;
-import junit.framework.Test;
-
-import org.apache.log4j.*;
-import org.apache.log4j.util.*;
-
-
-import org.apache.log4j.Logger;
-import org.apache.log4j.NDC;
-import org.apache.log4j.xml.XLevel;
-
-/**
- @author Ceki Gülcü
-*/
-public class SocketServerTestCase extends TestCase {
-
- static String TEMP = "output/temp";
- static String FILTERED = "output/filtered";
-
- // %5p %x [%t] %c %m%n
- // DEBUG T1 [main] org.apache.log4j.net.SocketAppenderTestCase Message 1
- static String PAT1 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) T1 \\[main]\\ "
- + ".* Message \\d{1,2}";
-
- // DEBUG T2 [main] ? (?:?) Message 1
- static String PAT2 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) T2 \\[main]\\ "
- + "\\? \\(\\?:\\?\\) Message \\d{1,2}";
-
-
- // DEBUG T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:121) Message 1
- static String PAT3 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) T3 \\[main]\\ "
- + "org.apache.log4j.net.SocketServerTestCase "
- + "\\(SocketServerTestCase.java:\\d{3}\\) Message \\d{1,2}";
-
-
- // DEBUG some T4 MDC-TEST4 [main] SocketAppenderTestCase - Message 1
- // DEBUG some T4 MDC-TEST4 [main] SocketAppenderTestCase - Message 1
- static String PAT4 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) some T4 MDC-TEST4 \\[main]\\"
- + " (root|SocketServerTestCase) - Message \\d{1,2}";
-
- static String PAT5 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) some5 T5 MDC-TEST5 \\[main]\\"
- + " (root|SocketServerTestCase) - Message \\d{1,2}";
-
- static String PAT6 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) some6 T6 client-test6 MDC-TEST6"
- + " \\[main]\\ (root|SocketServerTestCase) - Message \\d{1,2}";
-
- static String PAT7 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) some7 T7 client-test7 MDC-TEST7"
- + " \\[main]\\ (root|SocketServerTestCase) - Message \\d{1,2}";
-
- // DEBUG some8 T8 shortSocketServer MDC-TEST7 [main] SocketServerTestCase - Message 1
- static String PAT8 = "^(TRACE|DEBUG| INFO| WARN|ERROR|FATAL|LETHAL) some8 T8 shortSocketServer"
- + " MDC-TEST8 \\[main]\\ (root|SocketServerTestCase) - Message \\d{1,2}";
-
-
-
- static String EXCEPTION1 = "java.lang.Exception: Just testing";
- static String EXCEPTION2 = "\\s*at .*\\(.*\\)";
- static String EXCEPTION3 = "\\s*at .*\\(Native Method\\)";
- static String EXCEPTION4 = "\\s*at .*\\(.*Compiled Code\\)";
- static String EXCEPTION5 = "\\s*at .*\\(.*libgcj.*\\)";
-
-
- static Logger logger = Logger.getLogger(SocketServerTestCase.class);
- static public final int PORT = 12345;
- static Logger rootLogger = Logger.getRootLogger();
- SocketAppender socketAppender;
-
- public SocketServerTestCase(String name) {
- super(name);
- }
-
- public void setUp() {
- System.out.println("Setting up test case.");
- }
-
- public void tearDown() {
- System.out.println("Tearing down test case.");
- socketAppender = null;
- rootLogger.removeAllAppenders();
- }
-
- /**
- * The pattern on the server side: %5p %x [%t] %c %m%n
- *
- * We are testing NDC functionality across the wire.
- */
- public void test1() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- rootLogger.addAppender(socketAppender);
- common("T1", "key1", "MDC-TEST1");
- delay(1);
- ControlFilter cf = new ControlFilter(new String[]{PAT1, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
-
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
-
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.1"));
- }
-
- /**
- * The pattern on the server side: %5p %x [%t] %C (%F:%L) %m%n
- *
- * We are testing NDC across the wire. Localization is turned off by
- * default so it is not tested here even if the conversion pattern
- * uses localization. */
- public void test2() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- rootLogger.addAppender(socketAppender);
-
- common("T2", "key2", "MDC-TEST2");
- delay(1);
- ControlFilter cf = new ControlFilter(new String[]{PAT2, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
-
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
-
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.2"));
- }
-
- /**
- * The pattern on the server side: %5p %x [%t] %C (%F:%L) %m%n
- * meaning that we are testing NDC and locatization functionality
- * across the wire. */
- public void test3() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- socketAppender.setLocationInfo(true);
- rootLogger.addAppender(socketAppender);
-
- common("T3", "key3", "MDC-TEST3");
- delay(1);
- ControlFilter cf = new ControlFilter(new String[]{PAT3, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
-
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
-
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.3"));
- }
-
- /**
- * The pattern on the server side: %5p %x %X{key1}%X{key4} [%t] %c{1} - %m%n
- * meaning that we are testing NDC, MDC and localization functionality across
- * the wire.
- */
- public void test4() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- socketAppender.setLocationInfo(true);
- rootLogger.addAppender(socketAppender);
-
- NDC.push("some");
- common("T4", "key4", "MDC-TEST4");
- NDC.pop();
- delay(1);
- //
- // These tests check MDC operation which
- // requires JDK 1.2 or later
- if(!System.getProperty("java.version").startsWith("1.1.")) {
-
- ControlFilter cf = new ControlFilter(new String[]{PAT4, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
-
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.4"));
- }
- }
-
- /**
- * The pattern on the server side: %5p %x %X{key1}%X{key5} [%t] %c{1} - %m%n
- *
- * The test case uses wraps an AsyncAppender around the
- * SocketAppender. This tests was written specifically for bug
- * report #9155.
-
- * Prior to the bug fix the output on the server did not contain the
- * MDC-TEST5 string because the MDC clone operation (in getMDCCopy
- * method) operation is performed twice, once from the main thread
- * which is correct, and a second time from the AsyncAppender's
- * dispatch thread which is incrorrect.
-
- */
- public void test5() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- socketAppender.setLocationInfo(true);
- AsyncAppender asyncAppender = new AsyncAppender();
- asyncAppender.setLocationInfo(true);
- asyncAppender.addAppender(socketAppender);
- rootLogger.addAppender(asyncAppender);
-
- NDC.push("some5");
- common("T5", "key5", "MDC-TEST5");
- NDC.pop();
- delay(2);
- //
- // These tests check MDC operation which
- // requires JDK 1.2 or later
- if(!System.getProperty("java.version").startsWith("1.1.")) {
- ControlFilter cf = new ControlFilter(new String[]{PAT5, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
-
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
-
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.5"));
- }
- }
-
- /**
- * The pattern on the server side: %5p %x %X{hostID}${key6} [%t] %c{1} - %m%n
- *
- * This test checks whether client-side MDC overrides the server side.
- * It uses an AsyncAppender encapsulating a SocketAppender
- */
- public void test6() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- socketAppender.setLocationInfo(true);
- AsyncAppender asyncAppender = new AsyncAppender();
- asyncAppender.setLocationInfo(true);
- asyncAppender.addAppender(socketAppender);
- rootLogger.addAppender(asyncAppender);
-
- NDC.push("some6");
- MDC.put("hostID", "client-test6");
- common("T6", "key6", "MDC-TEST6");
- NDC.pop();
- MDC.remove("hostID");
- delay(2);
- //
- // These tests check MDC operation which
- // requires JDK 1.2 or later
- if(!System.getProperty("java.version").startsWith("1.1.")) {
- ControlFilter cf = new ControlFilter(new String[]{PAT6, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
-
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
-
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.6"));
- }
- }
-
- /**
- * The pattern on the server side: %5p %x %X{hostID}${key7} [%t] %c{1} - %m%n
- *
- * This test checks whether client-side MDC overrides the server side.
- */
- public void test7() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- socketAppender.setLocationInfo(true);
- rootLogger.addAppender(socketAppender);
-
- NDC.push("some7");
- MDC.put("hostID", "client-test7");
- common("T7", "key7", "MDC-TEST7");
- NDC.pop();
- MDC.remove("hostID");
- delay(2);
- //
- // These tests check MDC operation which
- // requires JDK 1.2 or later
- if(!System.getProperty("java.version").startsWith("1.1.")) {
- ControlFilter cf = new ControlFilter(new String[]{PAT7, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
-
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.7"));
- }
- }
-
- /**
- * The pattern on the server side: %5p %x %X{hostID} ${key8} [%t] %c{1} - %m%n
- *
- * This test checks whether server side MDC works.
- */
- public void test8() throws Exception {
- socketAppender = new SocketAppender("localhost", PORT);
- socketAppender.setLocationInfo(true);
- rootLogger.addAppender(socketAppender);
-
- NDC.push("some8");
-
- //
- // The test has relied on the receiving code to
- // combine the sent MDC with the receivers MDC
- // (which contains a value for hostID).
- // The mechanism of how that happens is not clear
- // and it does not work with Apache Harmony.
- // Unclear if it is a Harmony issue.
- if (System.getProperty("java.vendor").indexOf("Apache") != -1) {
- MDC.put("hostID", "shortSocketServer");
- }
-
- common("T8", "key8", "MDC-TEST8");
- NDC.pop();
- delay(2);
- //
- // These tests check MDC operation which
- // requires JDK 1.2 or later
- if(!System.getProperty("java.version").startsWith("1.1.")) {
- ControlFilter cf = new ControlFilter(new String[]{PAT8, EXCEPTION1,
- EXCEPTION2, EXCEPTION3, EXCEPTION4, EXCEPTION5});
-
- Transformer.transform(
- TEMP, FILTERED,
- new Filter[] { cf, new LineNumberFilter(),
- new JunitTestRunnerFilter(),
- new SunReflectFilter() });
- assertTrue(Compare.compare(FILTERED, "witness/socketServer.8"));
- }
- }
-
- static
- void common(String dc, String key, Object o) {
- String oldThreadName = Thread.currentThread().getName();
- Thread.currentThread().setName("main");
-
- int i = -1;
- NDC.push(dc);
- MDC.put(key, o);
- Logger root = Logger.getRootLogger();
-
- logger.setLevel(Level.DEBUG);
- rootLogger.setLevel(Level.DEBUG);
-
- logger.log(XLevel.TRACE, "Message " + ++i);
-
- logger.setLevel(Level.TRACE);
- rootLogger.setLevel(Level.TRACE);
-
- logger.trace("Message " + ++i);
- root.trace("Message " + ++i);
- logger.debug("Message " + ++i);
- root.debug("Message " + ++i);
- logger.info("Message " + ++i);
- logger.warn("Message " + ++i);
- logger.log(XLevel.LETHAL, "Message " + ++i); //5
-
- Exception e = new Exception("Just testing");
- logger.debug("Message " + ++i, e);
- root.error("Message " + ++i, e);
- NDC.pop();
- MDC.remove(key);
-
- Thread.currentThread().setName(oldThreadName);
- }
-
- public void delay(int secs) {
- try {Thread.sleep(secs*1000);} catch(Exception e) {}
- }
-
-
- 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"));
- return suite;
- }
-}
diff --git a/tests/witness/socketServer.1 b/tests/witness/socketServer.1
deleted file mode 100644
index 113f262eec..0000000000
--- a/tests/witness/socketServer.1
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE T1 [main] org.apache.log4j.net.SocketServerTestCase Message 1
-TRACE T1 [main] root Message 2
-DEBUG T1 [main] org.apache.log4j.net.SocketServerTestCase Message 3
-DEBUG T1 [main] root Message 4
- INFO T1 [main] org.apache.log4j.net.SocketServerTestCase Message 5
- WARN T1 [main] org.apache.log4j.net.SocketServerTestCase Message 6
-LETHAL T1 [main] org.apache.log4j.net.SocketServerTestCase Message 7
-DEBUG T1 [main] org.apache.log4j.net.SocketServerTestCase Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test1(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR T1 [main] root Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test1(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
diff --git a/tests/witness/socketServer.2 b/tests/witness/socketServer.2
deleted file mode 100644
index 3ee37c1a51..0000000000
--- a/tests/witness/socketServer.2
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE T2 [main] ? (?:?) Message 1
-TRACE T2 [main] ? (?:?) Message 2
-DEBUG T2 [main] ? (?:?) Message 3
-DEBUG T2 [main] ? (?:?) Message 4
- INFO T2 [main] ? (?:?) Message 5
- WARN T2 [main] ? (?:?) Message 6
-LETHAL T2 [main] ? (?:?) Message 7
-DEBUG T2 [main] ? (?:?) Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test2(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR T2 [main] ? (?:?) Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test2(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
diff --git a/tests/witness/socketServer.3 b/tests/witness/socketServer.3
deleted file mode 100644
index de184bbd8c..0000000000
--- a/tests/witness/socketServer.3
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 1
-TRACE T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 2
-DEBUG T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 3
-DEBUG T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 4
- INFO T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 5
- WARN T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 6
-LETHAL T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 7
-DEBUG T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test3(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR T3 [main] org.apache.log4j.net.SocketServerTestCase (SocketServerTestCase.java:XXX) Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test3(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
diff --git a/tests/witness/socketServer.4 b/tests/witness/socketServer.4
deleted file mode 100644
index 69236688b4..0000000000
--- a/tests/witness/socketServer.4
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE some T4 MDC-TEST4 [main] SocketServerTestCase - Message 1
-TRACE some T4 MDC-TEST4 [main] root - Message 2
-DEBUG some T4 MDC-TEST4 [main] SocketServerTestCase - Message 3
-DEBUG some T4 MDC-TEST4 [main] root - Message 4
- INFO some T4 MDC-TEST4 [main] SocketServerTestCase - Message 5
- WARN some T4 MDC-TEST4 [main] SocketServerTestCase - Message 6
-LETHAL some T4 MDC-TEST4 [main] SocketServerTestCase - Message 7
-DEBUG some T4 MDC-TEST4 [main] SocketServerTestCase - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test4(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR some T4 MDC-TEST4 [main] root - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test4(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
diff --git a/tests/witness/socketServer.5 b/tests/witness/socketServer.5
deleted file mode 100644
index cde6de7152..0000000000
--- a/tests/witness/socketServer.5
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 1
-TRACE some5 T5 MDC-TEST5 [main] root - Message 2
-DEBUG some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 3
-DEBUG some5 T5 MDC-TEST5 [main] root - Message 4
- INFO some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 5
- WARN some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 6
-LETHAL some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 7
-DEBUG some5 T5 MDC-TEST5 [main] SocketServerTestCase - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test5(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR some5 T5 MDC-TEST5 [main] root - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test5(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
diff --git a/tests/witness/socketServer.6 b/tests/witness/socketServer.6
deleted file mode 100644
index ae9a686040..0000000000
--- a/tests/witness/socketServer.6
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 1
-TRACE some6 T6 client-test6 MDC-TEST6 [main] root - Message 2
-DEBUG some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 3
-DEBUG some6 T6 client-test6 MDC-TEST6 [main] root - Message 4
- INFO some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 5
- WARN some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 6
-LETHAL some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 7
-DEBUG some6 T6 client-test6 MDC-TEST6 [main] SocketServerTestCase - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test6(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR some6 T6 client-test6 MDC-TEST6 [main] root - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test6(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
diff --git a/tests/witness/socketServer.7 b/tests/witness/socketServer.7
deleted file mode 100644
index 3ea7428cbd..0000000000
--- a/tests/witness/socketServer.7
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 1
-TRACE some7 T7 client-test7 MDC-TEST7 [main] root - Message 2
-DEBUG some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 3
-DEBUG some7 T7 client-test7 MDC-TEST7 [main] root - Message 4
- INFO some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 5
- WARN some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 6
-LETHAL some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 7
-DEBUG some7 T7 client-test7 MDC-TEST7 [main] SocketServerTestCase - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test7(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR some7 T7 client-test7 MDC-TEST7 [main] root - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test7(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
diff --git a/tests/witness/socketServer.8 b/tests/witness/socketServer.8
deleted file mode 100644
index c317ac7aca..0000000000
--- a/tests/witness/socketServer.8
+++ /dev/null
@@ -1,31 +0,0 @@
-TRACE some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 1
-TRACE some8 T8 shortSocketServer MDC-TEST8 [main] root - Message 2
-DEBUG some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 3
-DEBUG some8 T8 shortSocketServer MDC-TEST8 [main] root - Message 4
- INFO some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 5
- WARN some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 6
-LETHAL some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 7
-DEBUG some8 T8 shortSocketServer MDC-TEST8 [main] SocketServerTestCase - Message 8
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test8(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
-ERROR some8 T8 shortSocketServer MDC-TEST8 [main] root - Message 9
-java.lang.Exception: Just testing
- at org.apache.log4j.net.SocketServerTestCase.common(SocketServerTestCase.java:XXX)
- at org.apache.log4j.net.SocketServerTestCase.test8(SocketServerTestCase.java:XXX)
- at junit.framework.TestCase.runTest(TestCase.java:XXX)
- at junit.framework.TestCase.runBare(TestCase.java:XXX)
- at junit.framework.TestResult$1.protect(TestResult.java:XXX)
- at junit.framework.TestResult.runProtected(TestResult.java:XXX)
- at junit.framework.TestResult.run(TestResult.java:XXX)
- at junit.framework.TestCase.run(TestCase.java:XXX)
- at junit.framework.TestSuite.runTest(TestSuite.java:XXX)
- at junit.framework.TestSuite.run(TestSuite.java:XXX)
From 12120ee5d3f7dceb01fe4f5ae79ef75e88764e58 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:23:50 +0100
Subject: [PATCH 10/26] 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 bd880080d22320b40178080bd4fda456fe112e1b Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:38:33 +0100
Subject: [PATCH 11/26] 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 8cf02344ab93ecee8739075b7f8ebb82be21618b Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:39:30 +0100
Subject: [PATCH 12/26] test: do not run NTEventLogAppenderTest except on
Windows
---
.../src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java b/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
index bba8de0602..2d16f74171 100755
--- a/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
+++ b/tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java
@@ -42,6 +42,10 @@ 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 e966e752a291f650fd92ff26345878c17507d5f8 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:43:14 +0100
Subject: [PATCH 13/26] 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 05b34e9d9880bbdfb3e9bb824cf7e3e141783a2c Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 11:45:03 +0100
Subject: [PATCH 14/26] test: do not use same output files from many tests
Changes most tests to use unique output files during their runs, so that
when they run in parallel or out-of-order or interactively they do not
cause test failures, reducing flakyness of test runs.
---
tests/input/fallback1.properties | 2 +-
tests/input/hierarchyThreshold1.properties | 4 ++--
tests/input/hierarchyThreshold2.properties | 4 ++--
tests/input/hierarchyThreshold3.properties | 4 ++--
tests/input/hierarchyThreshold4.properties | 4 ++--
tests/input/hierarchyThreshold5.properties | 4 ++--
tests/input/hierarchyThreshold6.properties | 4 ++--
tests/input/hierarchyThreshold7.properties | 2 +-
tests/input/hierarchyThreshold8.properties | 4 ++--
.../enhancedPatternLayout.mdc.1.properties | 2 +-
.../pattern/enhancedPatternLayout1.properties | 2 +-
.../pattern/enhancedPatternLayout10.properties | 2 +-
.../pattern/enhancedPatternLayout11.properties | 2 +-
.../pattern/enhancedPatternLayout12.properties | 2 +-
.../pattern/enhancedPatternLayout13.properties | 2 +-
.../pattern/enhancedPatternLayout14.properties | 2 +-
.../pattern/enhancedPatternLayout15.properties | 2 +-
.../pattern/enhancedPatternLayout2.properties | 2 +-
.../pattern/enhancedPatternLayout3.properties | 2 +-
.../pattern/enhancedPatternLayout4.properties | 2 +-
.../pattern/enhancedPatternLayout5.properties | 2 +-
.../pattern/enhancedPatternLayout6.properties | 2 +-
.../pattern/enhancedPatternLayout7.properties | 2 +-
.../pattern/enhancedPatternLayout8.properties | 2 +-
.../pattern/enhancedPatternLayout9.properties | 2 +-
tests/input/patternLayout.mdc.1.properties | 2 +-
tests/input/patternLayout1.properties | 4 ++--
tests/input/patternLayout10.properties | 4 ++--
tests/input/patternLayout11.properties | 4 ++--
tests/input/patternLayout12.properties | 4 ++--
tests/input/patternLayout13.properties | 4 ++--
tests/input/patternLayout14.properties | 2 +-
tests/input/patternLayout2.properties | 2 +-
tests/input/patternLayout3.properties | 4 ++--
tests/input/patternLayout4.properties | 4 ++--
tests/input/patternLayout5.properties | 4 ++--
tests/input/patternLayout6.properties | 4 ++--
tests/input/patternLayout7.properties | 2 +-
tests/input/patternLayout8.properties | 4 ++--
tests/input/patternLayout9.properties | 4 ++--
tests/input/xml/DOMTest4_A1.xml | 2 +-
tests/input/xml/DOMTest4_A2.xml | 2 +-
tests/input/xml/DOMTestCase1.xml | 4 ++--
tests/input/xml/customLevel1.xml | 4 ++--
tests/input/xml/customLevel2.xml | 4 ++--
tests/input/xml/customLevel3.xml | 4 ++--
tests/input/xml/customLevel4.xml | 4 ++--
tests/input/xml/fallback1.xml | 2 +-
.../log4j/EnhancedPatternLayoutTestCase.java | 5 +++--
.../log4j/HierarchyThresholdTestCase.java | 3 ++-
.../java/org/apache/log4j/MinimumTestCase.java | 2 +-
.../org/apache/log4j/PatternLayoutTestCase.java | 5 +++--
.../log4j/customLogger/XLoggerTestCase.java | 2 +-
.../java/org/apache/log4j/util/TestFile.java | 17 +++++++++++++++++
.../log4j/varia/ErrorHandlerTestCase.java | 5 +++--
.../apache/log4j/xml/CustomLevelTestCase.java | 3 ++-
.../java/org/apache/log4j/xml/DOMTestCase.java | 15 ++++++++-------
.../org/apache/log4j/xml/XMLLayoutTestCase.java | 5 +++--
58 files changed, 114 insertions(+), 90 deletions(-)
create mode 100644 tests/src/java/org/apache/log4j/util/TestFile.java
diff --git a/tests/input/fallback1.properties b/tests/input/fallback1.properties
index bf520ae407..0ea3dd885d 100644
--- a/tests/input/fallback1.properties
+++ b/tests/input/fallback1.properties
@@ -24,7 +24,7 @@ log4j.appender.PRIMARY.layout=org.apache.log4j.PatternLayout
log4j.appender.PRIMARY.layout.conversionPattern=%-5p %c{2} - %m%n
log4j.appender.FALLBACK=org.apache.log4j.FileAppender
-log4j.appender.FALLBACK.File=output/temp
+log4j.appender.FALLBACK.File=output/temp.ErrorHandlerTestCase
log4j.appender.FALLBACK.Append=false
log4j.appender.FALLBACK.layout=org.apache.log4j.PatternLayout
log4j.appender.FALLBACK.layout.ConversionPattern=FALLBACK - %c - %m%n
diff --git a/tests/input/hierarchyThreshold1.properties b/tests/input/hierarchyThreshold1.properties
index 81a529ecda..0619d89651 100644
--- a/tests/input/hierarchyThreshold1.properties
+++ b/tests/input/hierarchyThreshold1.properties
@@ -16,7 +16,7 @@
log4j.threshold=OFF
log4j.rootLogger=,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
\ No newline at end of file
+log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/hierarchyThreshold2.properties b/tests/input/hierarchyThreshold2.properties
index b79aa7f603..f94a7c5d70 100644
--- a/tests/input/hierarchyThreshold2.properties
+++ b/tests/input/hierarchyThreshold2.properties
@@ -16,7 +16,7 @@
log4j.threshold=FATAL
log4j.rootLogger=,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
\ No newline at end of file
+log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/hierarchyThreshold3.properties b/tests/input/hierarchyThreshold3.properties
index aae8b4435f..1901812dcc 100644
--- a/tests/input/hierarchyThreshold3.properties
+++ b/tests/input/hierarchyThreshold3.properties
@@ -16,7 +16,7 @@
log4j.threshold=ERROR
log4j.rootLogger=,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
\ No newline at end of file
+log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/hierarchyThreshold4.properties b/tests/input/hierarchyThreshold4.properties
index ba54f13321..4ef8704dd5 100644
--- a/tests/input/hierarchyThreshold4.properties
+++ b/tests/input/hierarchyThreshold4.properties
@@ -16,7 +16,7 @@
log4j.threshold=WARN
log4j.rootLogger=,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
\ No newline at end of file
+log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/hierarchyThreshold5.properties b/tests/input/hierarchyThreshold5.properties
index f4ef8587f1..5b49ba0a16 100644
--- a/tests/input/hierarchyThreshold5.properties
+++ b/tests/input/hierarchyThreshold5.properties
@@ -16,7 +16,7 @@
log4j.threshold=INFO
log4j.rootLogger=,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
\ No newline at end of file
+log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/hierarchyThreshold6.properties b/tests/input/hierarchyThreshold6.properties
index 3cc6122a21..7f2f8a9cb7 100644
--- a/tests/input/hierarchyThreshold6.properties
+++ b/tests/input/hierarchyThreshold6.properties
@@ -16,7 +16,7 @@
log4j.threshold=DEBUG
log4j.rootLogger=,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
\ No newline at end of file
+log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/hierarchyThreshold7.properties b/tests/input/hierarchyThreshold7.properties
index 3ffcdfb003..f213b81a1b 100644
--- a/tests/input/hierarchyThreshold7.properties
+++ b/tests/input/hierarchyThreshold7.properties
@@ -16,7 +16,7 @@
log4j.threshold=TRACE#org.apache.log4j.xml.XLevel
log4j.rootLogger=ALL,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/hierarchyThreshold8.properties b/tests/input/hierarchyThreshold8.properties
index a21eed9276..0b8fdffe51 100644
--- a/tests/input/hierarchyThreshold8.properties
+++ b/tests/input/hierarchyThreshold8.properties
@@ -16,7 +16,7 @@
log4j.threshold=ALL
log4j.rootLogger=ALL,A
log4j.appender.A=org.apache.log4j.FileAppender
-log4j.appender.A.File=output/temp
+log4j.appender.A.File=output/temp.HierarchyThresholdTestCase
log4j.appender.A.Append=false
log4j.appender.A.layout=org.apache.log4j.PatternLayout
-log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
\ No newline at end of file
+log4j.appender.A.layout.ConversionPattern=%p [%t] %c{2} = %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout.mdc.1.properties b/tests/input/pattern/enhancedPatternLayout.mdc.1.properties
index dc6055ab08..35bf0a7795 100644
--- a/tests/input/pattern/enhancedPatternLayout.mdc.1.properties
+++ b/tests/input/pattern/enhancedPatternLayout.mdc.1.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m %X%n
diff --git a/tests/input/pattern/enhancedPatternLayout1.properties b/tests/input/pattern/enhancedPatternLayout1.properties
index 7d73b79951..2f22f3cb91 100644
--- a/tests/input/pattern/enhancedPatternLayout1.properties
+++ b/tests/input/pattern/enhancedPatternLayout1.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootLogger=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.file=output/temp
+log4j.appender.testAppender.file=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout10.properties b/tests/input/pattern/enhancedPatternLayout10.properties
index cf62885b1a..3bf8fa3c37 100644
--- a/tests/input/pattern/enhancedPatternLayout10.properties
+++ b/tests/input/pattern/enhancedPatternLayout10.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append= false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %l: %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout11.properties b/tests/input/pattern/enhancedPatternLayout11.properties
index 02b7798664..bdf5b70b32 100644
--- a/tests/input/pattern/enhancedPatternLayout11.properties
+++ b/tests/input/pattern/enhancedPatternLayout11.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%-5p [%t] %c{2}: %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout12.properties b/tests/input/pattern/enhancedPatternLayout12.properties
index 3c2677952a..8abe2b0d74 100644
--- a/tests/input/pattern/enhancedPatternLayout12.properties
+++ b/tests/input/pattern/enhancedPatternLayout12.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C.%M(%F:%L): %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout13.properties b/tests/input/pattern/enhancedPatternLayout13.properties
index f7cadbe5dd..83a6b16ca2 100644
--- a/tests/input/pattern/enhancedPatternLayout13.properties
+++ b/tests/input/pattern/enhancedPatternLayout13.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C{3}.%M(%F:%L): %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout14.properties b/tests/input/pattern/enhancedPatternLayout14.properties
index cbb8b694db..a4163e8524 100644
--- a/tests/input/pattern/enhancedPatternLayout14.properties
+++ b/tests/input/pattern/enhancedPatternLayout14.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%-5p [%t] %c{1.}: %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout15.properties b/tests/input/pattern/enhancedPatternLayout15.properties
index fc98586dde..73ba63ad19 100644
--- a/tests/input/pattern/enhancedPatternLayout15.properties
+++ b/tests/input/pattern/enhancedPatternLayout15.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedMyPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%5p %-4# - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout2.properties b/tests/input/pattern/enhancedPatternLayout2.properties
index 5858647d4e..384a2e629f 100644
--- a/tests/input/pattern/enhancedPatternLayout2.properties
+++ b/tests/input/pattern/enhancedPatternLayout2.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append= false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout3.properties b/tests/input/pattern/enhancedPatternLayout3.properties
index 72b3ab176e..c604c1839d 100644
--- a/tests/input/pattern/enhancedPatternLayout3.properties
+++ b/tests/input/pattern/enhancedPatternLayout3.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout4.properties b/tests/input/pattern/enhancedPatternLayout4.properties
index 0438cc9409..a59dac21d1 100644
--- a/tests/input/pattern/enhancedPatternLayout4.properties
+++ b/tests/input/pattern/enhancedPatternLayout4.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{DATE} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout5.properties b/tests/input/pattern/enhancedPatternLayout5.properties
index 24f30e4eca..fc07143fa4 100644
--- a/tests/input/pattern/enhancedPatternLayout5.properties
+++ b/tests/input/pattern/enhancedPatternLayout5.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout6.properties b/tests/input/pattern/enhancedPatternLayout6.properties
index 8284edd3de..252ff730dc 100644
--- a/tests/input/pattern/enhancedPatternLayout6.properties
+++ b/tests/input/pattern/enhancedPatternLayout6.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout7.properties b/tests/input/pattern/enhancedPatternLayout7.properties
index eed2a34385..8839f7941f 100644
--- a/tests/input/pattern/enhancedPatternLayout7.properties
+++ b/tests/input/pattern/enhancedPatternLayout7.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout8.properties b/tests/input/pattern/enhancedPatternLayout8.properties
index 22a8eaf718..66c64eee8b 100644
--- a/tests/input/pattern/enhancedPatternLayout8.properties
+++ b/tests/input/pattern/enhancedPatternLayout8.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%r [%t] %-5p %.16c - %m%n
diff --git a/tests/input/pattern/enhancedPatternLayout9.properties b/tests/input/pattern/enhancedPatternLayout9.properties
index 705d62c0f3..538f0f5dc2 100644
--- a/tests/input/pattern/enhancedPatternLayout9.properties
+++ b/tests/input/pattern/enhancedPatternLayout9.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.EnhancedPatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.EnhancedPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %.16c : %m%n
diff --git a/tests/input/patternLayout.mdc.1.properties b/tests/input/patternLayout.mdc.1.properties
index d3a5439b2e..dcc50ba62b 100644
--- a/tests/input/patternLayout.mdc.1.properties
+++ b/tests/input/patternLayout.mdc.1.properties
@@ -14,7 +14,7 @@
# limitations under the License.
log4j.rootCategory=DEBUG, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m %X%n
diff --git a/tests/input/patternLayout1.properties b/tests/input/patternLayout1.properties
index 634c19542e..80dd82d9f4 100644
--- a/tests/input/patternLayout1.properties
+++ b/tests/input/patternLayout1.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=%-5p - %m%n
diff --git a/tests/input/patternLayout10.properties b/tests/input/patternLayout10.properties
index 117969d39f..882c980859 100644
--- a/tests/input/patternLayout10.properties
+++ b/tests/input/patternLayout10.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File= output/temp
+log4j.appender.testAppender.File= output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append= false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %l: %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %l: %m%n
diff --git a/tests/input/patternLayout11.properties b/tests/input/patternLayout11.properties
index a94325a998..333d2f2a2c 100644
--- a/tests/input/patternLayout11.properties
+++ b/tests/input/patternLayout11.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=%-5p [%t] %c{2}: %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=%-5p [%t] %c{2}: %m%n
diff --git a/tests/input/patternLayout12.properties b/tests/input/patternLayout12.properties
index bc0f3f0f05..72aa0702d6 100644
--- a/tests/input/patternLayout12.properties
+++ b/tests/input/patternLayout12.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C.%M(%F:%L): %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C.%M(%F:%L): %m%n
diff --git a/tests/input/patternLayout13.properties b/tests/input/patternLayout13.properties
index b965dfb36c..6f69eac672 100644
--- a/tests/input/patternLayout13.properties
+++ b/tests/input/patternLayout13.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File= output/temp
+log4j.appender.testAppender.File= output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C{3}.%M(%F:%L): %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %C{3}.%M(%F:%L): %m%n
diff --git a/tests/input/patternLayout14.properties b/tests/input/patternLayout14.properties
index f0cf51fb9b..77a94784db 100644
--- a/tests/input/patternLayout14.properties
+++ b/tests/input/patternLayout14.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File= output/temp
+log4j.appender.testAppender.File= output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.MyPatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%5p %-4# - %m%n
diff --git a/tests/input/patternLayout2.properties b/tests/input/patternLayout2.properties
index 951ca9513a..16c15a6890 100644
--- a/tests/input/patternLayout2.properties
+++ b/tests/input/patternLayout2.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append= false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/patternLayout3.properties b/tests/input/patternLayout3.properties
index e9846c79f9..ff94089571 100644
--- a/tests/input/patternLayout3.properties
+++ b/tests/input/patternLayout3.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/patternLayout4.properties b/tests/input/patternLayout4.properties
index 6a2e442146..1ff61081a8 100644
--- a/tests/input/patternLayout4.properties
+++ b/tests/input/patternLayout4.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=%d{DATE} [%t] %-5p %.16c - %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=%d{DATE} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/patternLayout5.properties b/tests/input/patternLayout5.properties
index 1acfaf8320..ed9c98f06d 100644
--- a/tests/input/patternLayout5.properties
+++ b/tests/input/patternLayout5.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/patternLayout6.properties b/tests/input/patternLayout6.properties
index 2eb6dabc4d..f49d837ee1 100644
--- a/tests/input/patternLayout6.properties
+++ b/tests/input/patternLayout6.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p %.16c - %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=%d{ABSOLUTE} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/patternLayout7.properties b/tests/input/patternLayout7.properties
index 921d5520b8..65d412d1c0 100644
--- a/tests/input/patternLayout7.properties
+++ b/tests/input/patternLayout7.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
log4j.appender.testAppender.layout.ConversionPattern=%d{HH:mm:ss,SSS} [%t] %-5p %.16c - %m%n
diff --git a/tests/input/patternLayout8.properties b/tests/input/patternLayout8.properties
index bf56fab098..e271bd31f7 100644
--- a/tests/input/patternLayout8.properties
+++ b/tests/input/patternLayout8.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=%r [%t] %-5p %.16c - %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=%r [%t] %-5p %.16c - %m%n
diff --git a/tests/input/patternLayout9.properties b/tests/input/patternLayout9.properties
index aa468785f5..4323f1f2a7 100644
--- a/tests/input/patternLayout9.properties
+++ b/tests/input/patternLayout9.properties
@@ -15,7 +15,7 @@
log4j.rootCategory=TRACE, testAppender
log4j.appender.testAppender=org.apache.log4j.FileAppender
-log4j.appender.testAppender.File=output/temp
+log4j.appender.testAppender.File=output/temp.PatternLayoutTestCase
log4j.appender.testAppender.Append=false
log4j.appender.testAppender.layout=org.apache.log4j.PatternLayout
-log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %.16c : %m%n
\ No newline at end of file
+log4j.appender.testAppender.layout.ConversionPattern=[%t] %-5p %.16c : %m%n
diff --git a/tests/input/xml/DOMTest4_A1.xml b/tests/input/xml/DOMTest4_A1.xml
index 9b945e60aa..d63c853714 100644
--- a/tests/input/xml/DOMTest4_A1.xml
+++ b/tests/input/xml/DOMTest4_A1.xml
@@ -16,7 +16,7 @@
-->
-
+
diff --git a/tests/input/xml/DOMTest4_A2.xml b/tests/input/xml/DOMTest4_A2.xml
index e5e26c0248..6c9c932162 100644
--- a/tests/input/xml/DOMTest4_A2.xml
+++ b/tests/input/xml/DOMTest4_A2.xml
@@ -15,7 +15,7 @@
limitations under the License.
-->
-
+
diff --git a/tests/input/xml/DOMTestCase1.xml b/tests/input/xml/DOMTestCase1.xml
index fcd1a7ca59..e2c00f1639 100644
--- a/tests/input/xml/DOMTestCase1.xml
+++ b/tests/input/xml/DOMTestCase1.xml
@@ -20,7 +20,7 @@
-
+
@@ -29,7 +29,7 @@
-
+
diff --git a/tests/input/xml/customLevel1.xml b/tests/input/xml/customLevel1.xml
index 5c798d2229..752840bbd9 100644
--- a/tests/input/xml/customLevel1.xml
+++ b/tests/input/xml/customLevel1.xml
@@ -21,7 +21,7 @@
-
+
@@ -32,4 +32,4 @@
-
\ No newline at end of file
+
diff --git a/tests/input/xml/customLevel2.xml b/tests/input/xml/customLevel2.xml
index fdc0be1274..361c4520d7 100644
--- a/tests/input/xml/customLevel2.xml
+++ b/tests/input/xml/customLevel2.xml
@@ -22,7 +22,7 @@
-
+
@@ -39,4 +39,4 @@
-
\ No newline at end of file
+
diff --git a/tests/input/xml/customLevel3.xml b/tests/input/xml/customLevel3.xml
index 8e4b626856..e08fec8f0c 100644
--- a/tests/input/xml/customLevel3.xml
+++ b/tests/input/xml/customLevel3.xml
@@ -22,7 +22,7 @@
-
+
@@ -42,4 +42,4 @@
-
\ No newline at end of file
+
diff --git a/tests/input/xml/customLevel4.xml b/tests/input/xml/customLevel4.xml
index 0ae0b75335..f9cb031d66 100644
--- a/tests/input/xml/customLevel4.xml
+++ b/tests/input/xml/customLevel4.xml
@@ -22,7 +22,7 @@
-
+
@@ -33,4 +33,4 @@
-
\ No newline at end of file
+
diff --git a/tests/input/xml/fallback1.xml b/tests/input/xml/fallback1.xml
index 5eb42c4f61..2590e79a97 100644
--- a/tests/input/xml/fallback1.xml
+++ b/tests/input/xml/fallback1.xml
@@ -35,7 +35,7 @@
-
+
diff --git a/tests/src/java/org/apache/log4j/EnhancedPatternLayoutTestCase.java b/tests/src/java/org/apache/log4j/EnhancedPatternLayoutTestCase.java
index e97c42f737..8e5bb6c367 100644
--- a/tests/src/java/org/apache/log4j/EnhancedPatternLayoutTestCase.java
+++ b/tests/src/java/org/apache/log4j/EnhancedPatternLayoutTestCase.java
@@ -28,6 +28,7 @@
import org.apache.log4j.util.EnhancedLineNumberFilter;
import org.apache.log4j.util.RelativeTimeFilter;
import org.apache.log4j.util.SunReflectFilter;
+import org.apache.log4j.util.TestFile;
import org.apache.log4j.util.Transformer;
import org.apache.log4j.MDCOrderFilter;
import org.apache.log4j.spi.ThrowableInformation;
@@ -40,8 +41,8 @@
public class EnhancedPatternLayoutTestCase extends TestCase {
- static String TEMP = "output/temp";
- static String FILTERED = "output/filtered";
+ static String TEMP = TestFile.temp(EnhancedPatternLayoutTestCase.class);
+ static String FILTERED = TestFile.filtered(EnhancedPatternLayoutTestCase.class);
static String EXCEPTION1 = "java.lang.Exception: Just testing";
static String EXCEPTION2 = "\\s*at .*\\(.*\\)";
static String EXCEPTION3 = "\\s*at .*\\((Native Method|Unknown Source)\\)";
diff --git a/tests/src/java/org/apache/log4j/HierarchyThresholdTestCase.java b/tests/src/java/org/apache/log4j/HierarchyThresholdTestCase.java
index 3e885bde4f..b9d67f8bec 100644
--- a/tests/src/java/org/apache/log4j/HierarchyThresholdTestCase.java
+++ b/tests/src/java/org/apache/log4j/HierarchyThresholdTestCase.java
@@ -22,6 +22,7 @@
import junit.framework.Test;
import org.apache.log4j.util.Compare;
+import org.apache.log4j.util.TestFile;
import org.apache.log4j.xml.XLevel;
/**
@@ -31,7 +32,7 @@
*/
public class HierarchyThresholdTestCase extends TestCase {
- static String TEMP = "output/temp";
+ static String TEMP = TestFile.temp(HierarchyThresholdTestCase.class);
static Logger logger = Logger.getLogger(HierarchyThresholdTestCase.class);
public HierarchyThresholdTestCase(String name) {
diff --git a/tests/src/java/org/apache/log4j/MinimumTestCase.java b/tests/src/java/org/apache/log4j/MinimumTestCase.java
index 50d1503f7b..f2a2085eff 100644
--- a/tests/src/java/org/apache/log4j/MinimumTestCase.java
+++ b/tests/src/java/org/apache/log4j/MinimumTestCase.java
@@ -29,7 +29,7 @@
*/
public class MinimumTestCase extends TestCase {
- static String FILTERED = "output/filtered";
+ static String FILTERED = TestFile.filtered(MinimumTestCase.class);
static String EXCEPTION1 = "java.lang.Exception: Just testing";
static String EXCEPTION2 = "\\s*at .*\\(.*\\)";
diff --git a/tests/src/java/org/apache/log4j/PatternLayoutTestCase.java b/tests/src/java/org/apache/log4j/PatternLayoutTestCase.java
index 9578523097..1421a7943e 100644
--- a/tests/src/java/org/apache/log4j/PatternLayoutTestCase.java
+++ b/tests/src/java/org/apache/log4j/PatternLayoutTestCase.java
@@ -28,12 +28,13 @@
import org.apache.log4j.util.LineNumberFilter;
import org.apache.log4j.util.RelativeTimeFilter;
import org.apache.log4j.util.SunReflectFilter;
+import org.apache.log4j.util.TestFile;
import org.apache.log4j.util.Transformer;
public class PatternLayoutTestCase extends TestCase {
- static String TEMP = "output/temp";
- static String FILTERED = "output/filtered";
+ static String TEMP = TestFile.temp(PatternLayoutTestCase.class);
+ static String FILTERED = TestFile.filtered(PatternLayoutTestCase.class);
Logger root;
Logger logger;
diff --git a/tests/src/java/org/apache/log4j/customLogger/XLoggerTestCase.java b/tests/src/java/org/apache/log4j/customLogger/XLoggerTestCase.java
index ac05b765ca..eb26fdbeac 100644
--- a/tests/src/java/org/apache/log4j/customLogger/XLoggerTestCase.java
+++ b/tests/src/java/org/apache/log4j/customLogger/XLoggerTestCase.java
@@ -31,7 +31,7 @@
*/
public class XLoggerTestCase extends TestCase {
- static String FILTERED = "output/filtered";
+ static String FILTERED = TestFile.filtered(XLoggerTestCase.class);
static XLogger logger = (XLogger) XLogger.getLogger(XLoggerTestCase.class);
public XLoggerTestCase(String name){
diff --git a/tests/src/java/org/apache/log4j/util/TestFile.java b/tests/src/java/org/apache/log4j/util/TestFile.java
new file mode 100644
index 0000000000..e7dc29a8be
--- /dev/null
+++ b/tests/src/java/org/apache/log4j/util/TestFile.java
@@ -0,0 +1,17 @@
+package org.apache.log4j.util;
+
+public class TestFile {
+ public static String byClassName(String baseName, Class testClass) {
+ String className = testClass.getName();
+ className = className.substring(className.lastIndexOf(".")+1);
+ return baseName + "." + className;
+ }
+
+ public static String temp(Class testClass) {
+ return byClassName("output/temp", testClass);
+ }
+
+ public static String filtered(Class testClass) {
+ return byClassName("output/filtered", testClass);
+ }
+}
diff --git a/tests/src/java/org/apache/log4j/varia/ErrorHandlerTestCase.java b/tests/src/java/org/apache/log4j/varia/ErrorHandlerTestCase.java
index b0001f8730..8283433898 100644
--- a/tests/src/java/org/apache/log4j/varia/ErrorHandlerTestCase.java
+++ b/tests/src/java/org/apache/log4j/varia/ErrorHandlerTestCase.java
@@ -23,6 +23,7 @@
import org.apache.log4j.Logger;
import org.apache.log4j.spi.ErrorHandler;
import org.apache.log4j.util.Filter;
+import org.apache.log4j.util.TestFile;
import org.apache.log4j.util.Transformer;
import org.apache.log4j.util.Compare;
import org.apache.log4j.util.JunitTestRunnerFilter;
@@ -34,8 +35,8 @@
public class ErrorHandlerTestCase extends TestCase {
- static String TEMP = "output/temp";
- static String FILTERED = "output/filtered";
+ static String TEMP = TestFile.temp(ErrorHandlerTestCase.class);
+ static String FILTERED = TestFile.filtered(ErrorHandlerTestCase.class);
static String EXCEPTION1 = "java.lang.Exception: Just testing";
diff --git a/tests/src/java/org/apache/log4j/xml/CustomLevelTestCase.java b/tests/src/java/org/apache/log4j/xml/CustomLevelTestCase.java
index 52c366ae94..0569e1ca45 100644
--- a/tests/src/java/org/apache/log4j/xml/CustomLevelTestCase.java
+++ b/tests/src/java/org/apache/log4j/xml/CustomLevelTestCase.java
@@ -22,10 +22,11 @@
import junit.framework.TestSuite;
import org.apache.log4j.Logger;
import org.apache.log4j.util.Compare;
+import org.apache.log4j.util.TestFile;
public class CustomLevelTestCase extends TestCase {
- static String TEMP = "output/temp";
+ static String TEMP = TestFile.temp(CustomLevelTestCase.class);
Logger root;
Logger logger;
diff --git a/tests/src/java/org/apache/log4j/xml/DOMTestCase.java b/tests/src/java/org/apache/log4j/xml/DOMTestCase.java
index e664c43996..8b6dd7b2e2 100644
--- a/tests/src/java/org/apache/log4j/xml/DOMTestCase.java
+++ b/tests/src/java/org/apache/log4j/xml/DOMTestCase.java
@@ -37,6 +37,7 @@
import org.apache.log4j.util.JunitTestRunnerFilter;
import org.apache.log4j.util.LineNumberFilter;
import org.apache.log4j.util.SunReflectFilter;
+import org.apache.log4j.util.TestFile;
import org.apache.log4j.util.Transformer;
import java.io.File;
@@ -50,10 +51,10 @@
public class DOMTestCase extends TestCase {
- static String TEMP_A1 = "output/temp.A1";
- static String TEMP_A2 = "output/temp.A2";
- static String FILTERED_A1 = "output/filtered.A1";
- static String FILTERED_A2 = "output/filtered.A2";
+ static String TEMP_A1 = TestFile.byClassName("output/temp.A1", DOMTestCase.class);
+ static String TEMP_A2 = TestFile.byClassName("output/temp.A2", DOMTestCase.class);
+ static String FILTERED_A1 = TestFile.byClassName("output/filtered.A1", DOMTestCase.class);
+ static String FILTERED_A2 = TestFile.byClassName("output/filtered.A2", DOMTestCase.class);
static String EXCEPTION1 = "java.lang.Exception: Just testing";
@@ -332,8 +333,8 @@ public void testConfigureAndWatch() throws Exception {
public void testOverrideSubst() {
DOMConfigurator configurator = new DOMConfigurator() {
protected String subst(final String value) {
- if ("output/temp.A1".equals(value)) {
- return "output/subst-test.A1";
+ if ("output/temp.A1.DOMTestCase".equals(value)) {
+ return "output/subst-test.A1.DOMTestCase";
}
return value;
}
@@ -341,7 +342,7 @@ protected String subst(final String value) {
configurator.doConfigure("input/xml/DOMTestCase1.xml", LogManager.getLoggerRepository());
FileAppender a1 = (FileAppender) Logger.getRootLogger().getAppender("A1");
String file = a1.getFile();
- assertEquals("output/subst-test.A1", file);
+ assertEquals("output/subst-test.A1.DOMTestCase", file);
}
/**
diff --git a/tests/src/java/org/apache/log4j/xml/XMLLayoutTestCase.java b/tests/src/java/org/apache/log4j/xml/XMLLayoutTestCase.java
index e76acd6b19..78b8c8a2f0 100644
--- a/tests/src/java/org/apache/log4j/xml/XMLLayoutTestCase.java
+++ b/tests/src/java/org/apache/log4j/xml/XMLLayoutTestCase.java
@@ -29,6 +29,7 @@
import org.apache.log4j.util.JunitTestRunnerFilter;
import org.apache.log4j.util.LineNumberFilter;
import org.apache.log4j.util.SunReflectFilter;
+import org.apache.log4j.util.TestFile;
import org.apache.log4j.util.Transformer;
import org.apache.log4j.util.XMLLineAttributeFilter;
import org.apache.log4j.util.XMLTimestampFilter;
@@ -37,8 +38,8 @@
public class XMLLayoutTestCase extends TestCase {
- static String TEMP = "output/temp";
- static String FILTERED = "output/filtered";
+ static String TEMP = TestFile.temp(XMLLayoutTestCase.class);
+ static String FILTERED = TestFile.filtered(XMLLayoutTestCase.class);
Logger root;
Logger logger;
From cd146da996ef48b55625fd9dd54c62d10adfff01 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 10:51:07 +0100
Subject: [PATCH 15/26] docs: add missing maven site template resources
---
src/site/resources/css/maven-theme.css | 157 ++++++++++++++++++
src/site/resources/images/collapsed.gif | Bin 0 -> 53 bytes
src/site/resources/images/expanded.gif | Bin 0 -> 52 bytes
src/site/resources/images/external.png | Bin 0 -> 230 bytes
src/site/resources/images/icon_error_sml.gif | Bin 0 -> 1010 bytes
src/site/resources/images/icon_info_sml.gif | Bin 0 -> 606 bytes
.../resources/images/icon_success_sml.gif | Bin 0 -> 990 bytes
.../resources/images/icon_warning_sml.gif | Bin 0 -> 576 bytes
src/site/resources/images/newwindow.png | Bin 0 -> 220 bytes
9 files changed, 157 insertions(+)
create mode 100644 src/site/resources/css/maven-theme.css
create mode 100644 src/site/resources/images/collapsed.gif
create mode 100644 src/site/resources/images/expanded.gif
create mode 100644 src/site/resources/images/external.png
create mode 100644 src/site/resources/images/icon_error_sml.gif
create mode 100644 src/site/resources/images/icon_info_sml.gif
create mode 100644 src/site/resources/images/icon_success_sml.gif
create mode 100644 src/site/resources/images/icon_warning_sml.gif
create mode 100644 src/site/resources/images/newwindow.png
diff --git a/src/site/resources/css/maven-theme.css b/src/site/resources/css/maven-theme.css
new file mode 100644
index 0000000000..0148466593
--- /dev/null
+++ b/src/site/resources/css/maven-theme.css
@@ -0,0 +1,157 @@
+/*
+ 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.
+
+*/
+body {
+ padding: 0px 0px 10px 0px;
+}
+body, td, select, input, li{
+ font-family: Verdana, Helvetica, Arial, sans-serif;
+ font-size: 13px;
+}
+code{
+ font-family: Courier, monospace;
+ font-size: 13px;
+}
+a {
+ text-decoration: none;
+}
+a:link {
+ color:#36a;
+}
+a:visited {
+ color:#47a;
+}
+a:active, a:hover {
+ color:#69c;
+}
+#legend li.externalLink {
+ background: url(../images/external.png) left top no-repeat;
+ padding-left: 18px;
+}
+a.externalLink, a.externalLink:link, a.externalLink:visited, a.externalLink:active, a.externalLink:hover {
+ background: url(../images/external.png) right center no-repeat;
+ padding-right: 18px;
+}
+#legend li.newWindow {
+ background: url(../images/newwindow.png) left top no-repeat;
+ padding-left: 18px;
+}
+a.newWindow, a.newWindow:link, a.newWindow:visited, a.newWindow:active, a.newWindow:hover {
+ background: url(../images/newwindow.png) right center no-repeat;
+ padding-right: 18px;
+}
+h2 {
+ padding: 4px 4px 4px 6px;
+ border: 1px solid #999;
+ color: #900;
+ background-color: #ddd;
+ font-weight:900;
+ font-size: x-large;
+}
+h3 {
+ padding: 4px 4px 4px 6px;
+ border: 1px solid #aaa;
+ color: #900;
+ background-color: #eee;
+ font-weight: normal;
+ font-size: large;
+}
+h4 {
+ padding: 4px 4px 4px 6px;
+ border: 1px solid #bbb;
+ color: #900;
+ background-color: #fff;
+ font-weight: normal;
+ font-size: large;
+}
+h5 {
+ padding: 4px 4px 4px 6px;
+ color: #900;
+ font-size: normal;
+}
+p {
+ line-height: 1.3em;
+ font-size: small;
+}
+#breadcrumbs {
+ border-top: 1px solid #aaa;
+ border-bottom: 1px solid #aaa;
+ background-color: #ccc;
+}
+#leftColumn {
+ margin: 10px 0 0 5px;
+ border: 1px solid #999;
+ background-color: #eee;
+}
+#navcolumn h5 {
+ font-size: smaller;
+ border-bottom: 1px solid #aaaaaa;
+ padding-top: 2px;
+ color: #000;
+}
+
+table.bodyTable th {
+ color: white;
+ background-color: #bbb;
+ text-align: left;
+ font-weight: bold;
+}
+
+table.bodyTable th, table.bodyTable td {
+ font-size: 1em;
+}
+
+table.bodyTable tr.a {
+ background-color: #ddd;
+}
+
+table.bodyTable tr.b {
+ background-color: #eee;
+}
+
+.source {
+ border: 1px solid #999;
+}
+dl {
+ padding: 4px 4px 4px 6px;
+ border: 1px solid #aaa;
+ background-color: #ffc;
+}
+dt {
+ color: #900;
+}
+#organizationLogo img, #projectLogo img, #projectLogo span{
+ margin: 8px;
+}
+#banner {
+ border-bottom: 1px solid #fff;
+}
+.errormark, .warningmark, .donemark, .infomark {
+ background: url(../images/icon_error_sml.gif) no-repeat;
+}
+
+.warningmark {
+ background-image: url(../images/icon_warning_sml.gif);
+}
+
+.donemark {
+ background-image: url(../images/icon_success_sml.gif);
+}
+
+.infomark {
+ background-image: url(../images/icon_info_sml.gif);
+}
diff --git a/src/site/resources/images/collapsed.gif b/src/site/resources/images/collapsed.gif
new file mode 100644
index 0000000000000000000000000000000000000000..6e710840640c1bfd9dd76ce7fef56f1004092508
GIT binary patch
literal 53
ycmZ?wbhEHbWM^P!XkdT>#h)yUTnvm1Iv_qshJlI4r7uBZ*YkPFU8d4p4Aua}2?(?R
literal 0
HcmV?d00001
diff --git a/src/site/resources/images/expanded.gif b/src/site/resources/images/expanded.gif
new file mode 100644
index 0000000000000000000000000000000000000000..0fef3d89e0df1f8bc49a0cd827f2607c7d7fd2f0
GIT binary patch
literal 52
xcmZ?wbhEHbWM^P!XkdT>#h)yUTnvm1Iv_qshJlH@g}+fUi&t{amUB!D)&R0C2fzRT
literal 0
HcmV?d00001
diff --git a/src/site/resources/images/external.png b/src/site/resources/images/external.png
new file mode 100644
index 0000000000000000000000000000000000000000..3f999fc88b360074e41f38c3b4bc06ccb3bb7cf8
GIT binary patch
literal 230
zcmeAS@N?(olHy`uVBq!ia0vp^+(699!3-oX?^2ToQY`6?zK#qG>ra@ocD)4hB}-f*
zN`mv#O3D+9QW+dm@{>{(JaZG%Q-e|yQz{EjrrH1%@dWsUxR#cd{{R1fCIbVIy!atN
z8e~{WkY6y6%iy53@(Yk3;OXKRQgJIOfsI*BO@UFsfhWLBc>*(#PB?Jn2*(o!76E4F
z2oaVU3``tH+Kgs0GI5+@Tg}d)z%jd%F@?{8!SRZ5b1yT80-FZIMn)zc2Ca66y`pzY
R*nwsJMCn#OVEqF*oew~oaAu*+mN;-=y?VHT3tIe$XQqrDo-uB_a
z!$aaK`z6))OKGn34?nwc^SuifkIL#EmDgV_qjg-#8v*0u4q4%1moUw{LZ54UeCgzNF^jX`uv-XK+9g@yFrG9?@
z!9&5&Tgk*j(b!GF&{N4I-Owl3GNQ;Kslp@APSw&&&ux9d>WxL~{EYoKm2KHvv3+ax
zZUYB?Ae*8JnchZheXeEaa>@87?_fB*jV>(`erUx0B6j@wa!KnN)QWMO1rn9HC8
zQU}Tt3>@bftT|;oHYhlHH8T8tc{qL2LBC1&wnQeg^-S05<#H=J%;q~&KX!$OXH$lP
zifQJ#9>L8|xhAVRHT-xPa*}7JK>(A*!AmL!CQC~j>707p+C5b#ib-SZ5@wfn#-0y8
zor_pb3M^%mkXhlduwjw4dk@RWhYZ<*tSUAV9x3eYyi#^d39lH{872xT#>g14FgCZb
z+Lvv}DClhGVU*`8y(Qe}(9I>Lw<6->0~Q`zX3oMH2272dBARI`0wDzxS_G8b_H+a`
TZ#n2*^y*Bf^Krq04Gh)*dSnrT
literal 0
HcmV?d00001
diff --git a/src/site/resources/images/icon_info_sml.gif b/src/site/resources/images/icon_info_sml.gif
new file mode 100644
index 0000000000000000000000000000000000000000..c6cb9ad7ce438a798426703e86a7ffc197d51dbb
GIT binary patch
literal 606
zcmZ?wbhEHb!Rj)7jHhhdgsOUdoQoueZi?7
z>>gViTe&E#V48n=mrru5S3;v}WQB8hiDz7$TU2Fg8RZkU)J)l4H+4sO@7jjxJ4?G(<~7c1nYFul=C0P+d#d`@bj{yi
z-npcE!T#Qb2PP~z)H;3B%r(bntUlH>Y2~CvyV|C%UbyM>vTf&9?!2&e&!siHFV0_c
zVB`KP8}?n^dg$7Yqc`@PxOMQ%-NWbZ9Xfk=)1K2OFF!hV;r{6>kIr6ua^~ve%eS9j
zy7lbD`I|4_et!J??bq+WzI^-n`RfmdkOIfh!pgqYwSCK`t~@$#!^!1aj_y2mzyI{@?vuB79>2N$==JkApPs$`_~ygc*YCf)diVLp
z{pXKfy#M&+`?nvze*gIk#Q*;N0|qHLXbBUFKUo+V7>XElKuSSz!oa?}p{S|3rL`#`
zEj=M8CWV#D$GthOu#hRgfH^NPHz`Z6or!6tudIJkhF|)EqL_SUmH;#E=*;vU)ut4d
z*}1MJ+3|6yK5|W*0YQlwY}}E_93D;*P3)($(!#iHyj&dYc$?gAB*f@)n?~7Mn)5Ze
zB*b!gs&gB@F*e|Da`5(ac688Lp~TGAEh5PBlHo`4aV}w%hy?;49h(#+>`NXTD0Bjy;4ci{C-1K14rU#4Xoa9{m6qopA9n0cn|!>ecYkij
zwyX=!4*mH3EoqLqSGiVbyFqxD(bS8XSDu{6U1jZO70Ic@{~t&7=B^
zBD)NOoAkU&Gy^LQJ5PtV?u{&65}4ZUmfYbweP{LTy^YnAGv=AGa7*6wj}%~b0?7r5!@qH7P%p1*$L
z@#{ODxoUwG+WsY)zWExj-aqxpQS(e!bx&6L`u)?tfB$~}{{8*?cVO&*V`-G2NeC$Z
zWMO1r=w{FXnGVVm3>>=|#5rX=HY{-DP?VFNPL-%m%>B+*~5-k^-+4*MLFr;tQ0}^rlS-^!^Q`Mx1hrB$jwn&hk~Xk=#Nl+_9Nu|Y$D
G!5RQ;-6)O#
literal 0
HcmV?d00001
diff --git a/src/site/resources/images/icon_warning_sml.gif b/src/site/resources/images/icon_warning_sml.gif
new file mode 100644
index 0000000000000000000000000000000000000000..873bbb52cb9768103c27fbb9a9bac16ac615fce5
GIT binary patch
literal 576
zcmZ?wbhEHbB!Sy%bj7w
z8LP{2I!WYbmF&-Ixi?j6tD|K1XR2M#l>Aw*aXL%wXS3nYW}{zi=4WzsU5r%E6qx+#
za{AThd85YVOsT`KDUrWsBtGknIa3>Sy(4;AS@f^Dxt>-=XPXm#FD(1Lr2hBv=9?3X
zZS^!XrNw@)>eiN((2|w-y>{aB1+99DGMA?}+UTggT+(Z*rf8+5x~aWVOGcurtl;&U
zIa)H3IvwvQjJBn`YHj9iKlB7`)(M#!e{yWMO1rC}Yq8NrU2qfqia6SyOXMYa1sM
zM_a34eqyRfcQbQJY;^IYGTuzaxglKLqNQEA}OiQec+sQ#rUUjLqg_MpsPmY43
zsgmVV8EHK$eV-B~6*UcAW2+w%1e4o&9#aAczLGF}PmMg|6J0Ey4q
A)Bpeg
literal 0
HcmV?d00001
diff --git a/src/site/resources/images/newwindow.png b/src/site/resources/images/newwindow.png
new file mode 100644
index 0000000000000000000000000000000000000000..6287f72bd08a870908e7361d98c35ee0d6dcbc82
GIT binary patch
literal 220
zcmeAS@N?(olHy`uVBq!ia0vp^+(699!3-oX?^2ToQY`6?zK#qG>ra@ocD)4hB}-f*
zN`mv#O3D+9QW+dm@{>{(JaZG%Q-e|yQz{EjrrH1%@dWsUxR#cd&SYTt4+aeuCvSob
zD+%%o1`04ZXs!GLj7%Iec?BF2%&y2ZFfeUwWbk2P5nvW+xWT~4#-PT{uyM;F);OSv44$rjF6*2U
FngH~|K)3(^
literal 0
HcmV?d00001
From 200e23fa7d32233b98e726ab5786d6e335043a05 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 12:02:19 +0100
Subject: [PATCH 16/26] docs: fix download page for 1.2.17
Hand-picked changes from trunk
---
src/site/apt/download.apt | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/site/apt/download.apt b/src/site/apt/download.apt
index 7a4aa54b97..5e41d1e19c 100644
--- a/src/site/apt/download.apt
+++ b/src/site/apt/download.apt
@@ -30,9 +30,9 @@ Download Apache log4j 1.2.17
*-------------------------+---------+----------+-----------+
| | Mirrors | Checksum | Signature |
*-------------------------+---------+----------+-----------+
-| Apache log4j 1.2.17 (tar.gz) | {{{http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.17/apache-log4j-1.2.17.tar.gz} apache-log4j-1.2.17.tar.gz}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/apache-log4j-1.2.17.tar.gz.md5} apache-log4j-1.2.17.tar.gz.md5}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/apache-log4j-1.2.17.tar.gz.asc} apache-log4j-1.2.17.tar.gz.asc}} |
+| Apache log4j 1.2.17 (tar.gz) | {{{http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.17/log4j-1.2.17.tar.gz} log4j-1.2.17.tar.gz}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/log4j-1.2.17.tar.gz.md5} log4j-1.2.17.tar.gz.md5}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/log4j-1.2.17.tar.gz.asc} log4j-1.2.17.tar.gz.asc}} |
*-------------------------+---------+----------+-----------+
-| Apache log4j 1.2.17 (zip) | {{{http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.17/apache-log4j-1.2.17.zip} apache-log4j-1.2.17.zip}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/apache-log4j-1.2.17.zip.md5} apache-log4j-1.2.17.zip.md5}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/apache-log4j-1.2.17.zip.asc} apache-log4j-1.2.17.zip.asc}} |
+| Apache log4j 1.2.17 (zip) | {{{http://www.apache.org/dyn/closer.cgi/logging/log4j/1.2.17/log4j-1.2.17.zip} log4j-1.2.17.zip}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/log4j-1.2.17.zip.md5} log4j-1.2.17.zip.md5}} | {{{http://www.apache.org/dist/logging/log4j/1.2.17/log4j-1.2.17.zip.asc} log4j-1.2.17.zip.asc}} |
*-------------------------+---------+----------+-----------+
It is essential that you verify the integrity of the downloaded files using the PGP or MD5 signatures.
@@ -48,7 +48,7 @@ Download Apache log4j 1.2.17
% gpg --verify log4j-1.2.17.tar.gz.asc
---
- Apache log4j 1.2.17 is signed by Curt Arnold 70C9C3DO
+ Apache log4j 1.2.17 is signed by Christian Grobmeier 42196CA8
Alternatively, you can verify the MD5 signature on the files. A unix program called md5 or md5sum is included
in many unix distributions.
From 45901b89102bcf01e9c1d6f7448a8aef92ff244f Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 12:03:21 +0100
Subject: [PATCH 17/26] docs: fix some broken site content
* Remove outdated roadmap page
* Update navigation to link to renamed mailing lists page
* Remove link to non-existent wiki
---
src/site/apt/roadmap.apt | 22 ----------------------
src/site/site.xml | 4 +---
2 files changed, 1 insertion(+), 25 deletions(-)
delete mode 100644 src/site/apt/roadmap.apt
diff --git a/src/site/apt/roadmap.apt b/src/site/apt/roadmap.apt
deleted file mode 100644
index 7bb284f722..0000000000
--- a/src/site/apt/roadmap.apt
+++ /dev/null
@@ -1,22 +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.
-
-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.
-
- The next major version with is {{{http://logging.apache.org/log4j/2.0/index.html}Apache log4j 2}}
-
diff --git a/src/site/site.xml b/src/site/site.xml
index e233aef621..351f4f1aa5 100644
--- a/src/site/site.xml
+++ b/src/site/site.xml
@@ -38,11 +38,10 @@
-
@@ -52,7 +51,6 @@
-
From 4a80521cee1d4007efe5df163b8797e7aeea13f0 Mon Sep 17 00:00:00 2001
From: Leo Simons
Date: Sun, 19 Dec 2021 12:04:48 +0100
Subject: [PATCH 18/26] docs: attempt to update build instructions on website
These changes are incomplete because contributors cannot test the
maven release plugin setup.
---
src/site/xdoc/building.xml | 68 ++++++++++++++++++++++++--------------
1 file changed, 44 insertions(+), 24 deletions(-)
diff --git a/src/site/xdoc/building.xml b/src/site/xdoc/building.xml
index f32364592c..5a65ccde97 100644
--- a/src/site/xdoc/building.xml
+++ b/src/site/xdoc/building.xml
@@ -43,22 +43,13 @@ $> sudo apt-get install openjdk-6-jdk
-
Install Maven 2, Subversion, mingw and xemacs21, openssh-server:
+
Install Maven 3, Subversion, mingw and xemacs21, openssh-server:
Instructions not tested for Log4J 1.2.18. The switch to Maven 3 and git probably mean changes. Make sure to check the INSTALL file at https://github.com/apache/log4j/blob/trunk/INSTALL
-
Before you build, please make sure you have a nonblocking editor set as SVN editor. Like:
+
Before you build, please make sure you have a nonblocking editor set as GIT editor. Like:
@@ -122,16 +115,17 @@ $ export SVN_EDITOR=xemacs
to the date the release candidate is created.
Please update doap_log4j.rdf to reflect the correct version. Use the same release date as in changes.
-
The release artifacts were originally built by:
+
+
Untested: the release artifacts might be buildable with:
-$> svn co http://svn.apache.org/repos/asf/logging/log4j/trunk log4j
+$> git clone git@github.com:apache/log4j.git
$> cd log4j
$> mvn package release:prepare
$> mvn release:perform
-
Note: you'll be ask for a SVN tagname. Please use the following pattern: v1.2.17-RC1.
+
Note: you'll be ask for a git tagname. Please use the following pattern: v1.2.17-RC1.
Attention: this is an non-interactive build. In some cases it is necessary
@@ -140,13 +134,35 @@ to the release plugin commands. This is surely not safe because your password
can be seen clearly.
-
The release artifacts can be rebuilt by:
+
Outdated: The release artifacts can be rebuilt by:
ATTENTION: if your asc files are not created, you need to create them manually. F. e.
+
+
+ #!/bin/sh
+
+ if [ -n "$1" ]
+ then
+ root_dir=$1
+ else
+ root_dir=.
+ fi
+
+ for file in $root_dir/*.jar $root_dir/*.pom $root_dir/*.zip $root_dir/*.tar.gz; do
+ echo §file
+ gpg --armor --output $file.asc --detach-sig $file
+ echo "GPG verification output"
+ gpg --verify $file.asc $file
+ echo "~~~~~~~~~~~~~~~~~~~~~~~"
+ done
+
+
+
+
Outdated: building site and artifacts from a tag:
$ svn co https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_16
@@ -173,7 +189,7 @@ The staged version can be published to the main public site by executing
"svn update" in /www/logging.apache.org/log4j/1.2 on people.apache.org.
-
If a vote has failed
+
Outdated: If a vote has failed
Send a "cancel" note to the mailinglist (usually resend the vote mail with [CANCEL] in subject
@@ -181,7 +197,7 @@ The staged version can be published to the main public site by executing
-
If a vote has passed
+
Outdated: If a vote has passed
If a RC has passed the vote, these steps are necessary:
@@ -190,8 +206,12 @@ The staged version can be published to the main public site by executing
$> svn mv https://svn.apache.org/repos/asf/logging/log4j/tags/log4j-1.2.17-RC1 https://svn.apache.org/repos/asf/logging/log4j/tags/log4j-1.2.17
-
Change the pom.xml version to the prior version number.
+
mv the tar.gz and the zip files to p.a.o dist
+
Create a jar file containing your artifacts: jar cf log4j-bundle-1217.jar *
+
Upload the bundle to repository.apache.org and follow the instructions to get the artifacts from staging to proper
+
+
Send an announcement to: announce@apache.org, general@logging.apache.org, log4j-dev@logging.apache.org, log4j-user@logging.apache.org