From 170b63c39bc5625d3d076dc2e7b7b526a509604a77a2bd39e4bf9890aea8b6e6 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sat, 12 Oct 2024 18:47:25 +0000 Subject: [PATCH 1/3] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-logging?expand=0&rev=61 --- .gitattributes | 23 + .gitignore | 1 + apache-commons-logging.changes | 295 +++++++++ apache-commons-logging.keyring | 109 +++ apache-commons-logging.spec | 104 +++ build.properties | 59 ++ build.xml | 811 +++++++++++++++++++++++ commons-logging-1.3.3-dependencies.patch | 575 ++++++++++++++++ commons-logging-1.3.3-src.tar.gz | 3 + commons-logging-1.3.3-src.tar.gz.asc | 11 + commons-logging-1.3.4-src.tar.gz | 3 + commons-logging-1.3.4-src.tar.gz.asc | 11 + commons-logging-api-1.1.pom | 165 +++++ 13 files changed, 2170 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 apache-commons-logging.changes create mode 100644 apache-commons-logging.keyring create mode 100644 apache-commons-logging.spec create mode 100644 build.properties create mode 100644 build.xml create mode 100644 commons-logging-1.3.3-dependencies.patch create mode 100644 commons-logging-1.3.3-src.tar.gz create mode 100644 commons-logging-1.3.3-src.tar.gz.asc create mode 100644 commons-logging-1.3.4-src.tar.gz create mode 100644 commons-logging-1.3.4-src.tar.gz.asc create mode 100644 commons-logging-api-1.1.pom diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/apache-commons-logging.changes b/apache-commons-logging.changes new file mode 100644 index 0000000..f81480c --- /dev/null +++ b/apache-commons-logging.changes @@ -0,0 +1,295 @@ +------------------------------------------------------------------- +Fri Aug 9 08:05:34 UTC 2024 - Gus Kenion + +- Upgrade to 1.3.3 + * Bug Fixes: + + * LOGGING-193: Update Log4j 2 OSGi imports #268. + + * Fix PMD UnnecessaryFullyQualifiedName in SimpleLog. + + * Fix NullPointerException in SimpleLog#write(Object) on null + input. + + Fix NullPointerException in SimpleLog#write(StringBuffer) on + null input. +- Includes changes from 1.3.2 + * Fixed Bugs + + LOGGING-190: Add OSGi metadata to enable Service Loader + Mediator #234. + + LOGGING-191: Apache commons logging shows 1.4 as latest + release instead of 1.3.1. + + Deprecate + org.apache.commons.logging.LogSource.jdk14IsAvailable. +- Includes changes from 1.3.1 + * New features + + Add Maven property project.build.outputTimestamp for build + reproducibility. + * Fixed Bugs + + Remove references to very old JDK and Commons Logging + versions #201. + + Update from Logj 1 to the Log4j 2 API compatibility layer + #231. + + Allow Servlet 4 in OSGi environment #191. + + Fix generics warnings #213. + + LOGGING-189: Fix Import-Package entry for org.slf4j #188. +- Includes changes from 1.3.0 + * New Features: + + Add support for Log4j API and SLF4J #177. + + Deprecate org.apache.commons.logging.impl.WeakHashtable + without replacement. LOGGING-188: Deprecate and disable + `Jdk13LumberjackLogger` and `Log4JLogger`. LOGGING-173: + + Deprecate and disable `AvalonLogger` and `LogKitLogger`. + + LOGGING-165: Add Automatic-Module-Name Manifest Header for + Java 9 compatibility. + * Fixed Bugs: + + LOGGING-163: BufferedReader is not closed properly. + + LOGGING-177: Remove redundant initializer #46 + + Use a weak reference for the cached class loader #71. + + Add more entries to .gitignore file #25. + + Minor Improvements #34. + + [StepSecurity] ci: Harden GitHub Actions #145. + + LOGGING-185: Replace custom code with `ServiceLoader` call. + + Fix possible NPEs in LogFactoryImpl. + + LOGGING-185: Fix failing tests #180. + + Deprecate LogConfigurationException.cause in favor of + getCause(). + + Fix SpotBugs [ERROR] High: Found reliance on default encoding + in org.apache.commons.logging.LogFactory.initDiagnostics(): + new java.io.PrintStream(OutputStream) + [org.apache.commons.logging.LogFactory] At + LogFactory.java:[line 1205] DM_DEFAULT_ENCODING. + + Fix SpotBugs [ERROR] Medium: Class + org.apache.commons.logging.impl.WeakHashtable defines + non-transient non-serializable instance field queue + [org.apache.commons.logging.impl.WeakHashtable] In + WeakHashtable.java SE_BAD_FIELD. + + Set java.logging as optional module #183. + + Fix SpotBugs [ERROR] Medium: Switch statement found in + org.apache.commons.logging.impl.SimpleLog.log(int, Object, + Throwable) where default case is missing + [org.apache.commons.logging.impl.SimpleLog] At + SimpleLog.java:[lines 505-522] SF_SWITCH_NO_DEFAULT. + + Deprecate + org.apache.commons.logging.impl.Jdk13LumberjackLogger.dummyLevel + without replacement. +- Remove deprecated patch files: + * commons-logging-1.1.3-src-junit.diff + * commons-logging-1.2-sourcetarget.patch + * commons-logging-manifests.patch + * no-tests.patch +- Reinstate ant build (removed upstream) + * add build.xml + * add build.properties +- Remove unnecessary dependencies + * add commons-logging-1.3.3-dependencies.patch +- Add upstream dev's public key to apache-commons-logging.keyring + +------------------------------------------------------------------- +Tue Feb 20 10:19:08 UTC 2024 - Dominique Leuenberger + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN. + +------------------------------------------------------------------- +Tue Feb 22 19:04:25 UTC 2022 - Fridrich Strba + +- Do not build against the log4j12 packages, use the new reload4j + +------------------------------------------------------------------- +Wed Jul 28 07:28:43 UTC 2021 - Fridrich Strba + +- Disable tests everywhere, not only for arm6 + +------------------------------------------------------------------- +Wed Mar 24 09:22:40 UTC 2021 - Fridrich Strba + +- Added patch + * no-tests.patch + + ignore failing tests for arm6 + +------------------------------------------------------------------- +Tue Oct 1 08:45:20 UTC 2019 - Fridrich Strba + +- Build against the new compatibility log4j12-mini package + +------------------------------------------------------------------- +Mon Mar 25 17:45:27 UTC 2019 - Fridrich Strba + +- Remove pom parent, since we don't use it when not building with + maven +- Use the pom.xml distributed with the package instead of + downloading the same file as a separate source + +------------------------------------------------------------------- +Wed Feb 6 06:47:05 UTC 2019 - Fridrich Strba + +- Build against glassfish-servlet-api + +------------------------------------------------------------------- +Mon Jan 28 12:43:50 UTC 2019 - Fridrich Strba + +- Added patch: + * commons-logging-manifests.patch + + Different Bundle-SymbolicName for different jars + +------------------------------------------------------------------- +Fri Oct 19 20:35:40 UTC 2018 - Fridrich Strba + +- Cleanup of maven pom files installation + +------------------------------------------------------------------- +Tue May 15 10:56:40 UTC 2018 - fstrba@suse.com + +- Modified patch: + * commons-logging-1.2-sourcetarget.patch + + Build with source and target 8 to prepare for a possible + removal of 1.6 compatibility + +------------------------------------------------------------------- +Thu Sep 7 12:07:36 UTC 2017 - fstrba@suse.com + +- Added patch: + * commons-logging-1.2-sourcetarget.patch + - set java source and target versions to 1.6 in order to allow + build with jdk9 + +------------------------------------------------------------------- +Fri May 19 11:03:15 UTC 2017 - tchvatal@suse.com + +- Remove bootstrap conditional + +------------------------------------------------------------------- +Fri May 19 10:51:10 UTC 2017 - pcervinka@suse.com + +- New build dependency: javapackages-local +- Fixed requires + +------------------------------------------------------------------- +Sun Jan 24 13:55:36 UTC 2016 - p.drouand@gmail.com + +- Update to version 1.2 + see http://commons.apache.org/proper/commons-logging/changes-report.html + or RELEASE-NOTES.txt for details + +------------------------------------------------------------------- +Wed Mar 25 09:20:20 UTC 2015 - tchvatal@suse.com + +- Drop maven conditionals that were never triggered. + +------------------------------------------------------------------- +Wed Mar 25 09:16:56 UTC 2015 - tchvatal@suse.com + +- Drop gpg offline and rely on service + +------------------------------------------------------------------- +Wed Mar 18 09:46:00 UTC 2015 - tchvatal@suse.com + +- Fix build with new javapackages-tools + +------------------------------------------------------------------- +Wed Mar 4 10:31:13 UTC 2015 - tchvatal@suse.com + +- Use log4j-mini to hopefully avoid build-cycle + +------------------------------------------------------------------- +Fri Feb 20 15:14:30 UTC 2015 - dmacvicar@suse.de + +- add the log4j adapter to commons-logging-adapters + (bnc#918852) + +------------------------------------------------------------------- +Tue Aug 12 11:10:06 UTC 2014 - lnussel@suse.de + +- add bcond java_bootstrap to build without unit tests + (commons-logging-1.1.3-src-junit.diff) + +------------------------------------------------------------------- +Fri Jun 27 13:22:19 UTC 2014 - tchvatal@suse.com + +- Provides obsoletes to be versioned + +------------------------------------------------------------------- +Mon Sep 9 11:04:11 UTC 2013 - tchvatal@suse.com + +- Move from jpackage-utils to javapackage-tools + +------------------------------------------------------------------- +Tue Aug 27 08:51:35 UTC 2013 - mvyskocil@suse.com + +- update to 1.1.3 (bugfix release) + see http://commons.apache.org/proper/commons-logging/changes-report.html + or RELEASE-NOTES.txt for details +- add gpg verification +- use new add_maven_depmap from javapackages-tools +- dropped unecessary patches/sources + * build.xml.patch + * commons-logging-eclipse-manifest.patch + * commons-logging-maven-release-plugin.patch + * and commons-logging.depmap + +------------------------------------------------------------------- +Mon Apr 2 13:39:00 UTC 2012 - mvyskocil@suse.cz + +- provide commons-logging + +------------------------------------------------------------------- +Tue Feb 28 13:50:53 UTC 2012 - mvyskocil@suse.cz + +- fix build cycle, do not require avalon-* for build and use servletapi5 + instead of tomcat6 package + +------------------------------------------------------------------- +Wed Feb 8 14:16:04 UTC 2012 - mvyskocil@suse.cz + +- rename to apache-commons-logging to follow jpackage and Fedora +- update to 1.1.1 (bugfix release) + * usable under security policy (catches SecurityException) + * show content of chained exceptions + * fix unit tests on linux an java6 + * provide maven2 pom file + * fix thread-safety bug + +------------------------------------------------------------------- +Sat Aug 27 20:32:52 UTC 2011 - andrea.turrini@gmail.com + +- fixed typos in jakarta-commons-logging.spec + +------------------------------------------------------------------- +Wed Jul 16 13:01:14 CEST 2008 - coolo@suse.de + +- trying to reduce build requires + +------------------------------------------------------------------- +Tue May 8 16:43:03 CEST 2007 - kesselborn@suse.de + +- remove avalon references ... avalon is dropped and support for it hence not needed + +------------------------------------------------------------------- +Mon Sep 25 13:26:40 CEST 2006 - skh@suse.de + +- fix BuildRequires +- don't use icecream +- use source="1.4" and target="1.4" for build with java 1.5 + +------------------------------------------------------------------- +Wed Jan 25 21:46:38 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Wed Jul 27 17:00:36 CEST 2005 - jsmeix@suse.de + +- Adjustments in the spec file. + +------------------------------------------------------------------- +Mon Jul 18 16:23:44 CEST 2005 - jsmeix@suse.de + +- Current version 1.0.4 from JPackage.org + +------------------------------------------------------------------- +Thu Sep 16 14:43:22 CEST 2004 - skh@suse.de + +- Fix prerequires of javadoc subpackage + +------------------------------------------------------------------- +Sun Sep 5 20:21:48 CEST 2004 - skh@suse.de + +- Initial package created with version 1.0.4 (JPackage 1.5) + diff --git a/apache-commons-logging.keyring b/apache-commons-logging.keyring new file mode 100644 index 0000000..14d6e9a --- /dev/null +++ b/apache-commons-logging.keyring @@ -0,0 +1,109 @@ +pub 4096R/99945293 2012-01-19 +uid Thomas Neidhart +uid Thomas Neidhart (CODE SIGNING KEY) +sub 4096R/264EE073 2012-01-19 + +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v2.0.19 (GNU/Linux) + +mQINBE8YNGIBEADEgcfvs8TL3X2Ql62HJ6SrXWAOoHw5CquJxUQ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MyOPey8wDmZxSRyA0iHJ7ZY8ExNNeL9YdE5osv5/dQ0KAnrvQyjySm +MUZrKEhJw58QJYFKJvPaO5LuQh3BB30wxJZiWW0Zlc/wjzT7Y6O8Pv/zYCGulJZu +C2spdasCSGhz06d1ZM/RbUXLNgosf+5ll22ZoIKpsvIMidC335IzQpOPuOePthrJ +UHf+EGpJDf56xoT12l5QwQSQCkhBYEWQX6gsNuZAHbuYOwMgwnpNxFBSpE/JYrcM +HJ1Ab5FXPS4ClVr9PzU15m2ZHr3i6SIWLmPQzjEokYmSAj1zoFZrvMEW4UNWzB6D +VX7G+VGgWIRB/LgDKsDs48z/kHwwvV/ciaGxUP62wwUbJWibDDskpeKvX55xbUW8 +BcTNbVHHk75fmzKRmKTugbMndok13bOAkOh9gxBHawKG/qj0GY9yxXPY671NNvQe +i+reoOcEm7pv5Tnvg+HP9IcLe50Zp0X9xwPQ6ux3VnXoa4s1PqTGhb7++w+QF2Ja +hE68a/9oR97XTe+8e1VFt+2eWD8lsvbx6avD2hwf9dvyqWO2sHjbmWE+Rn8VpJgX +WVvXdM0hFPWrUzI= +=ChmV +-----END PGP PUBLIC KEY BLOCK----- + + +pub 2048R/A11262CB 2011-04-12 +uid Gary David Gregory (Code signing key) +sig 3 A11262CB 2011-04-12 Gary David Gregory (Code signing key) +sub 2048R/AD3D7F94 2011-04-12 +sig A11262CB 2011-04-12 Gary David Gregory (Code signing key) + +-----BEGIN PGP PUBLIC KEY BLOCK----- +Version: GnuPG v1.4.11 (MingW32) + +mQENBE2kzuwBCACYV+G9yxNkSjAKSji0B5ipMGM74JAL1Ogtcu+993pLHHYsdXri +WWXi37x9PLjeHxw63mN26SFyrbMJ4A8erLB03PDjw0DEzAwiu9P2vSvL/RFxGBbk +cM0BTNXNR1rk8DpIzvXtejp8IHtD1qcDLTlJ8D0W3USebShDPo6NmMxTNuH0u99B +WHCMAdSa34wsg0ZpffwQmRxeA+ebrf2ydKupGkeZsKjkLlaXNkTVp1ghn5ts/lvg +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ITkeoBevQdxBT/27xNvoWOZyGSzGYlRbRQrlo+uZsjfMc9MNvaSmxyy +4gLVbcdvQr3PF//GxphJ98W8pk9l+M57jfyHnnCumn7MO4o9ed+WuigN5oeuNJ6B +Iq3ff2o1DsrEvDChYOJEOeFuWxv+u7I2ABJJep7NbByM2n9PE8vlGU3zUBgWUBsk +6jT+klKnEyHE76WzegPLz3jtElTuyB7jRhjyQJu1yiJEMbs2zH8aJGObi5f8Jum4 +tILZuEAdoI0M3c3VRq12cz/vLy+9VXa/s//8IsGn88kjyyYqOy8WJEjoOXFh++dp +WiM7nZkgQcNi5A== +=0UFs +-----END PGP PUBLIC KEY BLOCK----- diff --git a/apache-commons-logging.spec b/apache-commons-logging.spec new file mode 100644 index 0000000..356abb4 --- /dev/null +++ b/apache-commons-logging.spec @@ -0,0 +1,104 @@ +# +# spec file for package apache-commons-logging +# +# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2000-2007, JPackage Project +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define base_name logging +%define short_name commons-%{base_name} +Name: apache-%{short_name} +Version: 1.3.4 +Release: 0 +Summary: Apache Commons Logging +License: Apache-2.0 +URL: https://commons.apache.org/%{base_name} +Source0: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz +Source1: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc +Source2: %{name}.keyring +Source5: build.xml +Source6: build.properties +Patch0: commons-logging-1.3.3-dependencies.patch +BuildRequires: ant +BuildRequires: glassfish-servlet-api +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local >= 6 +BuildRequires: reload4j +Requires: java >= 1.8 +Provides: jakarta-%{short_name} = %{version}-%{release} +Obsoletes: jakarta-%{short_name} < %{version} +Provides: %{short_name} = %{version}-%{release} +Obsoletes: %{short_name} < %{version} +BuildArch: noarch + +%description +The commons-logging package provides a simple, component oriented +interface (org.apache.commons.logging.Log) together with wrappers for +logging systems. The user can choose at runtime which system they want +to use. In addition, a small number of basic implementations are +provided to allow users to use the package standalone. +commons-logging was heavily influenced by Avalon's Logkit and Log4J. The +commons-logging abstraction is meant to minimize the differences between +the two, and to allow a developer to not tie himself to a particular +logging implementation. + +%prep +%autosetup -p1 -n %{short_name}-%{version}-src + +cp %{SOURCE5} build.xml +cp %{SOURCE6} build.properties + +sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt + +%pom_remove_parent . + +%build +export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository +mkdir -p $MAVEN_REPO_LOCAL + +export CLASSPATH=$(build-classpath \ + plexus/ \ + ):target/classes:target/test-classes +ant \ + -Dmaven.mode.offline=true -lib %{_javadir} \ + -Dlog4j12.jar=$(find-jar reload4j/reload4j) -Dservletapi.jar=$(find-jar glassfish-servlet-api) \ + dist + +%install +# jars +install -d -m 755 %{buildroot}%{_javadir} +install -p -m 644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar +install -p -m 644 target/%{short_name}-api-%{version}.jar %{buildroot}%{_javadir}/%{name}-api.jar +install -p -m 644 target/%{short_name}-adapters-%{version}.jar %{buildroot}%{_javadir}/%{name}-adapters.jar + +pushd %{buildroot}%{_javadir} +for jar in %{name}*; do + ln -sf ${jar} `echo $jar| sed "s|apache-||g"` +done +popd + +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} pom.xml %{buildroot}/%{_mavenpomdir}/%{short_name}.pom +%add_maven_depmap %{short_name}.pom %{short_name}.jar -a "org.apache.commons:%{short_name}","apache:%{short_name}" +%add_maven_depmap %{short_name}:%{short_name}::api:%{version} %{short_name}-api.jar -a "%{short_name}:%{short_name}-api","org.apache.commons:%{short_name}-api","apache:%{short_name}-api" +%add_maven_depmap %{short_name}:%{short_name}::adapters:%{version} %{short_name}-adapters.jar -a "%{short_name}:%{short_name}-adapters","org.apache.commons:%{short_name}-adapters","apache:%{short_name}-adapters" + +%files -f .mfiles +%{_javadir}/%{name}*.jar +%license LICENSE.txt +%doc PROPOSAL.html RELEASE-NOTES.txt NOTICE.txt + +%changelog diff --git a/build.properties b/build.properties new file mode 100644 index 0000000..ffe31a0 --- /dev/null +++ b/build.properties @@ -0,0 +1,59 @@ +# 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. + +###################################################################### +# +# TO USE: +# +# Copy this file to build.properties and either +# +# a) Use 'ant getlibs' to populate the default directory +# with dependencies +# or b) Change the property values to appropriate values +# +######################################################################## + +# Apache Log4j 1.2.x series +log4j12.jar=lib/log4j-1.2.12.jar + +# Apache Log4j 1.3.x series +# Note: Log4j 1.3 support not available in the 1.1 release +#log4j13.jar=lib/log4j-1.3.0.jar + +# logkit.jar - Avalon LogKit classes (see http://jakarta.apache.org/avalon) +logkit.jar=lib/logkit-1.0.1.jar + +# Avalon framework - used for wrapper for avalon framework logger +avalon-framework.jar=lib/avalon-framework-4.1.3.jar + +# ServletApi - used to build ServletContextCleaner class +servletapi.jar=lib/servletapi-2.3.jar + +# +# if you want to run the test cases, junit needs to be in the classpath. +# the build.xml uses a default value so you might not need to set this property. +# Note that version junit 3.8 is required and 3.8.1 recommended. +# +junit.jar=lib/junit-3.8.1.jar + +# Maven properties (for web site build) +# Those committers using agents may like to use +#maven.username=rdonkin +#logging.cvs=lserver:rdonkin@cvs.apache.org:/home/cvs + + +# The path to a 1.4 JSDK javac +# Optional - used when building with a 1.2 JVM for releases +# executable.javac1.4=/opt/java/jdks/j2sdk1.4.2_10/bin/javac diff --git a/build.xml b/build.xml new file mode 100644 index 0000000..68c046f --- /dev/null +++ b/build.xml @@ -0,0 +1,811 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Log4j12: ${log4j12.jar} + + + LogKit: ${logkit.jar} + Avalon-Framework: ${avalon-framework.jar} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + *** WARNING *** + Log4j 1.2 not found: Cannot Build Log4JLogger + + + + + + + + + + + *** WARNING *** + LogKit not found: Cannot Build LogKitLogger + + + + + + *** WARNING *** + Avalon-Framework not found: Cannot Build AvalonLogger + + + + + + *** WARNING *** + JDK 1.4 not present: Cannot Build Jdk14Logger + + + + + + *** WARNING *** + Log4J 1.2.x Jar not found: Cannot execute 1.2.x tests + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + *** WARNING *** + Maven generated documentation not found: Documentation distribution will be empty + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + One or more unit tests failed. + + + + + + + + ================================= WARNING ================================ + Junit isn't present in your $ANT_HOME/lib directory. Tests not executed. + ========================================================================== + + + diff --git a/commons-logging-1.3.3-dependencies.patch b/commons-logging-1.3.3-dependencies.patch new file mode 100644 index 0000000..393367f --- /dev/null +++ b/commons-logging-1.3.3-dependencies.patch @@ -0,0 +1,575 @@ +--- a/src/main/java/org/apache/commons/logging/impl/Log4jApiLogFactory.java ++++ /dev/null +@@ -1,239 +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.commons.logging.impl; +- +-import java.io.IOException; +-import java.util.concurrent.ConcurrentHashMap; +-import java.util.concurrent.ConcurrentMap; +- +-import org.apache.commons.logging.Log; +-import org.apache.commons.logging.LogFactory; +-import org.apache.logging.log4j.Level; +-import org.apache.logging.log4j.LogManager; +-import org.apache.logging.log4j.Marker; +-import org.apache.logging.log4j.MarkerManager; +-import org.apache.logging.log4j.spi.AbstractLoggerAdapter; +-import org.apache.logging.log4j.spi.ExtendedLogger; +-import org.apache.logging.log4j.spi.LoggerAdapter; +-import org.apache.logging.log4j.spi.LoggerContext; +-import org.apache.logging.log4j.util.StackLocatorUtil; +- +-/** +- * Logger factory hardcoded to send everything to Log4j API. +- *

