[EMAIL PROTECTED]: Project logging-log4j-chainsaw (in module logging-chainsaw) failed

2007-06-20 Thread noreply
To whom it may engage...

This is an automated request, but not an unsolicited one. For 
more information please visit http://gump.apache.org/nagged.html, 
and/or contact the folk at [EMAIL PROTECTED]

Project logging-log4j-chainsaw has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 30 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- logging-log4j-chainsaw :  Chainsaw log viewer


Full details are available at:

http://vmgump.apache.org/gump/public/logging-chainsaw/logging-log4j-chainsaw/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -INFO- Failed with reason build failed
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/logging-chainsaw/logging-log4j-chainsaw/gump_work/build_logging-chainsaw_logging-log4j-chainsaw.html
Work Name: build_logging-chainsaw_logging-log4j-chainsaw (Type: Build)
Work ended in a state of : Failed
Elapsed: 6 secs
Command Line: /opt/jdk1.5/bin/java -Djava.awt.headless=true 
-Xbootclasspath/p:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar:/usr/local/gump/public/workspace/xml-xerces2/build/xercesImpl.jar
 org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml 
-Dbuild.sysclasspath=only -Dversion=20062007 -Dgump=true chainsaw.jar 
[Working Directory: /usr/local/gump/public/workspace/logging-chainsaw]
CLASSPATH: 
/opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/logging-chainsaw/classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/packages/junit3.8.1/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis-ext.jar:/usr/local/gump/public/workspace/jakarta-oro/jakarta-oro-20062007.jar:/usr/local/gump/public/workspace/logging-log4j/dist/lib/log4j-20062007.jar:/usr/local/gump/public/workspace/logging-log4j/dist/lib/log4j-optional-20062007.jar:/usr/local/gump/public/workspace/logging-log4j/dist/lib/log4j-oro-20062007.jar:/usr/local/gump/public/workspace/logging-log4j/dist/lib/log4j-xml-20062007.jar:/usr/local/gump/public/workspace/jakarta-commons/vfs/target/commons-vfs-20062007.jar:/usr/local/gump/public/workspace/xstream/xstream/target/xstream-20062007.jar:/usr/local/gump/public/workspace/jmdns/lib/jmdns.jar:/usr/local/gump/public/workspace/jakarta-servletapi-4/lib/servlet.jar:/usr/local/gump/packages/jms1.1/lib/jms.jar:/usr/local/gump/packages/jmx-1_2_1-bin/lib/jmxri.jar:/usr/local/gump/packages/jmx-1_2_1-bin/lib/jmxtools.jar:/usr/local/gump/public/workspace/junit/dist/junit-20062007.jar:/usr/local/gump/packages/javamail-1.4/mail.jar:/usr/local/gump/packages/javamail-1.4/lib/mailapi.jar
-
[javac]  ^
[javac] 
/x1/gump/public/workspace/logging-chainsaw/src/main/java/org/apache/log4j/chainsaw/LogPanel.java:1412:
 warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has 
been deprecated
[javac] .getSettingsDirectory(), 
URLEncoder.encode(identifier) + .xml);
[javac]^
[javac] 
/x1/gump/public/workspace/logging-chainsaw/src/main/java/org/apache/log4j/chainsaw/LogPanel.java:1462:
 warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has 
been deprecated
[javac] SettingsManager.getInstance().getSettingsDirectory(), 
URLEncoder.encode(identifier) + COLORS_EXTENSION);
[javac] 
^
[javac] 
/x1/gump/public/workspace/logging-chainsaw/src/main/java/org/apache/log4j/chainsaw/LogPanel.java:1482:
 warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has 
been deprecated
[javac]   .getSettingsDirectory(), 
URLEncoder.encode(identifier) + .xml);
[javac]  ^
[javac] 
/x1/gump/public/workspace/logging-chainsaw/src/main/java/org/apache/log4j/chainsaw/LogPanel.java:2125:
 warning: [deprecation] encode(java.lang.String) in java.net.URLEncoder has 
