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
fa514dfe30
Add note re how to run unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@476770 13f79535-47bb-0310-9956-ffa450edef68
2006-11-19 08:36:36 +00:00
Simon Kitching
531990ff9a
Fix use of optional dependencies; optional is a separate flag, not a scope.
...
Thanks to Wendy Smoak for pointing this out.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@476637 13f79535-47bb-0310-9956-ffa450edef68
2006-11-18 22:32:29 +00:00
Simon Kitching
e248866959
Add comments about unusual dependency-handling approach.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@476429 13f79535-47bb-0310-9956-ffa450edef68
2006-11-18 03:41:32 +00:00
Simon Kitching
d1d8103652
Trivial change; add newline after license.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@476370 13f79535-47bb-0310-9956-ffa450edef68
2006-11-17 23:42:48 +00:00
Henri Yandell
f547cf0be5
Hooking to the newly released v1 commons-parent pom
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@474146 13f79535-47bb-0310-9956-ffa450edef68
2006-11-13 04:49:07 +00:00
Henri Yandell
df9ef4381e
Making sure all the pom.xmls have NOTICE/LICENSEs in - though haven't done VFS
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@472790 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 06:31:40 +00:00
Rahul Akolkar
4a7a0d252b
Point DOAP files to JIRA.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@472714 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:26:31 +00:00
Rahul Akolkar
2efb2100df
Missing SVN properties, possibly some large diffs, no functional change.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@472712 13f79535-47bb-0310-9956-ffa450edef68
2006-11-09 00:14:44 +00:00
Henri Yandell
4162c8c145
Points to the commons-parent now
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@472252 13f79535-47bb-0310-9956-ffa450edef68
2006-11-07 20:56:49 +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
Dennis Lundberg
c9d05cd4b6
Remove optional from both dependencies, it's not needed for scope test or plugins, as suggested by Carlos Sanchez.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@430860 13f79535-47bb-0310-9956-ffa450edef68
2006-08-11 19:00:50 +00:00
Dennis Lundberg
fcc340649d
Fix typos.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@430509 13f79535-47bb-0310-9956-ffa450edef68
2006-08-10 20:00:29 +00:00
Dennis Lundberg
045622f5d7
Add a pom for commons-logging-api that can be deployed to the Maven repository.
...
Compared to the normal project.xml file all dependencies except junit has been removed. I also removed a few things related to testing in order to be able to build the jar with Maven after the dependencies were removed.
This will help solve an issue reported on the user-list:
http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/200607.mbox/%3cd1deecd50607070354h7013e053j5994a06c41d7d203@mail.gmail.com%3e
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@430470 13f79535-47bb-0310-9956-ffa450edef68
2006-08-10 18:29:33 +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
9ee6adc5d9
Copy resources into test jar. Also minor layout tidyups.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@427417 13f79535-47bb-0310-9956-ffa450edef68
2006-08-01 03:08:15 +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
f7a013c518
Rework packaging phase. JCL now builds correctly with maven2 (though unit tests don't run).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@426316 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 23:09:24 +00:00
Simon Kitching
833ff6bead
Exclude LogFactoryImpl anonymous inner classes from adapter jar that shouldn't be included.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@426313 13f79535-47bb-0310-9956-ffa450edef68
2006-07-27 23:05:22 +00:00
Dennis Lundberg
915b5ec93e
Add trailing slashes to URLs.
...
Fix indentation.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425343 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 09:13:44 +00:00
Simon Kitching
8a0a4017b9
Initial attempt at building commons-logging using maven2; not fully functional yet.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425252 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 01:37:50 +00:00
Simon Kitching
effb1b152a
Replace confusing variable use with plain text. There's no need for flexibility here as the
...
artifact id is really unlikely to change, and if it does we can just search-and-replace.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@425250 13f79535-47bb-0310-9956-ffa450edef68
2006-07-25 01:32:04 +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
ba7d1fdbd2
Start release notes for 1.1.1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@424144 13f79535-47bb-0310-9956-ffa450edef68
2006-07-21 00:12:48 +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
65bf369979
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@424112 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 23:32:01 +00:00
Simon Kitching
5147b5ff47
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@424110 13f79535-47bb-0310-9956-ffa450edef68
2006-07-20 23:29:33 +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
Niall Kegan Pemberton
92e5685b1e
Correct Jira --> JIRA
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@422127 13f79535-47bb-0310-9956-ffa450edef68
2006-07-15 01:17:37 +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
Simon Kitching
ea5bc9e2a3
Remove weird unicode char in comments that causes compile warnings
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@420429 13f79535-47bb-0310-9956-ffa450edef68
2006-07-10 06:03:14 +00:00
Niall Kegan Pemberton
92ab2ee721
Update Issue Tracking for Bugzilla --> Jira migration
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@409052 13f79535-47bb-0310-9956-ffa450edef68
2006-05-24 03:16:02 +00:00
Robert Burrell Donkin
d821ed3ea0
Corrected site host name.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@408063 13f79535-47bb-0310-9956-ffa450edef68
2006-05-20 18:18:49 +00:00
Henri Yandell
efcc4756eb
Switched url from bugzilla to jira
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@406847 13f79535-47bb-0310-9956-ffa450edef68
2006-05-16 05:48:03 +00:00