Simon Kitching
5f4f76c19c
Provide facility to add URLs to the classpath.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369711 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:53:44 +00:00
Simon Kitching
dac6d6bee6
Remove unused imports
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369709 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:52:41 +00:00
Simon Kitching
e934c30030
Simple code cleanup; classloader for LogFactory class is computed once at startup.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@369705 13f79535-47bb-0310-9956-ffa450edef68
2006-01-17 07:22:21 +00:00
Simon Kitching
0137795092
Tidy imports only
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@360479 13f79535-47bb-0310-9956-ffa450edef68
2006-01-01 07:42:12 +00:00
Simon Kitching
8b1398cfa1
Concrete subclass of the generic log4j tests, bound to log4j12.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@220002 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 06:09:51 +00:00
Simon Kitching
b1d6285f15
Implement a cleaner mechanism for setting up a test suite for classes whose
...
dependent libs are not present in the system classpath. The class containing
the suite() method *does not have to be* the class that contains the test
methods. By taking advantage of this, we can avoid the reflection stuff and
the trivial helper class that was introduced earlier to solve this same
problem.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@220001 13f79535-47bb-0310-9956-ffa450edef68
2005-07-21 06:07:30 +00:00
Simon Kitching
72a6e4f9f6
log4j tests now all work fine with <batchtest> so remove special case code for log4j.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209738 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 11:46:41 +00:00
Simon Kitching
697b414639
Fix up log4j12 tests so no log4j lib needs to be in the classpath
...
when the suite() method is called on any TestCase class.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209737 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 11:45:25 +00:00
Simon Kitching
a9958f04f8
Remove obsolete unit test files; see StandardTests class and its concrete subclasses.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209731 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:09:39 +00:00
Simon Kitching
41c4b10250
Major restructure of log4j unit tests. All the same tests are done as before,
...
but in a (hopefully) clearer and more maintainable way.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209730 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:08:25 +00:00
Simon Kitching
8831d63879
Minor tweak to javadocs
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209729 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 10:07:13 +00:00
Simon Kitching
9d0c1a7422
Rename LogTest to LogTestCase for consistency.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209713 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:08:54 +00:00
Simon Kitching
bfb095df60
Fail the build if any unit test fails. Also removed some redundant stuff.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209712 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:03:41 +00:00
Simon Kitching
4bd1bd70a0
* renamed test cases from Test.java to TestCase.java for consistency.
...
* removed unneeded suite and constructor methods.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209711 13f79535-47bb-0310-9956-ffa450edef68
2005-07-08 07:02:20 +00:00
Simon Kitching
3083b9a334
Removed method PathableClassLoader.getResources as in java1.4 and earlier this
...
method is final (can't be overridden). This means changing the associated unit
test too. As getResources doesn't explicitly indicate the order in which
resources will be returned this is technically ok, though a little ugly.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209571 13f79535-47bb-0310-9956-ffa450edef68
2005-07-07 07:32:16 +00:00
Simon Kitching
d0281e782f
Added getlibs task to automatically download all dependencies.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209455 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 13:02:33 +00:00
Simon Kitching
7bac91638b
Minor tweak to unit testing stuff.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209454 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:42:56 +00:00
Simon Kitching
1b26226906
Massive removal of custom test targets now most tests support the PathableTestSuite stuff.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209453 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:41:30 +00:00
Simon Kitching
4c8d747d37
Use custom classloader setups to work around SimpleLog static insanity.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209452 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:37:25 +00:00
Simon Kitching
2649aa8c6d
Remove unused constructor
...
Set necessary System properties in code rather than assuming build.xml will set them.
Call LogFactory.releaseAll before each test for cleanliness.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209451 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:09:58 +00:00
Simon Kitching
35b1d6c80e
Remove unused constructor, and clear LogFactory.factories cache before each test for cleanliness.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209450 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:07:40 +00:00
Simon Kitching
b808fe4666
Minor comment fix.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209449 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 12:06:32 +00:00
Simon Kitching
02ee1e9086
Rename from BadHashtablePropertyTest to BadHashtablePropertyTestCase for consistency.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209420 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 07:18:39 +00:00
Simon Kitching
6ceb7c0ab3
Change to using PathableTestSuite - this permits the test to be significantly simplified.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209419 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 07:17:45 +00:00
Simon Kitching
ac38503d3b
Added comments re this class and junit reloadable classloaders.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209418 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 07:14:03 +00:00
Simon Kitching
b69deb90dd
Move duplicated testResetContext tests out of ParentFirst and ChildFirst into GeneralTestCase.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209414 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 06:28:24 +00:00
Simon Kitching
c542c21c29
New test case for additional PathableTestSuite functionality.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209413 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 06:26:02 +00:00
Simon Kitching
4a0c892957
Save and restore system properties around tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209412 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 06:19:32 +00:00
Simon Kitching
1996c5af1b
Renamed AltHashtableTest to AltHashtableTestCase for consistency.
...
Also removed unneeded constructor.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209410 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 05:29:57 +00:00
Simon Kitching
1ac4b57165
Rename AvalonLoggerTest to AvalonLoggerTestCase for consistency.
...
Also remove unneeded constructor.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209408 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 05:15:39 +00:00
Simon Kitching
85836bd32e
JUnit TestCase class has had a default constructor for a long while now,
...
so remove pointless constructors for TestCase subclasses.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209407 13f79535-47bb-0310-9956-ffa450edef68
2005-07-06 05:14:12 +00:00
Simon Kitching
03f98ac40f
Update the test.pathable target. Note that the optional ant junit task is
...
now used in this file - see comments at head of file for details.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209252 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 09:52:57 +00:00
Simon Kitching
ec7eab0150
Added test cases for child-first behaviour of PathableClassLoader.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209245 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:50:41 +00:00
Simon Kitching
ab117df3c7
Fix bugs with child-first behaviour.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209244 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:49:54 +00:00
Simon Kitching
b1f4809445
Renamed to ParentFirstTestCase.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209243 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:49:03 +00:00
Simon Kitching
773fe5af3c
Renamed from PathableTestCase, as it really tests parent-first classloading.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209240 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 08:10:19 +00:00
Simon Kitching
f19ff6e62e
Add adapters jar to list of logical jars available to unit test code.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209202 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 03:42:38 +00:00
Simon Kitching
184e3781ef
Remove unused imports.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209201 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 03:42:02 +00:00
Simon Kitching
27d2386598
Added more unit tests.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@209198 13f79535-47bb-0310-9956-ffa450edef68
2005-07-05 03:40:50 +00:00
Simon Kitching
14cd0d8326
Fix copyright statements on new files.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@202474 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 03:36:02 +00:00
Simon Kitching
6366c32135
Changes due to testcase classes now controlling their own classpaths.
...
* The Wrapper class is no longer used.
* The log4j tests run with log4j13 in the classpath have been
removed for now; will implement this via another mechanism in
the near future.
Note that there are expected to be more cleanups applied to this
file in the near future.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@202473 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 03:27:56 +00:00
Simon Kitching
9b59c323f6
Allow testcases to control the classloader hierarchy used during the test.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@202471 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 03:21:03 +00:00
Simon Kitching
8c1e4752ba
Update version number to 1.1-dev
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@202467 13f79535-47bb-0310-9956-ffa450edef68
2005-06-30 02:24:57 +00:00
Simon Kitching
486c9ab798
Need to include discovery as dependency for any target that tries
...
to test xxx.present variables.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201967 13f79535-47bb-0310-9956-ffa450edef68
2005-06-27 11:04:03 +00:00
Simon Kitching
c68672222d
Add dependency on prepare targets for new compile targets, so that if they
...
are run independently the destination dirs will exist.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201921 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 23:08:36 +00:00
Simon Kitching
e939036229
Improve warning messages for missing libs (thanks to Dennis Lundberg).
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201824 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 04:17:11 +00:00
Simon Kitching
0ecda83b98
Split compile target into separate pieces in order to assist gump.
...
Target compile-only is now:
show-lib-presence,compile-non-log4j,compile-log4j12,compile-log4j13,build-jar
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201823 13f79535-47bb-0310-9956-ffa450edef68
2005-06-26 04:11:08 +00:00
Simon Kitching
98c3f0eb0a
Change version# to 1.1-dev
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@201549 13f79535-47bb-0310-9956-ffa450edef68
2005-06-24 03:02:13 +00:00
Simon Kitching
549db6b069
Split Log4JLogger into Log4J12Logger and Log4J13Logger
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@193079 13f79535-47bb-0310-9956-ffa450edef68
2005-06-23 05:40:32 +00:00
Simon Kitching
60c7478968
Add comments only.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@191652 13f79535-47bb-0310-9956-ffa450edef68
2005-06-21 11:59:31 +00:00
Simon Kitching
330e17e0ed
The created jarfiles now have the version# embedded in their names, so the
...
test wrapper class can't just hard-wire their names any more. Instead, we
pass the jarfile names in from the build.xml file as system properties.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@191630 13f79535-47bb-0310-9956-ffa450edef68
2005-06-21 06:21:55 +00:00
Simon Kitching
0f272fa209
Issue warning instead of error when ALLOW_FLAWED_CONTEXT is true and the context
...
classloader is not related to the classloader used for LogFactoryImpl. This can
happen with JBoss' Unified Classloader approach. See bugzilla#35423.
Thanks to Brian Stansberry for the patch.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@191431 13f79535-47bb-0310-9956-ffa450edef68
2005-06-20 10:09:51 +00:00
Simon Kitching
e2a17e8fb8
Simplify discovery by using table of classes to check. Also enhance diagnostics a little.
...
There are no functional changes in this patch.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@191107 13f79535-47bb-0310-9956-ffa450edef68
2005-06-17 08:09:22 +00:00
Simon Kitching
5af28f1cff
Add note re isXXXAvailable methods in LogFactoryImpl.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190902 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 12:11:50 +00:00
Simon Kitching
d3c6139f66
Minor cleanups.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190899 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 11:35:22 +00:00
Simon Kitching
3e05e7977f
Initial cut at releasenotes for next release.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190898 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 11:08:10 +00:00
Simon Kitching
9da2f04b89
Minor simplification.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190897 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 11:06:30 +00:00
Simon Kitching
fe9bc1bc5f
Utility class for users of commons-logging in webapps.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190896 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 11:02:47 +00:00
Simon Kitching
70458b7b6e
Add an implementation of ServletContextListener for use in avoiding memory leaks in webapps.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190891 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 09:59:40 +00:00
Simon Kitching
2b9b9b6f24
Add version into jarname as done by maven, eg commons-logging-1.x.x.jar
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190888 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 09:23:03 +00:00
Simon Kitching
c563002215
Create commons-logging-adapters.jar file in dist target.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190887 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 08:06:43 +00:00
Simon Kitching
a843d5dbc0
Build commons-logging-adapters.jar from maven build.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190866 13f79535-47bb-0310-9956-ffa450edef68
2005-06-16 04:10:24 +00:00
Simon Kitching
9ecd27bf48
Fixed copy-and-paste error in getConfigurationValue when getting from system property.
...
Thanks to Brian Stansberry for spotting this.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190581 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 11:09:44 +00:00
Simon Kitching
b35e8d3b53
Avoid wrapping exception - patch by Brian Stansberry
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190569 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 10:23:08 +00:00
Simon Kitching
a3f8e5302a
Merge in the allow-flawed branch, as there were no objections.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@190565 13f79535-47bb-0310-9956-ffa450edef68
2005-06-14 10:03:48 +00:00
Simon Kitching
ca0188c41e
Fix bug introduced by recent changes. Thanks to Brian Stansberry for the patch.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@180287 13f79535-47bb-0310-9956-ffa450edef68
2005-06-06 10:33:37 +00:00
Simon Kitching
d7f774a5bb
Syntactic cleanups only:
...
* javadoc layout cleanup
* variable & param renames
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179572 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 10:41:12 +00:00
Simon Kitching
17c6d98369
Remove ugly LOG_INTERFACE string and weird log-class-lookup code
...
from within the reportInvalidLogAdapter method.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179571 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 10:28:35 +00:00
Simon Kitching
eb93a324e4
Clean up LoadTest testcase and include in standard test suite.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179566 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 09:12:24 +00:00
Simon Kitching
d71598bd0f
Exclude package.html files from the jar files.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179559 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 08:35:54 +00:00
Simon Kitching
ac7a0f8505
Changed createLogFromClass method to return null on recoverable failure,
...
and only throw an exception on unrecoverable failure. This simplifies
the code a fair bit.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179546 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 07:39:39 +00:00
Simon Kitching
5c06195efb
Ensure an ExceptionInInitializerError occurs when trying to create an instance
...
of these classes in pre-1.4 JVMs. Without this, an InvocationTargetException
could be thrown when calling the constructor but that could also be caused
by a number of other reasons which we don't want to ignore.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179529 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 06:31:52 +00:00
Simon Kitching
df0d0ed341
Ensure class files generated are compatible with 1.1 JVMs
...
(although we only support 1.2+ at the moment).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179511 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 05:05:18 +00:00
Simon Kitching
15956fee82
Change to discovery process: testing whether various logging
...
libraries are available is now done by trying to actually
create an instance.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@179500 13f79535-47bb-0310-9956-ffa450edef68
2005-06-02 04:09:16 +00:00
Simon Kitching
195ac37a76
Add better reporting when jdk14 handler setup isn't right.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@177867 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:41:23 +00:00
Simon Kitching
75c8135c03
Fix javadoc and fix java1.5 compile warnings.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@177071 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:04:54 +00:00
Simon Kitching
a408e51f46
Ensure class file format is compatible with JVM 1.1
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@176581 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:02:02 +00:00
Simon Kitching
a04edd5ec6
Updated obsolete goal java:jar to jar:jar
...
Removed obsolete exclude of CVS subdirs
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@176497 13f79535-47bb-0310-9956-ffa450edef68
2005-05-23 01:01:36 +00:00
Simon Kitching
110f2a234b
Added internal diagnostics
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@171301 13f79535-47bb-0310-9956-ffa450edef68
2005-05-22 10:43:52 +00:00
Simon Kitching
c485c20b1e
Added internal diagnostics
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@171300 13f79535-47bb-0310-9956-ffa450edef68
2005-05-22 10:43:06 +00:00
Simon Kitching
c1f16b5d2a
Just moved some code out of method getLogConstructor into its own
...
method reportInvalidLogAdapter to make code easier to read (esp.
as I'm going to add more code to this method later).
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170512 13f79535-47bb-0310-9956-ffa450edef68
2005-05-17 04:27:57 +00:00
Simon Kitching
e985f2a051
Minor AccessController-related tidyups:
...
* Use static initialiser block to initialise factories rather than variable initialiser.
* Add static member thisClassLoader to cache classloader for the LogFactory class;
change all calls to LogFactory.class.getClassLoader() to just use thisClassLoader.
* Change getContextClassLoader to always use AccessController (actually, rename
getContextClassLoader to directGetContextClassLoader, and make getContextClassLoader
a wrapper around that).
* define a method getClassLoader(clazz) that just does clazz.getClassLoader for now;
change all calls to clazz.getClassLoader into getClassLoader(clazz)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170501 13f79535-47bb-0310-9956-ffa450edef68
2005-05-17 01:43:32 +00:00
Simon Kitching
0a54560d5c
oops .. should have added myself to the developers list before doing any commits.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170367 13f79535-47bb-0310-9956-ffa450edef68
2005-05-16 11:41:35 +00:00
Simon Kitching
851f7c5f33
Simple rearrangement of code only; no functionality change (though the diffs don't show that clearly).
...
Turned a complicated anonymous class declaration into a simple anonymous class that calls a method
on LogFactory containing all the code previously within the anonymous class declaration.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@170355 13f79535-47bb-0310-9956-ffa450edef68
2005-05-16 10:41:44 +00:00
Simon Kitching
3200e8aa2e
Add test case for situation where context classloader is null.
...
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@169388 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 00:47:03 +00:00
Simon Kitching
7839295a8e
Fix for case where classloader key to "factories" member is null.
...
This can happen in JDK1.1 and in embedded systems work. Without this
fix, a new LogFactoryImpl is created each time LogFactory.getLog(..)
is called! See bugzilla#10825, comment#22. Thanks to Erik Erskine for
bug report and fix.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk@169387 13f79535-47bb-0310-9956-ffa450edef68
2005-05-10 00:45:18 +00:00