Niall Kegan Pemberton
5a5d966f6f
Update components to point to the new download pages
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@923339 13f79535-47bb-0310-9956-ffa450edef68
2010-03-15 17:04:53 +00:00
Simon Kitching
36c73c13e2
LOGGING-127: Fix issue introduced in LOGGING-126 - use setUseCache, not setDefaultUseCache
...
Thanks to Christopher Sahnwaldt for the report.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@697387 13f79535-47bb-0310-9956-ffa450edef68
2008-09-20 16:33:51 +00:00
Simon Kitching
487dcaadea
Trivial change: remove unused import
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@695209 13f79535-47bb-0310-9956-ffa450edef68
2008-09-14 12:31:09 +00:00
Simon Kitching
12f0edf24b
Fix LOGGING-126: loading of commons-logging.properties file locks jars on windows.
...
Thanks to Philippe Mouawad for the report and patch.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@695208 13f79535-47bb-0310-9956-ffa450edef68
2008-09-14 12:26:03 +00:00
Henri Yandell
eaf4c2d7b4
Fixing the assemblies to say project.version instead of version to stop '2.4.1' leaking through from the JVM properties. Also making it project.artifactId while I'm doing this.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@637007 13f79535-47bb-0310-9956-ffa450edef68
2008-03-14 06:41:17 +00:00
Niall Kegan Pemberton
e3640ad544
Add Issue Tracking and Download pages generated by commons-build-plugin
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@632817 13f79535-47bb-0310-9956-ffa450edef68
2008-03-02 19:46:00 +00:00
Dennis Lundberg
0214006561
Add a menu for the 1.1.1 release.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@598439 13f79535-47bb-0310-9956-ffa450edef68
2007-11-26 21:48:18 +00:00
Dennis Lundberg
db26961e91
[LOGGING-118] Generate source and binary archives.
...
Replace the single assembly with separate source and binary assemblies.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@597240 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 22:50:06 +00:00
Dennis Lundberg
aed3678ff1
Remove Jakarta from Specification-Title and Implementation-Title.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@596366 13f79535-47bb-0310-9956-ffa450edef68
2007-11-19 17:04:30 +00:00
Dennis Lundberg
8a3c28de2f
Prepare for the 1.1.1 release.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@596147 13f79535-47bb-0310-9956-ffa450edef68
2007-11-18 22:20:58 +00:00
Dennis Lundberg
560466eb55
Add build-testing.xml to the assembly.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@596145 13f79535-47bb-0310-9956-ffa450edef68
2007-11-18 22:20:04 +00:00
Simon Kitching
576e85c122
LOGGING-117. Clean up system props after unit test so that other unit tests do not fail.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@593871 13f79535-47bb-0310-9956-ffa450edef68
2007-11-11 11:51:36 +00:00
Simon Kitching
8367500593
Fix possible null-pointer exception when generating diagnostic messages. JIRA issue LOGGING-115. Thanks to Frantisek Jandos for the bugreport.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@593798 13f79535-47bb-0310-9956-ffa450edef68
2007-11-10 17:40:43 +00:00
Dennis Lundberg
5c61777bde
Add license headers.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581102 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 22:28:54 +00:00
Dennis Lundberg
93057bf34c
This one needed more spaces.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581093 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 22:08:03 +00:00
Dennis Lundberg
051b217ae3
Replace tab characters with spaces. No other changes.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581090 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 22:01:06 +00:00
Dennis Lundberg
78942c8588
Set EOL style to Native.
...
Remove tab characters.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@581081 13f79535-47bb-0310-9956-ffa450edef68
2007-10-01 21:43:58 +00:00
Dennis Lundberg
85890a4385
Fix page titles.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@569156 13f79535-47bb-0310-9956-ffa450edef68
2007-08-23 21:41:31 +00:00
Dennis Lundberg
b9538406b1
Fix failing tests due to r563165.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@568760 13f79535-47bb-0310-9956-ffa450edef68
2007-08-22 22:19:45 +00:00
Simon Kitching
b310a4ef0e
Use a dummy exception class when calling log(exception). This makes the unit test output less confusing.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@563165 13f79535-47bb-0310-9956-ffa450edef68
2007-08-06 15:08:05 +00:00
Niall Kegan Pemberton
58eff81387
TLP Move change wiki URLs from "wiki.apache.org/jakarta-commons" to "wiki.apache.org/commons"
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@562963 13f79535-47bb-0310-9956-ffa450edef68
2007-08-05 21:10:51 +00:00
Niall Kegan Pemberton
fcfa318144
Move Commons TLP changes
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@561417 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 18:13:25 +00:00
Dennis Lundberg
d6bc112b79
Changes because of the TLP move.
...
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@560818 13f79535-47bb-0310-9956-ffa450edef68
2007-07-29 21:02:06 +00:00
Dennis Lundberg
8bcde7bbc8
Add a combined source and binary assembly.
...
It differs from the one produced by Ant in these areas:
- the docs folder is called site
- the complete src/ directory is included, not just src/java/
- all files necessary to build the product using Ant, Maven 1 and Maven 2 are included
- the *-ide.zip file is not created or included
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@496002 13f79535-47bb-0310-9956-ffa450edef68
2007-01-13 23:35:57 +00:00
Dennis Lundberg
b7ecf17217
First try at a Maven 2 generated site. Requires commons-parent 2-SNAPSHOT because it inherits parts of the site.xml from it.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@491226 13f79535-47bb-0310-9956-ffa450edef68
2006-12-30 14:17:06 +00:00
Simon Kitching
256ada0e80
Handle null log4j logger param to constructor better than just causing NullPointerException.
...
Thanks to Lilianne E. Blaze for the patch; see jira LOGGING-111.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@476774 13f79535-47bb-0310-9956-ffa450edef68
2006-11-19 08:57:51 +00:00
Simon Kitching
342bbe7a7a
Improve diagnostics when underlying lib throws InvocationTargetException.
...
Patch provided by Lilliane E. Blaze. See Jira issue LOGGING-111.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@476772 13f79535-47bb-0310-9956-ffa450edef68
2006-11-19 08:50:31 +00:00
Simon Kitching
252b42770d
Fix thread-safety bug (SimpleDateFormat.format is not thread-safe).
...
Thanks to Martin Wilson of bright-interactive for the bug report.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@464108 13f79535-47bb-0310-9956-ffa450edef68
2006-10-15 03:11:19 +00:00
Simon Kitching
d5951da110
Make test compatible with maven2 surefire.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427814 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 00:18:56 +00:00
Simon Kitching
ff8a0111c0
Have DefaultConfigTestCase explicitly set up its classpath. When run from ant, log4j is not on the
...
classpath so using the default setup works; however when run from maven2 surefire, log4j is on the
path. Explicitly controlling the test classpath works in both cases.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427808 13f79535-47bb-0310-9956-ffa450edef68
2006-08-02 00:08:20 +00:00
Simon Kitching
c340a77d5b
Manually force our custom java.util.logging.Handler class to be loaded via the
...
system classloader. This means that the unit test can successfully run even
when the class is not in the system classpath (as happens when running tests
with maven2's surefire plugin for example).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427800 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:48:14 +00:00
Simon Kitching
e0dc5a6f51
Remove unused imports (fix compile warnings).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427798 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:46:32 +00:00
Simon Kitching
60e84957f8
When multiple jars on classpath match logical lib name, use jar with shortest name.
...
Also remove debug print statement.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427797 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 23:45:58 +00:00
Simon Kitching
7d8b923dc2
Add javadoc only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427477 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 07:37:00 +00:00
Simon Kitching
be64ad867c
Minor test tidyups (including fixing incorrect comment due to copy-and-paste).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427418 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 03:10:13 +00:00
Simon Kitching
563417f77e
Change test to be compatible with maven2 surefire; when using surefire, junit is not loaded
...
via the system classpath.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427396 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 01:16:02 +00:00
Simon Kitching
8b353e9470
Change key of servlet api jar from "servletapi" to "servlet-api". The maven2 tests pull
...
this jar from the maven2 repository, and in there the jarfile has a different name
from the jarfile in the maven1 repo where ant pulls it from :-(.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427395 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 01:14:53 +00:00
Simon Kitching
e7ab5b24d8
Allow libs for test to be discovered via the classpath as well as via system properties.
...
This has been implemented to suppprt running tests via the maven surefire plugin, but is
a general-purpose mechanism.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427394 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 01:13:11 +00:00
Simon Kitching
557f97f1a5
Make unit tests compatible with maven2 Surefire plugin.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425249 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 01:30:16 +00:00
Simon Kitching
cd2518594b
Add javadoc about setExplicitLoader/addLogicalLib.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425247 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 01:26:37 +00:00
Simon Kitching
f69077181d
Fix for LOGGING-107. JCL failed when run under a security policy that prevented calling ClassLoader.getParent.
...
We now catch SecurityException in this case, and also use an AccessController so JCL can be granted permissions
without needing the caller to have those permissions too.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424139 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 00:09:23 +00:00
Simon Kitching
d82ad2ae6e
Update license info using script update-AL20.pl, as per http://www.apache.org/legal/src-headers.html
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424108 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 23:19:55 +00:00
Simon Kitching
ceb9dedde4
Update license info using script update-AL20.pl, as per http://www.apache.org/legal/src-headers.html
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424107 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 23:15:42 +00:00
Simon Kitching
e0d9632d8b
Rename testcase files, as batch junit testing only detects classes ending in "TestCase".
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424082 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 21:59:50 +00:00
Simon Kitching
23d8dd0c2c
Only count security exceptions before a message is actually logged, as j.u.logging
...
does (and should) generate security exceptions.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424078 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 21:52:52 +00:00
Simon Kitching
111ea9540b
* Add method getSystemProperty which fetches system properties using an AccessController,
...
so they are accessable by a trusted JCL lib called from untrusted code.
* Add method getContextClassLoaderInternal to fetch context classloader using an
AccessController, as the parent LogFactory class no longer exposes this (restricted)
object for any subclass to access.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424066 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 21:08:49 +00:00
Simon Kitching
6bad2dd657
* INCOMPATIBLE CHANGE (minor): protected method getContextClassloader no longer uses an AccessController.
...
This was a (minor) security flaw. Instead, behaviour is reverted to pre-1.1 behaviour where no
AccessController is used, and a new private method getContextClassloaderInternal has been created. The
chance of breaking valid user code is extremely small here. Note that this forces subclass LogFactoryImpl
to provide its own copy of getContextClassloaderInternal, as the parent no longer exposes the (restricted)
context classloader object.
* Get system properties using an AccessController so they are accessable by a trusted JCL lib called
from untrusted code.
* Revert recent patch to run entire static initializer under an AccessController, as the chances of
creating a security flaw are too high. The specific problem this patch was intended to fix has been
addressed by fetching specific system properties via an AccessController.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424063 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 21:06:09 +00:00
Simon Kitching
beeeaba151
Fix LOGGING-106 where JCL wouldn't start when run under a SecurityManager that refuses access to system properties.
...
Also use an AccessController so that a signed JCL will work in an unsigned app; note that there appears to be other
places where we are missing AccessControllers too.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@423654 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 23:31:00 +00:00
Simon Kitching
7d08044587
Add more unit tests for SecurityManager/AccessController issues
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@423653 13f79535-47bb-0310-9956-ffa450edef68
2006-07-19 23:26:49 +00:00
Simon Kitching
fc6da5291a
Add unit tests to check behaviour when running in applet-like environments
...
with restrictive security managers.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@420478 13f79535-47bb-0310-9956-ffa450edef68
2006-07-10 10:25:49 +00:00