+- * Based on the `log4j-jcl` artifact from Apache Logging Services. +- *

+- * +- * @since 1.3.0 +- */ +-public final class Log4jApiLogFactory extends LogFactory { +- +- private static final class Log4j2Log implements Log { +- +- private static final String FQCN = Log4j2Log.class.getName(); +- +- private final ExtendedLogger logger; +- +- public Log4j2Log(final ExtendedLogger logger) { +- this.logger = logger; +- } +- +- @Override +- public void debug(final Object message) { +- logIfEnabled(Level.DEBUG, message, null); +- } +- +- @Override +- public void debug(final Object message, final Throwable t) { +- logIfEnabled(Level.DEBUG, message, t); +- } +- +- @Override +- public void error(final Object message) { +- logIfEnabled(Level.ERROR, message, null); +- } +- +- @Override +- public void error(final Object message, final Throwable t) { +- logIfEnabled(Level.ERROR, message, t); +- } +- +- @Override +- public void fatal(final Object message) { +- logIfEnabled(Level.FATAL, message, null); +- } +- +- @Override +- public void fatal(final Object message, final Throwable t) { +- logIfEnabled(Level.FATAL, message, t); +- } +- +- @Override +- public void info(final Object message) { +- logIfEnabled(Level.INFO, message, null); +- } +- +- @Override +- public void info(final Object message, final Throwable t) { +- logIfEnabled(Level.INFO, message, t); +- } +- +- @Override +- public boolean isDebugEnabled() { +- return isEnabled(Level.DEBUG); +- } +- +- private boolean isEnabled(final Level level) { +- return logger.isEnabled(level, MARKER, null); +- } +- +- @Override +- public boolean isErrorEnabled() { +- return isEnabled(Level.ERROR); +- } +- +- @Override +- public boolean isFatalEnabled() { +- return isEnabled(Level.FATAL); +- } +- +- @Override +- public boolean isInfoEnabled() { +- return isEnabled(Level.INFO); +- } +- +- @Override +- public boolean isTraceEnabled() { +- return isEnabled(Level.TRACE); +- } +- +- @Override +- public boolean isWarnEnabled() { +- return isEnabled(Level.WARN); +- } +- +- private void logIfEnabled(final Level level, final Object message, final Throwable t) { +- if (message instanceof CharSequence) { +- logger.logIfEnabled(FQCN, level, MARKER, (CharSequence) message, t); +- } else { +- logger.logIfEnabled(FQCN, level, MARKER, message, t); +- } +- } +- +- @Override +- public void trace(final Object message) { +- logIfEnabled(Level.TRACE, message, null); +- } +- +- @Override +- public void trace(final Object message, final Throwable t) { +- logIfEnabled(Level.TRACE, message, t); +- } +- +- @Override +- public void warn(final Object message) { +- logIfEnabled(Level.WARN, message, null); +- } +- +- @Override +- public void warn(final Object message, final Throwable t) { +- logIfEnabled(Level.WARN, message, t); +- } +- } +- private static final class LogAdapter extends AbstractLoggerAdapter { +- +- @Override +- protected LoggerContext getContext() { +- return getContext(LogManager.getFactory().isClassLoaderDependent() ? StackLocatorUtil.getCallerClass( +- LogFactory.class) : null); +- } +- +- @Override +- protected Log newLogger(final String name, final LoggerContext context) { +- return new Log4j2Log(context.getLogger(name)); +- } +- +- } +- +- private static final String[] EMPTY_ARRAY = {}; +- +- /** +- * Marker used by all messages coming from Apache Commons Logging. +- */ +- private static final Marker MARKER = MarkerManager.getMarker("COMMONS-LOGGING"); +- +- /** +- * Caches Log instances +- */ +- private final LoggerAdapter adapter = new LogAdapter(); +- +- private final ConcurrentMap attributes = new ConcurrentHashMap<>(); +- +- /** +- * Constructs a new instance. +- */ +- public Log4jApiLogFactory() { +- // empty +- } +- +- @Override +- public Object getAttribute(final String name) { +- return attributes.get(name); +- } +- +- @Override +- public String[] getAttributeNames() { +- return attributes.keySet().toArray(EMPTY_ARRAY); +- } +- +- @Override +- public Log getInstance(final Class clazz) { +- return getInstance(clazz.getName()); +- } +- +- @Override +- public Log getInstance(final String name) { +- return adapter.getLogger(name); +- } +- +- /** +- * This method is supposed to clear all loggers. In this implementation it will clear all the logger +- * wrappers but the loggers managed by the underlying logger context will not be. +- */ +- @Override +- public void release() { +- try { +- adapter.close(); +- } catch (final IOException ignored) { +- // Ignore +- } +- } +- +- @Override +- public void removeAttribute(final String name) { +- attributes.remove(name); +- } +- +- @Override +- public void setAttribute(final String name, final Object value) { +- if (value != null) { +- attributes.put(name, value); +- } else { +- removeAttribute(name); +- } +- } +-} +--- a/src/main/java/org/apache/commons/logging/impl/Slf4jLogFactory.java ++++ /dev/null +@@ -1,330 +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.commons.logging.impl; +- +-import static org.slf4j.spi.LocationAwareLogger.DEBUG_INT; +-import static org.slf4j.spi.LocationAwareLogger.ERROR_INT; +-import static org.slf4j.spi.LocationAwareLogger.INFO_INT; +-import static org.slf4j.spi.LocationAwareLogger.TRACE_INT; +-import static org.slf4j.spi.LocationAwareLogger.WARN_INT; +- +-import java.util.concurrent.ConcurrentHashMap; +-import java.util.concurrent.ConcurrentMap; +- +-import org.apache.commons.logging.Log; +-import org.apache.commons.logging.LogConfigurationException; +-import org.apache.commons.logging.LogFactory; +-import org.slf4j.ILoggerFactory; +-import org.slf4j.Logger; +-import org.slf4j.LoggerFactory; +-import org.slf4j.Marker; +-import org.slf4j.MarkerFactory; +-import org.slf4j.spi.LocationAwareLogger; +- +-/** +- * Logger factory hardcoded to send everything to SLF4J. +- * +- * @since 1.3.0 +- */ +-public final class Slf4jLogFactory extends LogFactory { +- +- private static final class Slf4jLocationAwareLog implements Log { +- +- private static final String FQCN = Slf4jLocationAwareLog.class.getName(); +- +- private final LocationAwareLogger logger; +- +- public Slf4jLocationAwareLog(final LocationAwareLogger logger) { +- this.logger = logger; +- } +- +- @Override +- public void debug(final Object message) { +- log(DEBUG_INT, message, null); +- } +- +- @Override +- public void debug(final Object message, final Throwable t) { +- log(DEBUG_INT, message, t); +- } +- +- @Override +- public void error(final Object message) { +- log(ERROR_INT, message, null); +- } +- +- @Override +- public void error(final Object message, final Throwable t) { +- log(ERROR_INT, message, t); +- } +- +- @Override +- public void fatal(final Object message) { +- error(message); +- } +- +- @Override +- public void fatal(final Object message, final Throwable t) { +- error(message, t); +- } +- +- @Override +- public void info(final Object message) { +- log(INFO_INT, message, null); +- } +- +- @Override +- public void info(final Object message, final Throwable t) { +- log(INFO_INT, message, t); +- } +- +- @Override +- public boolean isDebugEnabled() { +- return logger.isDebugEnabled(MARKER); +- } +- +- @Override +- public boolean isErrorEnabled() { +- return logger.isErrorEnabled(MARKER); +- } +- +- @Override +- public boolean isFatalEnabled() { +- return isErrorEnabled(); +- } +- +- @Override +- public boolean isInfoEnabled() { +- return logger.isInfoEnabled(MARKER); +- } +- +- @Override +- public boolean isTraceEnabled() { +- return logger.isTraceEnabled(MARKER); +- } +- +- @Override +- public boolean isWarnEnabled() { +- return logger.isWarnEnabled(MARKER); +- } +- +- private void log(final int level, final Object message, final Throwable t) { +- logger.log(MARKER, FQCN, level, String.valueOf(message), EMPTY_OBJECT_ARRAY, t); +- } +- +- @Override +- public void trace(final Object message) { +- log(TRACE_INT, message, null); +- } +- +- @Override +- public void trace(final Object message, final Throwable t) { +- log(TRACE_INT, message, t); +- } +- +- @Override +- public void warn(final Object message) { +- log(WARN_INT, message, null); +- } +- +- @Override +- public void warn(final Object message, final Throwable t) { +- log(WARN_INT, message, t); +- } +- } +- private static class Slf4jLog implements Log { +- +- private final Logger logger; +- +- public Slf4jLog(final Logger logger) { +- this.logger = logger; +- } +- +- @Override +- public void debug(final Object message) { +- logger.debug(MARKER, String.valueOf(message)); +- } +- +- @Override +- public void debug(final Object message, final Throwable t) { +- logger.debug(MARKER, String.valueOf(message), t); +- } +- +- @Override +- public void error(final Object message) { +- logger.error(MARKER, String.valueOf(message)); +- } +- +- @Override +- public void error(final Object message, final Throwable t) { +- logger.debug(MARKER, String.valueOf(message), t); +- } +- +- @Override +- public void fatal(final Object message) { +- error(message); +- } +- +- @Override +- public void fatal(final Object message, final Throwable t) { +- error(message, t); +- } +- +- @Override +- public void info(final Object message) { +- logger.info(MARKER, String.valueOf(message)); +- } +- +- @Override +- public void info(final Object message, final Throwable t) { +- logger.info(MARKER, String.valueOf(message), t); +- } +- +- @Override +- public boolean isDebugEnabled() { +- return logger.isDebugEnabled(MARKER); +- } +- +- @Override +- public boolean isErrorEnabled() { +- return logger.isErrorEnabled(MARKER); +- } +- +- @Override +- public boolean isFatalEnabled() { +- return isErrorEnabled(); +- } +- +- @Override +- public boolean isInfoEnabled() { +- return logger.isInfoEnabled(MARKER); +- } +- +- @Override +- public boolean isTraceEnabled() { +- return logger.isTraceEnabled(MARKER); +- } +- +- @Override +- public boolean isWarnEnabled() { +- return logger.isWarnEnabled(MARKER); +- } +- +- @Override +- public void trace(final Object message) { +- logger.trace(MARKER, String.valueOf(message)); +- } +- +- @Override +- public void trace(final Object message, final Throwable t) { +- logger.trace(MARKER, String.valueOf(message), t); +- } +- +- @Override +- public void warn(final Object message) { +- logger.warn(MARKER, String.valueOf(message)); +- } +- +- @Override +- public void warn(final Object message, final Throwable t) { +- logger.warn(MARKER, String.valueOf(message), t); +- } +- } +- +- private static final Object[] EMPTY_OBJECT_ARRAY = {}; +- +- private static final String[] EMPTY_STRING_ARRAY = {}; +- +- /** +- * Marker used by all messages coming from Apache Commons Logging. +- */ +- private static final Marker MARKER = MarkerFactory.getMarker("COMMONS-LOGGING"); +- +- /** +- * Caches Log instances. +- *

+- * The SLF4J reference implementation (Logback) has a single logger context, so each call to +- * {@link #getInstance(String)} +- * should give the same result. +- *

+- */ +- private final ConcurrentMap loggers = new ConcurrentHashMap<>(); +- +- private final ConcurrentMap attributes = new ConcurrentHashMap<>(); +- +- /** +- * Constructs a new instance. +- */ +- public Slf4jLogFactory() { +- // empty +- } +- +- @Override +- public Object getAttribute(final String name) { +- return attributes.get(name); +- } +- +- @Override +- public String[] getAttributeNames() { +- return attributes.keySet().toArray(EMPTY_STRING_ARRAY); +- } +- +- @Override +- public Log getInstance(final Class clazz) throws LogConfigurationException { +- return getInstance(clazz.getName()); +- } +- +- @Override +- public Log getInstance(final String name) { +- return loggers.computeIfAbsent(name, n -> { +- final Logger logger = LoggerFactory.getLogger(n); +- return logger instanceof LocationAwareLogger ? new Slf4jLocationAwareLog((LocationAwareLogger) logger) : new Slf4jLog( +- logger); +- }); +- } +- +- /** +- * This method is supposed to clear all loggers. +- *

+- * In this implementation it calls a "stop" method if the logger factory supports it. This is the case of +- * Logback. +- *

+- */ +- @Override +- public void release() { +- final ILoggerFactory factory = LoggerFactory.getILoggerFactory(); +- try { +- factory.getClass().getMethod("stop").invoke(factory); +- } catch (final ReflectiveOperationException ignored) { +- // empty +- } +- } +- +- @Override +- public void removeAttribute(final String name) { +- attributes.remove(name); +- } +- +- @Override +- public void setAttribute(final String name, final Object value) { +- if (value != null) { +- attributes.put(name, value); +- } else { +- removeAttribute(name); +- } +- } +-} diff --git a/commons-logging-1.3.3-src.tar.gz b/commons-logging-1.3.3-src.tar.gz new file mode 100644 index 0000000..41be54a --- /dev/null +++ b/commons-logging-1.3.3-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:21e8445d9fc6f0d5e45f67b059808bd3b90bf07b7ad658fd1b3e597acd7f44ee +size 194860 diff --git a/commons-logging-1.3.3-src.tar.gz.asc b/commons-logging-1.3.3-src.tar.gz.asc new file mode 100644 index 0000000..408bf6d --- /dev/null +++ b/commons-logging-1.3.3-src.tar.gz.asc @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- + +iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAmaBqTIACgkQhv3H4qES +YstuPQf/Za1DHg/M/4Jp51+47XXmNix01mBikDFNe9kviyDhJNKE/jAePtRMuYAB +trazgtgupfuBOfdgh9ILve0ZFpBqWw7oEoUgGvKF6FBNlsEVXmQIUPVNV2RX6cdh +mxFSeSKhlmZ6vkeCbicxlVNYHA/4nUivgwpZQM7FNWhDzv4BgupSNN0BC1nQMaPu +nSExYvzfOWsaHsawhi+FP949B39cSezdUTFA3Rc0JEusXYNhbrnfhCBv8lfaH8xn +S7nEGGjFH1GMZvGOPJEbdzllx6M0ugaEpf+lX/zAREc0zXt8PmP9rZTzvixW2kNw +WwqBEWF0Udbv3dlPwOaO1/53va7ukA== +=XlNv +-----END PGP SIGNATURE----- diff --git a/commons-logging-1.3.4-src.tar.gz b/commons-logging-1.3.4-src.tar.gz new file mode 100644 index 0000000..43dc9f9 --- /dev/null +++ b/commons-logging-1.3.4-src.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7fd379e34abb5b8f1d1792d3125584003a25926ba7f68f68f6db30e5e505aa0a +size 195717 diff --git a/commons-logging-1.3.4-src.tar.gz.asc b/commons-logging-1.3.4-src.tar.gz.asc new file mode 100644 index 0000000..edd23e6 --- /dev/null +++ b/commons-logging-1.3.4-src.tar.gz.asc @@ -0,0 +1,11 @@ +-----BEGIN PGP SIGNATURE----- + +iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAma/SzoACgkQhv3H4qES +YssgpggAgaocpsJDilcqkfdt316Bzl4qjH0ldlvO1PvfzFpOH0CEKIqimTLHkUhJ +ZLnvGPpGnn107OJQMZEsjBQhhPOYyLMZEkFIUan60p30ZrRcAtpszqOBcBAH67L0 +sdhHQTsbNAjizbXgxYt/ROMcg0OFgY4gcLkZSAuR3vIeFldrmzjjcGMsNS14OI65 +aJZHBPKwrNUeYiSAHuTqIXDkC4xjerDMK8cjDNwBzYiDmwpVr/VKH+pdpqiZjxuG +xUyXN8W496H2PYpxVDhapKOzU05Wyq3NZ0vvNTrqgp5aBipYW5p/ADTG/Bkd2+yY +/KyxVcOZaYuS5yhF/MlDyCgmqmQHfQ== +=22cX +-----END PGP SIGNATURE----- diff --git a/commons-logging-api-1.1.pom b/commons-logging-api-1.1.pom new file mode 100644 index 0000000..c0b8f67 --- /dev/null +++ b/commons-logging-api-1.1.pom @@ -0,0 +1,165 @@ + + 4.0.0 + commons-logging + commons-logging-api + Logging + 1.1 + Commons Logging is a thin adapter allowing configurable bridging to other, + well known logging systems. + http://jakarta.apache.org/commons/logging/ + + http://issues.apache.org/jira/browse/LOGGING + + + + + +
commons-dev@jakarta.apache.org
+
+
+
+
+ 2001 + + + Commons Dev List + commons-dev-subscribe@jakarta.apache.org + commons-dev-unsubscribe@jakarta.apache.org + http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/ + + + Commons User List + commons-user-subscribe@jakarta.apache.org + commons-user-unsubscribe@jakarta.apache.org + http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/ + + + + + morgand + Morgan Delagrange + morgand at apache dot org + Apache + + Java Developer + + + + rwaldhoff + Rodney Waldhoff + rwaldhoff at apache org + Apache Software Foundation + + + craigmcc + Craig McClanahan + craigmcc at apache org + Apache Software Foundation + + + sanders + Scott Sanders + sanders at apache dot org + Apache Software Foundation + + + rdonkin + Robert Burrell Donkin + rdonkin at apache dot org + Apache Software Foundation + + + donaldp + Peter Donald + donaldp at apache dot org + + + + costin + Costin Manolache + costin at apache dot org + Apache Software Foundation + + + rsitze + Richard Sitze + rsitze at apache dot org + Apache Software Foundation + + + baliuka + Juozas Baliuka + baliuka@apache.org + + + Java Developer + + + + skitching + Simon Kitching + skitching@apache.org + Apache Software Foundation + + + dennisl + Dennis Lundberg + dennisl@apache.org + Apache Software Foundation + + + bstansberry + Brian Stansberry + + + + + The Apache Software License, Version 2.0 + /LICENSE.txt + + + + scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk/ + http://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk/ + + + The Apache Software Foundation + http://jakarta.apache.org + + + src/java + src/test + + + maven-xdoc-plugin + 1.9.2 + + true + <strong>Site Only</strong> - v1.9.2 (minimum) + + + + + + + junit + junit + 3.8.1 + test + true + + + + + default + Default Repository + file:///www/jakarta.apache.org/builds/jakarta-commons/logging/ + + + default + Default Site + scp://people.apache.org//www/jakarta.apache.org/commons/logging/ + + converted + +
\ No newline at end of file From 8c9788924c761415cd82e02559a56a7e1eb19eaa9857e059652483294ab2179d Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 29 Oct 2024 13:58:34 +0000 Subject: [PATCH 2/3] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-logging?expand=0&rev=62 --- apache-commons-logging.changes | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apache-commons-logging.changes b/apache-commons-logging.changes index f81480c..1417e9d 100644 --- a/apache-commons-logging.changes +++ b/apache-commons-logging.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Oct 29 13:57:40 UTC 2024 - Fridrich Strba + +- Upgrade to 1.3.4 + * Bug fix: + + LOGGING-192: Fix factory loading from context class + loader #280, #281. + ------------------------------------------------------------------- Fri Aug 9 08:05:34 UTC 2024 - Gus Kenion From 2745495b405a439aa4da67ec8b04e9fc34a90955a88013652c2ebf6252deffa5 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Tue, 29 Oct 2024 14:04:10 +0000 Subject: [PATCH 3/3] OBS-URL: https://build.opensuse.org/package/show/Java:packages/apache-commons-logging?expand=0&rev=63 --- commons-logging-api-1.1.pom | 165 ------------------------------------ 1 file changed, 165 deletions(-) delete mode 100644 commons-logging-api-1.1.pom diff --git a/commons-logging-api-1.1.pom b/commons-logging-api-1.1.pom deleted file mode 100644 index c0b8f67..0000000 --- a/commons-logging-api-1.1.pom +++ /dev/null @@ -1,165 +0,0 @@ - - 4.0.0 - commons-logging - commons-logging-api - Logging - 1.1 - Commons Logging is a thin adapter allowing configurable bridging to other, - well known logging systems. - http://jakarta.apache.org/commons/logging/ - - http://issues.apache.org/jira/browse/LOGGING - - - - - -
commons-dev@jakarta.apache.org
-
-
-
-
- 2001 - - - Commons Dev List - commons-dev-subscribe@jakarta.apache.org - commons-dev-unsubscribe@jakarta.apache.org - http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/ - - - Commons User List - commons-user-subscribe@jakarta.apache.org - commons-user-unsubscribe@jakarta.apache.org - http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/ - - - - - morgand - Morgan Delagrange - morgand at apache dot org - Apache - - Java Developer - - - - rwaldhoff - Rodney Waldhoff - rwaldhoff at apache org - Apache Software Foundation - - - craigmcc - Craig McClanahan - craigmcc at apache org - Apache Software Foundation - - - sanders - Scott Sanders - sanders at apache dot org - Apache Software Foundation - - - rdonkin - Robert Burrell Donkin - rdonkin at apache dot org - Apache Software Foundation - - - donaldp - Peter Donald - donaldp at apache dot org - - - - costin - Costin Manolache - costin at apache dot org - Apache Software Foundation - - - rsitze - Richard Sitze - rsitze at apache dot org - Apache Software Foundation - - - baliuka - Juozas Baliuka - baliuka@apache.org - - - Java Developer - - - - skitching - Simon Kitching - skitching@apache.org - Apache Software Foundation - - - dennisl - Dennis Lundberg - dennisl@apache.org - Apache Software Foundation - - - bstansberry - Brian Stansberry - - - - - The Apache Software License, Version 2.0 - /LICENSE.txt - - - - scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk/ - http://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk/ - - - The Apache Software Foundation - http://jakarta.apache.org - - - src/java - src/test - - - maven-xdoc-plugin - 1.9.2 - - true - <strong>Site Only</strong> - v1.9.2 (minimum) - - - - - - - junit - junit - 3.8.1 - test - true - - - - - default - Default Repository - file:///www/jakarta.apache.org/builds/jakarta-commons/logging/ - - - default - Default Site - scp://people.apache.org//www/jakarta.apache.org/commons/logging/ - - converted - -
\ No newline at end of file