been deprecated
[javac] URLEncoder.encode(getIdentifier() + 

How to get the properties of an appender at Runtime

2007-06-20 Thread samurfriend

Friends,

In our applicaiton, we have the log4j_conf.xml and we have different
appenders. Now my work is show these appenders details to the user and allow
him to modify and then need to change the modified contents in the XML.

My Questions are 

1. How can i get all the properties of an appender(i am able to get the
instance , but dont want to use any getProperties() of my appender. Any
Log4j facility available.

2. I am able to succesfully the Level for a particular logger. But the
changed item is reflecting in my application logging, but the file
log4j_conf.xml is not getting modified. Any idea to change the file too?

Waiting for a reply.

Regards
Sam
-- 
View this message in context: 
http://www.nabble.com/How-to-get-the-properties-of-an-appender-at-Runtime-tf3953865.html#a11218299
Sent from the Log4j - Dev mailing list archive at Nabble.com.


svn commit: r549242 - in /logging/sandbox/jul-to-log4j-bridge: pom.xml src/main/java/org/apache/logging/julbridge/JULLog4jBridge.java src/test/java/org/apache/log4j/jul/JULReceiverTest.java src/test/j

2007-06-20 Thread psmith
Author: psmith
Date: Wed Jun 20 14:26:06 2007
New Revision: 549242

URL: http://svn.apache.org/viewvc?view=revrev=549242
Log:
Fix for test cases breaking under Maven AND Eclipse.

Turns out that a failing test works fine by itself but not in conjunction with 
the other tests
running because an Filter is left configured in the JUL system, DESPITE it's
LogManager.reset() being called.  

One has to manually remove all the registered filters even if calling reset().  
That's not much of a reset()
method if you ask me.

The fix makes sure that each unit test tears down the JUL configuration 
correctly before the next test case
runs.


Modified:
logging/sandbox/jul-to-log4j-bridge/pom.xml

logging/sandbox/jul-to-log4j-bridge/src/main/java/org/apache/logging/julbridge/JULLog4jBridge.java

logging/sandbox/jul-to-log4j-bridge/src/test/java/org/apache/log4j/jul/JULReceiverTest.java

logging/sandbox/jul-to-log4j-bridge/src/test/java/org/apache/logging/julbridge/TestLogPosting.java

Modified: logging/sandbox/jul-to-log4j-bridge/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/pom.xml?view=diffrev=549242r1=549241r2=549242
==
--- logging/sandbox/jul-to-log4j-bridge/pom.xml (original)
+++ logging/sandbox/jul-to-log4j-bridge/pom.xml Wed Jun 20 14:26:06 2007
@@ -146,11 +146,6 @@
   groupIdorg.codehaus.mojo/groupId
   artifactIdjxr-maven-plugin/artifactId
   /plugin
-   plugin 
-   groupIdorg.codehaus.mojo/groupId 
-   artifactIdcobertura-maven-plugin/artifactId
-   version2.0/version
-   /plugin 
   plugin
 artifactIdmaven-changes-plugin/artifactId
 configuration

Modified: 
logging/sandbox/jul-to-log4j-bridge/src/main/java/org/apache/logging/julbridge/JULLog4jBridge.java
URL: 
http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/src/main/java/org/apache/logging/julbridge/JULLog4jBridge.java?view=diffrev=549242r1=549241r2=549242
==
--- 
logging/sandbox/jul-to-log4j-bridge/src/main/java/org/apache/logging/julbridge/JULLog4jBridge.java
 (original)
+++ 
logging/sandbox/jul-to-log4j-bridge/src/main/java/org/apache/logging/julbridge/JULLog4jBridge.java
 Wed Jun 20 14:26:06 2007
@@ -10,6 +10,7 @@
  */
 package org.apache.logging.julbridge;
 
+import java.util.Enumeration;
 import java.util.logging.Filter;
 import java.util.logging.Level;
 
@@ -119,10 +120,16 @@
 /**
  * Reverse of [EMAIL PROTECTED] #assimilate()}, disconnects the bridge
  * from the java.util.logging subsystem by resetting that framework
- * back to it's default configuration.
+ * back to it's default configuration (removes all Handlers and Filters)
  */
 public static void repatriate() {
-java.util.logging.LogManager.getLogManager().reset();
+
+java.util.logging.LogManager logManager = 
java.util.logging.LogManager.getLogManager();
+Enumeration loggerNames = logManager.getLoggerNames();
+while(loggerNames.hasMoreElements()) {
+
logManager.getLogger(loggerNames.nextElement().toString()).setFilter(null);
+}
+logManager.reset();
 
 }
 

Modified: 
logging/sandbox/jul-to-log4j-bridge/src/test/java/org/apache/log4j/jul/JULReceiverTest.java
URL: 
http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/src/test/java/org/apache/log4j/jul/JULReceiverTest.java?view=diffrev=549242r1=549241r2=549242
==
--- 
logging/sandbox/jul-to-log4j-bridge/src/test/java/org/apache/log4j/jul/JULReceiverTest.java
 (original)
+++ 
logging/sandbox/jul-to-log4j-bridge/src/test/java/org/apache/log4j/jul/JULReceiverTest.java
 Wed Jun 20 14:26:06 2007
@@ -20,6 +20,8 @@
 import java.util.Iterator;
 import java.util.List;
 
+import junit.framework.TestCase;
+
 import org.apache.log4j.LogManager;
 import org.apache.log4j.Logger;
 import org.apache.log4j.LoggerRepositoryExImpl;
@@ -27,10 +29,9 @@
 import org.apache.log4j.spi.LoggerRepository;
 import org.apache.log4j.spi.LoggingEvent;
 import org.apache.log4j.spi.RepositorySelector;
+import org.apache.logging.julbridge.JULLog4jBridge;
 import org.apache.logging.julbridge.MockAppender;
 
-import junit.framework.TestCase;
-
 public class JULReceiverTest extends TestCase {
 
 private final Object repositorySelectorGuard = new Object();
@@ -40,6 +41,7 @@
 
 protected void setUp() throws Exception {
 super.setUp();
+java.util.logging.LogManager.getLogManager().reset();
 mockAppender = new MockAppender();
 LogManager.resetConfiguration();
 LogManager.setRepositorySelector(new RepositorySelector() {
@@ -52,6 +54,7 @@
 
 protected void tearDown() throws Exception {
 super.tearDown();
+

svn commit: r549274 - in /logging/sandbox/jul-to-log4j-bridge: README.txt pom.xml src/changes/changes.xml src/site/apt/ src/site/apt/examples.apt src/site/apt/intro.apt src/site/apt/keyclasses.apt src

2007-06-20 Thread psmith
Author: psmith
Date: Wed Jun 20 15:11:04 2007
New Revision: 549274

URL: http://svn.apache.org/viewvc?view=revrev=549274
Log:
Tidied up site and documentation.


Added:
logging/sandbox/jul-to-log4j-bridge/src/site/apt/
logging/sandbox/jul-to-log4j-bridge/src/site/apt/examples.apt
logging/sandbox/jul-to-log4j-bridge/src/site/apt/intro.apt
logging/sandbox/jul-to-log4j-bridge/src/site/apt/keyclasses.apt
Modified:
logging/sandbox/jul-to-log4j-bridge/README.txt
logging/sandbox/jul-to-log4j-bridge/pom.xml
logging/sandbox/jul-to-log4j-bridge/src/changes/changes.xml
logging/sandbox/jul-to-log4j-bridge/src/site/site.xml

Modified: logging/sandbox/jul-to-log4j-bridge/README.txt
URL: 
http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/README.txt?view=diffrev=549274r1=549273r2=549274
==
--- logging/sandbox/jul-to-log4j-bridge/README.txt (original)
+++ logging/sandbox/jul-to-log4j-bridge/README.txt Wed Jun 20 15:11:04 2007
@@ -1,35 +1,9 @@
+Apache Logging Services - java.util.logging-log4j Bridge
+
 Bridging support between the java.util.logging (JUL) framework and log4j.
 
 Requirements: JDK 1.4+, and log4j 1.2.15 
 
 This library will not work with log4j 1.2.14 or earlier.
 
-Key classes:
-
-   * org.apache.logging.julbridge.JULLog4jBridge - main entry point to 
configure a bridge
-   * org.apache.logging.julbridge.JULLevelConverter - Because the JUL 
Level classes are quite different
- this converter interface performs the mapping into the log4j Level 
space.  In
- many cases you can use a default converter.
-   
-Example 1 - Completely take over JUL and route all LogRecords into log4j 
-
-   
-   JULLog4jBridge.assimilate();
-
-Example 2 - As (1), but using log4j XML configuration 
-
-
-   log4j:configuration xmlns:log4j=http://jakarta.apache.org/log4j/; 
debug=true
-  plugin name=julreceiver class=org.apache.log4j.jul.JULReceiver 
/
-  ..
-   /log4j:configuration
-
-Example 2 - Bridge a single JUL Logger
-===
-
-   JULLog4jBridge.bridgeJULLogger(foo);
-
-   This bridges all events posted to the 'foo' logger into log4j's Logger 
called 'foo'.
-
-   NOTE: this does NOT automatically bridge child Loggers.  
-
+Please read the documentation found in src/site/apt/.  
\ No newline at end of file

Modified: logging/sandbox/jul-to-log4j-bridge/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/pom.xml?view=diffrev=549274r1=549273r2=549274
==
--- logging/sandbox/jul-to-log4j-bridge/pom.xml (original)
+++ logging/sandbox/jul-to-log4j-bridge/pom.xml Wed Jun 20 15:11:04 2007
@@ -2,8 +2,9 @@
 project xmlns=http://maven.apache.org/POM/4.0.0; 
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; 
xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd;
   modelVersion4.0.0/modelVersion
   groupIdorg.apache.logging/groupId
-  artifactIdapache-juli-log4j-bridge/artifactId
-  version0.1.0/version
+  namejava.util.logging to log4j Bridge/name
+  artifactIdapache-jul-log4j-bridge/artifactId
+  version1.0.0-SNAPSHOT/version
   descriptionBridge JDK 1.4+ java.util.Logging to Apache log4j/description
   urlhttp://logging.apache.org/log4j/url
 issueManagement
@@ -69,9 +70,9 @@
/license
 /licenses
 scm
-   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/sandbox/juli-log4j-bridge/connection
-   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/sandbox/juli-log4j-bridge/developerConnection
-   
urlhttp://svn.apache.org/viewcvs.cgi/logging/sandbox/juli-logging-bridge/url
+   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/connection
+   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/sandbox/jul-to-log4j-bridge/developerConnection
+   
urlhttp://svn.apache.org/viewcvs.cgi/logging/sandbox/jul-to-log4j-bridge/url
 /scm
 organization
 nameApache Software Foundation/name
@@ -85,7 +86,7 @@
   dependency
 groupIdlog4j/groupId
 artifactIdlog4j/artifactId
-version1.2.15/version
+version1.2.14/version
   /dependency
 /dependencies
   /plugin

Modified: logging/sandbox/jul-to-log4j-bridge/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/src/changes/changes.xml?view=diffrev=549274r1=549273r2=549274
==
--- logging/sandbox/jul-to-log4j-bridge/src/changes/changes.xml (original)
+++ 

svn commit: r549320 - /logging/log4j/branches/v1_2-branch/pom.xml

2007-06-20 Thread carnold
Author: carnold
Date: Wed Jun 20 18:36:54 2007
New Revision: 549320

URL: http://svn.apache.org/viewvc?view=revrev=549320
Log:
[maven-release-plugin] prepare release v1_2_15_rc3

Modified:
logging/log4j/branches/v1_2-branch/pom.xml

Modified: logging/log4j/branches/v1_2-branch/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/pom.xml?view=diffrev=549320r1=549319r2=549320
==
--- logging/log4j/branches/v1_2-branch/pom.xml (original)
+++ logging/log4j/branches/v1_2-branch/pom.xml Wed Jun 20 18:36:54 2007
@@ -21,7 +21,7 @@
   artifactIdlog4j/artifactId
   packagingjar/packaging
   nameApache Log4j/name
-  version1.2.15-SNAPSHOT/version
+  version1.2.15/version
   properties
 currentVersion1.2.15/currentVersion
   /properties  
@@ -68,9 +68,9 @@
 /license
   /licenses
   scm
-   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch/connection
-   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch/developerConnection
-
urlhttp://svn.apache.org/viewcvs.cgi/logging/log4j/branches/v1_2-branch/url
+   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_15_rc3/connection
+   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_15_rc3/developerConnection
+urlhttp://svn.apache.org/viewcvs.cgi/logging/log4j/tags/v1_2_15_rc3/url
   /scm
   organization
 nameApache Software Foundation/name



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r549321 - in /logging/log4j/tags/v1_2_15_rc3: ./ BUILD-INFO.txt pom.xml src/assembly/bin.xml src/ntdll/build.xml tests/build.xml tests/run-tests.bat

2007-06-20 Thread carnold
Author: carnold
Date: Wed Jun 20 18:36:59 2007
New Revision: 549321

URL: http://svn.apache.org/viewvc?view=revrev=549321
Log:
[maven-release-plugin]  copy for tag v1_2_15_rc3

Added:
logging/log4j/tags/v1_2_15_rc3/
  - copied from r548942, logging/log4j/branches/v1_2-branch/
logging/log4j/tags/v1_2_15_rc3/BUILD-INFO.txt
  - copied unchanged from r549313, 
logging/log4j/branches/v1_2-branch/BUILD-INFO.txt
logging/log4j/tags/v1_2_15_rc3/pom.xml
  - copied unchanged from r549320, 
logging/log4j/branches/v1_2-branch/pom.xml
logging/log4j/tags/v1_2_15_rc3/src/assembly/bin.xml
  - copied unchanged from r549303, 
logging/log4j/branches/v1_2-branch/src/assembly/bin.xml
logging/log4j/tags/v1_2_15_rc3/src/ntdll/build.xml
  - copied unchanged from r549302, 
logging/log4j/branches/v1_2-branch/src/ntdll/build.xml
logging/log4j/tags/v1_2_15_rc3/tests/build.xml
  - copied unchanged from r549310, 
logging/log4j/branches/v1_2-branch/tests/build.xml
logging/log4j/tags/v1_2_15_rc3/tests/run-tests.bat
  - copied unchanged from r549310, 
logging/log4j/branches/v1_2-branch/tests/run-tests.bat


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r549322 - /logging/log4j/branches/v1_2-branch/pom.xml

2007-06-20 Thread carnold
Author: carnold
Date: Wed Jun 20 18:37:02 2007
New Revision: 549322

URL: http://svn.apache.org/viewvc?view=revrev=549322
Log:
[maven-release-plugin] prepare for next development iteration

Modified:
logging/log4j/branches/v1_2-branch/pom.xml

Modified: logging/log4j/branches/v1_2-branch/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/log4j/branches/v1_2-branch/pom.xml?view=diffrev=549322r1=549321r2=549322
==
--- logging/log4j/branches/v1_2-branch/pom.xml (original)
+++ logging/log4j/branches/v1_2-branch/pom.xml Wed Jun 20 18:37:02 2007
@@ -21,7 +21,7 @@
   artifactIdlog4j/artifactId
   packagingjar/packaging
   nameApache Log4j/name
-  version1.2.15/version
+  version1.2.16-SNAPSHOT/version
   properties
 currentVersion1.2.15/currentVersion
   /properties  
@@ -68,9 +68,9 @@
 /license
   /licenses
   scm
-   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_15_rc3/connection
-   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/log4j/tags/v1_2_15_rc3/developerConnection
-urlhttp://svn.apache.org/viewcvs.cgi/logging/log4j/tags/v1_2_15_rc3/url
+   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch/connection
+   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/log4j/branches/v1_2-branch/developerConnection
+
urlhttp://svn.apache.org/viewcvs.cgi/logging/log4j/branches/v1_2-branch/url
   /scm
   organization
 nameApache Software Foundation/name



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



log4j 1.2.15 RC 3

2007-06-20 Thread Curt Arnold
I've just pushed another release candidate out.  This won't be the  
last since I forgot to update the release date and another tweak to  
the POM that I'd like to do.  I'll likely refresh it tomorrow, but I  
thought I would leave it up overnight for any immediate feedback.   
The distributions are at http://people.apache.org/builds/logging/ 
log4j/1.2.15 and Maven artifacts are in the staging repo at http:// 
people.apache.org/build/logging/repo.


The big new change is this release was built on Ubuntu Linux 6.06-1  
(Dapper Drake) using Sun Java 6 (but targeting JDK 1.1) and an MinGW  
cross compiler (for NTEventLogAppender.dll) instead of Windows 2000  
and JDK 1.3.   Dapper Drake is a Long Term Support release of Ubuntu  
and a prebuild VMWare Applicance is available and was used as a  
starting point.  The instructions at http://svn.apache.org/repos/asf/ 
logging/log4j/branches/v1_2-branch/BUILD-INFO.txt should allow you to  
set up an identical build environment in not much longer than the  
download time.  Hopefully we can use that build environment across  
the components, log4j 2.0 and log4cxx.


I tested a earlier builds on JDK 1.2 and 1.3 on Windows and java-gcj  
1.4.2.  JDK 1.3 passed all tests without incident.  JDK 1.2 would  
report IllegalStateExceptions in the XML parser when reading  
configuration files and would print diagnostic messages about  
problems with the JIT, but many tests still passed.  I vaguely recall  
seeing similar behavior with earlier releases, so it may not be a  
regression from earlier versions of log4j.  java-gcj would fail one  
test in DRFATest where the rollover time was wrong on October 27 or  
28th and only on that date.  I attempted to debug on java-gcj with  
Eclipse, but wasn't able to get it to stop on breakpoints (perhaps a  
bundled log4j was interfering).  I don't think that is a regression  
either, perhaps a run-time library bug.  I have not tested JRockit  
with this release, but earlier (non Ubuntu) builds passed all tests.


I'd appreciate any feedback on the build environment setup and any  
success in reproducing the build.  There are some unavoidable  
differences between builds, Javadoc puts timestamps in HTML comments  
and jar files also contain timestamps.  Something like the following  
can be used to compare a test and a reference release:


mkdir test
cd test
tar -xvzf ~/log4j/target/log4j-1.2.15.tar.gz
cd apache-log4j-1.2.15
jar xf log4j-1.2.15.jar
hexdump NTEventLogAppender.dll  NTEventLogAppender.hex
cd ../..
mkdir reference
cd reference
tar -xvzf ~/downloads/apache-log4j-1.2.15_rc3.tar.gz
cd apache-log4j-1.2.15
jar xf log4j-1.2.15.jar
hexdump NTEventLogAppender.dll  NTEventLogAppender.hex
cd ../..
diff -r reference test

Hopefully all .class files are identical, HTML only varies by  
timestamps in comments and perhaps a few bytes in the dump of the  
NTEventLogAppender.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: log4j 1.2.15 RC 3

2007-06-20 Thread Paul Smith


On 21/06/2007, at 1:27 PM, Curt Arnold wrote:

I've just pushed another release candidate out.  This won't be the  
last since I forgot to update the release date and another tweak to  
the POM that I'd like to do.  I'll likely refresh it tomorrow, but  
I thought I would leave it up overnight for any immediate  
feedback.  The distributions are at http://people.apache.org/builds/ 
logging/log4j/1.2.15 and Maven artifacts are in the staging repo at  
http://people.apache.org/build/logging/repo.



the repo url doesn't work for me.



mkdir test
cd test
tar -xvzf ~/log4j/target/log4j-1.2.15.tar.gz
cd apache-log4j-1.2.15
jar xf log4j-1.2.15.jar
hexdump NTEventLogAppender.dll  NTEventLogAppender.hex
cd ../..
mkdir reference
cd reference
tar -xvzf ~/downloads/apache-log4j-1.2.15_rc3.tar.gz
cd apache-log4j-1.2.15
jar xf log4j-1.2.15.jar
hexdump NTEventLogAppender.dll  NTEventLogAppender.hex
cd ../..
diff -r reference test



Would running a jdiff report between 1.2.14 and 15 help?

Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jul-log4j-bridge distribution test

2007-06-20 Thread Curt Arnold


On Jun 20, 2007, at 9:10 PM, Paul Smith wrote:

I've been tweaking the jul-log4j-bridge pom to experiment with the  
distribution mechanism, and have placed a site and repo sample here:


http://people.apache.org/~psmith/logging.apache.org/

I'm not sure why the source distribution doesn't go with it.  Any  
ideas appreciated.


Paul


You need to specify a maven-source-plugin in your builds section.   
Here is a section borrowed from the component's pom.xml.



Index: pom.xml
===
--- pom.xml (revision 549346)
+++ pom.xml (working copy)
@@ -126,6 +126,27 @@
/executions
/configuration
/plugin
+  plugin
+artifactIdmaven-javadoc-plugin/artifactId
+executions
+execution
+goals
+goaljar/goal
+goaljavadoc/goal
+/goals
+/execution
+/executions
+  /plugin
+  plugin
+artifactIdmaven-source-plugin/artifactId
+executions
+execution
+goals
+goaljar/goal
+/goals
+/execution
+/executions
+  /plugin
/plugins
/build
dependencies



Re: jul-log4j-bridge distribution test

2007-06-20 Thread Paul Smith

Thanks muchly!

On 21/06/2007, at 1:55 PM, Curt Arnold wrote:



On Jun 20, 2007, at 9:10 PM, Paul Smith wrote:

I've been tweaking the jul-log4j-bridge pom to experiment with the  
distribution mechanism, and have placed a site and repo sample here:


http://people.apache.org/~psmith/logging.apache.org/

I'm not sure why the source distribution doesn't go with it.  Any  
ideas appreciated.


Paul


You need to specify a maven-source-plugin in your builds section.   
Here is a section borrowed from the component's pom.xml.



Index: pom.xml
===
--- pom.xml (revision 549346)
+++ pom.xml (working copy)
@@ -126,6 +126,27 @@
/executions
/configuration
/plugin
+  plugin
+artifactIdmaven-javadoc-plugin/artifactId
+executions
+execution
+goals
+goaljar/goal
+goaljavadoc/goal
+/goals
+/execution
+/executions
+  /plugin
+  plugin
+artifactIdmaven-source-plugin/artifactId
+executions
+execution
+goals
+goaljar/goal
+/goals
+/execution
+/executions
+  /plugin
/plugins
/build
dependencies



Paul Smith
Core Engineering Manager

Aconex
The easy way to save time and money on your project

696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200  Fax: +61 3 9240 0299
Email: [EMAIL PROTECTED]  www.aconex.com

This email and any attachments are intended solely for the addressee.  
The contents may be privileged, confidential and/or subject to  
copyright or other applicable law. No confidentiality or privilege is  
lost by an erroneous transmission. If you have received this e-mail  
in error, please let us know by reply e-mail and delete or destroy  
this mail and all copies. If you are not the intended recipient of  
this message you must not disseminate, copy or take any action in  
reliance on it. The sender takes no responsibility for the effect of  
this message upon the recipient's computer system.






svn commit: r549361 - /logging/sandbox/jul-to-log4j-bridge/pom.xml

2007-06-20 Thread psmith
Author: psmith
Date: Wed Jun 20 21:35:38 2007
New Revision: 549361

URL: http://svn.apache.org/viewvc?view=revrev=549361
Log:
Added bundling of javadoc and source code to the maven artifacts.

Thanks to Curt for the info on this one.



Modified:
logging/sandbox/jul-to-log4j-bridge/pom.xml

Modified: logging/sandbox/jul-to-log4j-bridge/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/sandbox/jul-to-log4j-bridge/pom.xml?view=diffrev=549361r1=549360r2=549361
==
--- logging/sandbox/jul-to-log4j-bridge/pom.xml (original)
+++ logging/sandbox/jul-to-log4j-bridge/pom.xml Wed Jun 20 21:35:38 2007
@@ -126,6 +126,27 @@
/executions
/configuration
/plugin
+   plugin
+  artifactIdmaven-javadoc-plugin/artifactId
+  executions
+  execution
+  goals
+  goaljar/goal
+  goaljavadoc/goal
+  /goals
+  /execution
+  /executions
+/plugin
+plugin
+  artifactIdmaven-source-plugin/artifactId
+  executions
+  execution
+  goals
+  goaljar/goal
+  /goals
+  /execution
+  /executions
+/plugin
/plugins
/build
dependencies



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: log4j 1.2.15 RC 3

2007-06-20 Thread Paul Smith
I've done the following quick test to compare 1.2.14-1.2.15.  After  
unpacking both, I compared the contents of the respective jars.  One  
way to see missing/additional files was this:


unzip -l log4j-1.2.14.jar  /tmp/log4j.1.2.14.txt
..
unzip -l log4j-1.2.15.jar  /tmp/log4j.1.2.15.txt

cat log4j.1.2.14.txt | awk '{print $NF}' | sort  a
cat log4j.1.2.15.txt | awk '{print $NF}' | sort  b

comm -3 a b

This shows all the file entries that are not in both jars.  In this  
case, there are only new entries in the 1.2.15 distribution:


[EMAIL PROTECTED] tmp]$ comm -3 a b
log4j-1.2.14.jar
log4j-1.2.15.jar
META-INF/maven/
META-INF/maven/log4j/
META-INF/maven/log4j/log4j/
META-INF/maven/log4j/log4j/pom.properties
META-INF/maven/log4j/log4j/pom.xml
NTEventLogAppender.o
org_apache_log4j_nt_NTEventLogAppender.h
org_apache_log4j_Priority.h
org/apache/log4j/xml/UnrecognizedElementHandler.class

Obviously the 2 jar names are different, and the the maven stuff is  
expected.   The .o and .h files are new, but probably benign.  The  
new class, IIRC, is expected in 1.2.15.


I thought of doing byte size comparison between the file entries in  
the jar, but I'm not sure what that would tell us.


From the above test, the jar looks ok to me.

A Jdiff report would be nice I think, just to compare the binary  
compatibility aspects.


Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r549369 - in /logging/log4j/companions/component/trunk: build.xml pom.xml src/changes/changes.xml

2007-06-20 Thread carnold
Author: carnold
Date: Wed Jun 20 21:59:55 2007
New Revision: 549369

URL: http://svn.apache.org/viewvc?view=revrev=549369
Log:
Bug 42094: Switch back to junit 3.8.1 for pre-JDK 5, support testing existing 
jars

Modified:
logging/log4j/companions/component/trunk/build.xml
logging/log4j/companions/component/trunk/pom.xml
logging/log4j/companions/component/trunk/src/changes/changes.xml

Modified: logging/log4j/companions/component/trunk/build.xml
URL: 
http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/build.xml?view=diffrev=549369r1=549368r2=549369
==
--- logging/log4j/companions/component/trunk/build.xml (original)
+++ logging/log4j/companions/component/trunk/build.xml Wed Jun 20 21:59:55 2007
@@ -21,6 +21,8 @@
 This is a minimal build file to support Gump.
 Use of Maven to build this component is recommended.
 
+Specify -Dcompanion.jar=foo.jar to test an previously prepared jar.
+
 --
 project default=test
 !--  use build.properties file or command line to override these 
properties  --
@@ -37,7 +39,7 @@
 
!--  Versions for dependencies   --
 property name=log4j.version value=1.2.8/
-property name=junit.version value=4.3.1/
+property name=junit.version value=3.8.1/

!--  Dependency locations - assumed to be in Maven 2 repository   --
 property name=junit.jar 
@@ -58,7 +60,7 @@
 /target
 
 
-target name=compile depends=init description=Compile implementation 
files
+target name=compile depends=init unless=companion.jar 
description=Compile implementation files
 mkdir dir=target/classes/
javac destdir=target/classes
srcdir=src/main/java
@@ -72,7 +74,7 @@
/copy
 /target
 
-target name=jar depends=compile description=Create jar
+target name=jar depends=compile unless=companion.jar 
description=Create jar
jar destfile=target/${project.jar}
 basedir=target/classes
manifest
@@ -86,7 +88,8 @@
/jar
 /target
 
-target name=test-compile depends=compile description=Compile test 
files
+target name=test-compile depends=jar description=Compile test files
+   property name=companion.jar value=target/${project.jar}/
 mkdir dir=target/test-classes/
javac destdir=target/test-classes
srcdir=src/test/java
@@ -94,7 +97,7 @@
   debug=${javac.debug}
   target=${javac.target}
   source=${javac.source}
-  classpath=${log4j.jar}:${junit.jar}:target/classes/
+  classpath=${log4j.jar}:${junit.jar}:${companion.jar}/
copy todir=target/test-classes overwrite=true
fileset dir=src/test/resources/
/copy
@@ -103,7 +106,7 @@
 
 target name=test depends=test-compile description=Run unit tests
junit printsummary=yes fork=true dir=target
-   classpath path=target/test-classes:target/classes:${log4j.jar}/
+   classpath 
path=target/test-classes:${companion.jar}:${log4j.jar}/
batchtest
fileset dir=src/test/java/
include name=**/*TestCase.java/

Modified: logging/log4j/companions/component/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/pom.xml?view=diffrev=549369r1=549368r2=549369
==
--- logging/log4j/companions/component/trunk/pom.xml (original)
+++ logging/log4j/companions/component/trunk/pom.xml Wed Jun 20 21:59:55 2007
@@ -175,7 +175,7 @@
 dependency
   groupIdjunit/groupId
   artifactIdjunit/artifactId
-  version4.3.1/version
+  version3.8.1/version
   scopetest/scope
 /dependency
 dependency

Modified: logging/log4j/companions/component/trunk/src/changes/changes.xml
URL: 
http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/src/changes/changes.xml?view=diffrev=549369r1=549368r2=549369
==
--- logging/log4j/companions/component/trunk/src/changes/changes.xml (original)
+++ logging/log4j/companions/component/trunk/src/changes/changes.xml Wed Jun 20 
21:59:55 2007
@@ -20,7 +20,7 @@
 titleComponent/title
   /properties
   body
-release version=1.0 date=2007-06-05 description=Initial release
+release version=1.0 date=2007-06-21 description=Initial release
   action issue=42094 type=add
 Initial release of Component framework backported from log4j 1.3.
   /action



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r549371 - in /logging/log4j/companions/component/tags/v1_0_rc1: ./ src/assembly/ src/changes/ src/main/java/org/apache/log4j/ src/main/java/org/apache/log4j/plugins/ src/main/java/org/apac

2007-06-20 Thread carnold
Author: carnold
Date: Wed Jun 20 22:01:01 2007
New Revision: 549371

URL: http://svn.apache.org/viewvc?view=revrev=549371
Log:
[maven-release-plugin]  copy for tag v1_0_rc1

Added:
logging/log4j/companions/component/tags/v1_0_rc1/
  - copied from r544237, logging/log4j/companions/component/trunk/
logging/log4j/companions/component/tags/v1_0_rc1/build.xml
  - copied unchanged from r549369, 
logging/log4j/companions/component/trunk/build.xml
logging/log4j/companions/component/tags/v1_0_rc1/pom.xml
  - copied unchanged from r549370, 
logging/log4j/companions/component/trunk/pom.xml
logging/log4j/companions/component/tags/v1_0_rc1/src/assembly/
  - copied from r544335, 
logging/log4j/companions/component/trunk/src/assembly/
logging/log4j/companions/component/tags/v1_0_rc1/src/assembly/bin.xml
  - copied unchanged from r544376, 
logging/log4j/companions/component/trunk/src/assembly/bin.xml
logging/log4j/companions/component/tags/v1_0_rc1/src/changes/changes.xml
  - copied unchanged from r549369, 
logging/log4j/companions/component/trunk/src/changes/changes.xml

logging/log4j/companions/component/tags/v1_0_rc1/src/main/java/org/apache/log4j/LoggerRepositoryExImpl.java
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/main/java/org/apache/log4j/LoggerRepositoryExImpl.java

logging/log4j/companions/component/tags/v1_0_rc1/src/main/java/org/apache/log4j/plugins/PluginConfigurator.java
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/main/java/org/apache/log4j/plugins/PluginConfigurator.java

logging/log4j/companions/component/tags/v1_0_rc1/src/main/java/org/apache/log4j/spi/ComponentBase.java
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/main/java/org/apache/log4j/spi/ComponentBase.java

logging/log4j/companions/component/tags/v1_0_rc1/src/main/java/org/apache/log4j/spi/LoggerEventListener.java
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/main/java/org/apache/log4j/spi/LoggerEventListener.java

logging/log4j/companions/component/tags/v1_0_rc1/src/main/java/org/apache/log4j/spi/LoggerRepositoryEventListener.java
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/main/java/org/apache/log4j/spi/LoggerRepositoryEventListener.java

logging/log4j/companions/component/tags/v1_0_rc1/src/main/java/org/apache/log4j/spi/LoggerRepositoryEx.java
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/main/java/org/apache/log4j/spi/LoggerRepositoryEx.java
logging/log4j/companions/component/tags/v1_0_rc1/src/site/apt/
  - copied from r544335, 
logging/log4j/companions/component/trunk/src/site/apt/
logging/log4j/companions/component/tags/v1_0_rc1/src/site/apt/download.apt
  - copied unchanged from r544376, 
logging/log4j/companions/component/trunk/src/site/apt/download.apt
logging/log4j/companions/component/tags/v1_0_rc1/src/site/site.xml
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/site/site.xml

logging/log4j/companions/component/tags/v1_0_rc1/src/test/java/org/apache/log4j/plugins/PluginTestCase.java
  - copied unchanged from r544335, 
logging/log4j/companions/component/trunk/src/test/java/org/apache/log4j/plugins/PluginTestCase.java


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r549376 - /logging/log4j/companions/component/trunk/pom.xml

2007-06-20 Thread carnold
Author: carnold
Date: Wed Jun 20 22:18:28 2007
New Revision: 549376

URL: http://svn.apache.org/viewvc?view=revrev=549376
Log:
[maven-release-plugin] prepare release v1_0_rc2

Modified:
logging/log4j/companions/component/trunk/pom.xml

Modified: logging/log4j/companions/component/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/logging/log4j/companions/component/trunk/pom.xml?view=diffrev=549376r1=549375r2=549376
==
--- logging/log4j/companions/component/trunk/pom.xml (original)
+++ logging/log4j/companions/component/trunk/pom.xml Wed Jun 20 22:18:28 2007
@@ -20,7 +20,7 @@
   groupIdlog4j/groupId
   artifactIdapache-log4j-component/artifactId
   packagingjar/packaging
-  version1.0-SNAPSHOT/version
+  version1.0/version
   nameApache Component Companion for log4j 1.2./name
   descriptionThis companion emulates the log4j 1.3 Component Framework to
   simplify the back-porting of code that made use of its services.  It does
@@ -67,9 +67,9 @@
/license
 /licenses
 scm
-   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/log4j/companions/component/trunk/connection
-   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/log4j/companions/component/trunk/developerConnection
-   
urlhttp://svn.apache.org/viewcvs.cgi/logging/log4j/companions/component/trunk/url
+   
connectionscm:svn:http://svn.apache.org/repos/asf/logging/log4j/companions/component/tags/v1_0_rc2/connection
+   
developerConnectionscm:svn:https://svn.apache.org/repos/asf/logging/log4j/companions/component/tags/v1_0_rc2/developerConnection
+   
urlhttp://svn.apache.org/viewcvs.cgi/logging/log4j/companions/component/tags/v1_0_rc2/url
 /scm
 organization
 nameApache Software Foundation/name



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



svn commit: r549377 - in /logging/log4j/companions/component/tags/v1_0_rc2: ./ pom.xml src/site/apt/download.apt

2007-06-20 Thread carnold
Author: carnold
Date: Wed Jun 20 22:18:31 2007
New Revision: 549377

URL: http://svn.apache.org/viewvc?view=revrev=549377
Log:
[maven-release-plugin]  copy for tag v1_0_rc2

Added:
logging/log4j/companions/component/tags/v1_0_rc2/
  - copied from r549373, logging/log4j/companions/component/trunk/
logging/log4j/companions/component/tags/v1_0_rc2/pom.xml
  - copied unchanged from r549376, 
logging/log4j/companions/component/trunk/pom.xml
logging/log4j/companions/component/tags/v1_0_rc2/src/site/apt/download.apt
  - copied unchanged from r549375, 
logging/log4j/companions/component/trunk/src/site/apt/download.apt


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]