svn commit: r151552 - jakarta/commons/sandbox/feedparser/trunk/tests/feeds/current-broken-drop-accents.atom

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 00:07:07 2005
New Revision: 151552

URL: http://svn.apache.org/viewcvs?view=revrev=151552
Log:
test that drops accents...

Added:

jakarta/commons/sandbox/feedparser/trunk/tests/feeds/current-broken-drop-accents.atom

Added: 
jakarta/commons/sandbox/feedparser/trunk/tests/feeds/current-broken-drop-accents.atom
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/tests/feeds/current-broken-drop-accents.atom?view=autorev=151552
==
--- 
jakarta/commons/sandbox/feedparser/trunk/tests/feeds/current-broken-drop-accents.atom
 (added)
+++ 
jakarta/commons/sandbox/feedparser/trunk/tests/feeds/current-broken-drop-accents.atom
 Sun Feb  6 00:07:07 2005
@@ -0,0 +1,290 @@
+?xml version=1.0 encoding=UTF-8 standalone=yes?
+?xml-stylesheet href=http://www.blogger.com/styles/atom.css; 
type=text/css?
+
+feed version=0.3 xml:lang=pt-BR xmlns=http://purl.org/atom/ns#;
+link href=http://www.blogger.com/atom/8472121; rel=service.post 
title=Devaneios de um computlogo type=application/atom+xml/
+link href=http://www.blogger.com/atom/8472121; rel=service.feed 
title=Devaneios de um computlogo type=application/atom+xml/
+title mode=escaped type=text/htmlDevaneios de um computlogo/title
+tagline mode=escaped type=text/htmlAqui falo de Java, Linux, Software 
Livre, Firefox, WebDesign, Cincia da Computao e coisas 
afins/tagline
+link href=http://tatanka.com.br/blog; rel=alternate title=Devaneios de um 
computlogo type=text/html/
+idtag:blogger.com,1999:blog-8472121/id
+modified2005-02-05T05:38:58Z/modified
+generator url=http://www.blogger.com/; version=5.15 
xml:lang=en-USBlogger/generator
+info mode=xml type=text/html xml:lang=en-US
+div xmlns=http://www.w3.org/1999/xhtml;This is an Atom formatted XML site 
feed. It is intended to be viewed in a Newsreader or syndicated to another 
site. Please visit the a 
href=http://help.blogger.com/bin/answer.py?answer=697;Blogger Help/a for 
more info./div
+/info
+entry xmlns=http://purl.org/atom/ns#;
+link href=http://www.blogger.com/atom/8472121/110755490972154940; 
rel=service.edit title=Na onda dos convites type=application/atom+xml/
+author
+nameSergio/name
+/author
+issued2005-02-04T20:02:55-02:00/issued
+modified2005-02-05T05:38:55Z/modified
+created2005-02-04T22:08:29Z/created
+link href=http://tatanka.com.br/blog/2005/02/na-onda-dos-convites.html; 
rel=alternate title=Na onda dos convites type=text/html/
+idtag:blogger.com,1999:blog-8472121.post-110755490972154940/id
+title mode=escaped type=text/htmlNa onda dos convites/title
+content type=application/xhtml+xml xml:base=http://tatanka.com.br/blog; 
xml:space=preserve
+div xmlns=http://www.w3.org/1999/xhtml;Estou em busca de um convite para o 
a href=http://www.rojo.com/;Rojo/a. Se voc puder me arrumar um, 
agradeo.
+br/
+br/E, por falar em convites, j que o GMail liberou geral, l vo 
10 convites:
+br/
+br/https://gmail.google.com/gmail/a-3fed3eafee-db53a9fb9c-7c124e8c87
+br/https://gmail.google.com/gmail/a-3fed3eafee-3a97b9fc88-836b22ecc9
+br/https://gmail.google.com/gmail/a-3fed3eafee-29e9f904de-12e4da8914
+br/https://gmail.google.com/gmail/a-3fed3eafee-1a40ec6587-b6ed6bfcb3
+br/https://gmail.google.com/gmail/a-3fed3eafee-68ade50f81-7df0f590a0
+br/https://gmail.google.com/gmail/a-3fed3eafee-a57266c7af-648946f651
+br/https://gmail.google.com/gmail/a-3fed3eafee-4cb3dac19c-108619bf22
+br/https://gmail.google.com/gmail/a-3fed3eafee-99b42efda8-ba8be40eb6
+br/https://gmail.google.com/gmail/a-3fed3eafee-461632be23-5f89343509
+br/https://gmail.google.com/gmail/a-3fed3eafee-090425bac4-a00c7a3317
+br/
+br/
+span style=font-weight: bold;Atualizao:/span Consegui o convite 
pro Rojo; depois fao um post com minhas impresses sobre o servio.
+br/
+/div
+/content
+/entry
+entry xmlns=http://purl.org/atom/ns#;
+link href=http://www.blogger.com/atom/8472121/110739586592535205; 
rel=service.edit title=Volta e os destaques da semana 
type=application/atom+xml/
+author
+nameSergio/name
+/author
+issued2005-02-03T03:00:44-02:00/issued
+modified2005-02-03T05:16:44Z/modified
+created2005-02-03T01:57:45Z/created
+link 
href=http://tatanka.com.br/blog/2005/02/volta-e-os-destaques-da-semana.html; 
rel=alternate title=Volta e os destaques da semana type=text/html/
+idtag:blogger.com,1999:blog-8472121.post-110739586592535205/id
+title mode=escaped type=text/htmlVolta e os destaques da semana/title
+content type=application/xhtml+xml xml:base=http://tatanka.com.br/blog; 
xml:space=preserve
+div xmlns=http://www.w3.org/1999/xhtml;Voltei de viagem! Aps essa 
revigorante semana, estou pronto pra curtir o final das minhas frias :-) 
(somos folgados l na USP; aula s em 1 de maro!!)
+br/
+br/Volta de viagem  sinnimo de horas na frente do GMail, do 
Bloglines e nas revistas que chegaram nesse meio tempo. Ento vamos aos 
destaques da semana!
+br/
+ul   liEstou span style=font-weight: bold;fascinado/span com as 
[poucas] coisas que li 

svn commit: r151555 - in jakarta/commons/sandbox/feedparser/trunk: TODO src/java/org/apache/commons/feedparser/FeedParserImpl.java src/java/org/apache/commons/feedparser/network/NetworkException.java src/java/org/apache/commons/feedparser/tools/XMLCleanser.java xdocs/navigation.xml

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 00:29:56 2005
New Revision: 151555

URL: http://svn.apache.org/viewcvs?view=revrev=151555
Log:
Fixed potential bug (but worried about regression) with accented text in XML

Modified:
jakarta/commons/sandbox/feedparser/trunk/TODO

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedParserImpl.java

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/network/NetworkException.java

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/tools/XMLCleanser.java
jakarta/commons/sandbox/feedparser/trunk/xdocs/navigation.xml

Modified: jakarta/commons/sandbox/feedparser/trunk/TODO
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/TODO?view=diffr1=151554r2=151555
==
--- jakarta/commons/sandbox/feedparser/trunk/TODO (original)
+++ jakarta/commons/sandbox/feedparser/trunk/TODO Sun Feb  6 00:29:56 2005
@@ -3,12 +3,15 @@
 
 - Get viewcvs linked to the app
 
-- Nightly builds
+- Nightly builds?
 
 - 0.5 public release
 
 http://jakarta.apache.org/commons/releases/index.html
 
+
+
+
 - maven?
 
 - (DONE) All FeedParser exceptions should include the URL of the feed if
@@ -26,6 +29,16 @@
 
 - (DONE) Rework the factory mechanism to support multiple FeedParsers... should
   be an interface.
+
+- How do I want to maintain a public changelog?
+
+- How do I want to maintain a public TODO?
+
+- Fix the feedparsing bug where we'll drop chars:
+
+current-broken-drop-accents.atom
+
+The bug is in getCorrectInputStream
 
 - Networking layer should support per-request UserAgent settings.  This should
   just be a request header I think

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedParserImpl.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedParserImpl.java?view=diffr1=151554r2=151555
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedParserImpl.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/FeedParserImpl.java
 Sun Feb  6 00:29:56 2005
@@ -106,10 +106,10 @@
 if (encoding == null)
 encoding = UTF-8;
 
-if (encoding.startsWith(UTF)) {
+if ( encoding.startsWith( UTF ) ) {
 
-String result = XMLCleanser.cleanse(bytes, encoding);
-bytes = FeedFilter.parse(result, encoding);
+String result = XMLCleanser.cleanse( bytes, encoding );
+bytes = FeedFilter.parse( result, encoding );
 
 } else {
 
@@ -120,7 +120,7 @@
 //remove prefix whitespace, intern HTML entities, etc.
 
 //build an input stream from the our bytes for parsing...
-is = new ByteArrayInputStream(bytes);
+is = new ByteArrayInputStream( bytes );
 
 return is;
 

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/network/NetworkException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/network/NetworkException.java?view=diffr1=151554r2=151555
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/network/NetworkException.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/network/NetworkException.java
 Sun Feb  6 00:29:56 2005
@@ -22,7 +22,7 @@
 /**
  * 
  * @author a href=mailto:[EMAIL PROTECTED]Kevin A. Burton/a
- * @version $Id: NetworkException.java,v 1.1 2005/01/25 07:55:19 burton Exp $
+ * @version $Id$
  */
 public class NetworkException extends IOException {
 
@@ -109,6 +109,17 @@
 
 public int getResponseCode() {
 
+//FIXME: 
+//java.lang.NumberFormatException: For input string: fie
+// at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
+// at java.lang.Integer.parseInt(Integer.java:468)
+// at java.lang.Integer.parseInt(Integer.java:518)
+// at 
org.peerfear.newsmonster.network.NetworkException.getResponseCode(NetworkException.java:142)
+// at ksa.robot.FeedTask._doTaskLogFailure(FeedTask.java:264)
+// at ksa.robot.FeedTask.run(FeedTask.java:202)
+// at ksa.robot.TaskThread.doProcessTask(TaskThread.java:298)
+// at ksa.robot.TaskThread.run(TaskThread.java:111)
+
 if ( _urlConnection == null ) {
 return -1;
 } 

Modified: 

Re: [configuration] 1.1 release

2005-02-06 Thread Henri Yandell
Yep, a vote unless I'm badly mistake.

Hen

On Sat, 05 Feb 2005 18:02:57 +0100, Oliver Heger
[EMAIL PROTECTED] wrote:
 As promised I have created the commons-configuration-1.1RC1 release
 candidate. A new tag was added in svn using
 
 svn copy
 https://svn.apache.org/repos/asf/jakarta/commons/proper/configuration/trunk
 https://svn.apache.org/repos/asf/jakarta/commons/proper/configuration/tags/CONFIGURATION_1_1RC1
 
 The distributions for 1.1RC1 can be found at
 http://www.apache.org/~oheger/commons-configuration-1.1rc1/
 
 As release notes the changelog report can be used, which can be found at
 http://jakarta.apache.org/commons/configuration/changes-report.html
 
 I hope I have done nothing dramatically wrong (first trial). Comments
 are welcome. What is the next step for a release? Calling a vote?
 
 Oliver
 
 Oliver Heger wrote:
 
  Our senior committers seem to have disappeared a bit, which makes the
  task of cutting out a new release not easier. What I can do is to (try
  to) create a release candidate, but I think I won't find the time to
  do all the necessary reading about how releases are managed. If no one
  objects, I will do this in the next days.
 
  Or does somebody volunteer for the job as release manager?
 
  Oliver
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: [lang] 2.1...

2005-02-06 Thread Henri Yandell
On Tue, 1 Feb 2005 23:50:56 -0500, Henri Yandell [EMAIL PROTECTED] wrote:
  On Wed, 26 Jan 2005 00:14:24 -, Stephen Colebourne
  [EMAIL PROTECTED] wrote:
   Checking my mail history
  
Still TODO:
5)
- WordUtils
Capitalize with separator methods need to define null handling for
delimiter
list, and better javadoc for two of the three methods
 
 Unsure exactly what was wanted with this.
 
 The null handling seems to be there. I modified the javadoc a bit to
 hopefully make understanding it easier. Although it's technically
 correct to say that in the capitalzed word 'Home', the 'o' is in the
 capitalized form, I suspect that most users will get confused thinking
 that capitalization means titlecase.

Assuming this is good.

 I'll wait to hear Stephen's reply to my latest ClassUtils.forName
 comment as I think it's a worthwhile method and it's very easy to test
 it completely so risk should be low. 

Code pulled back out. Wouldn't be a release without me trying to add a
new thing at the last minute I suspect :) I have deja vu to the last
couple of releases.

 Once we get that squared away
 I'll go ahead and create an informal 2.1-rc1 for us to look at and
 vote over, with clover/jdiff/javadoc etc.

I'll do this over the next few days. It's neck and neck with more work
on the Jakarta download pages for my attention at the moment.

Hen

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



svn commit: r151556 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 01:01:42 2005
New Revision: 151556

URL: http://svn.apache.org/viewcvs?view=revrev=151556
Log:
Remove methods setSchema/getSchema and setSchemaLanguage/getSchemaLanguage.
The current implementation needs major rework; better to start again.

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java?view=diffr1=151555r2=151556
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 Sun Feb  6 01:01:42 2005
@@ -306,38 +306,6 @@
 }
 
 /**
- * Set the XML Schema URI used for validating a XML Instance.
- *
- * @param schemaLocation a URI to the schema.
- */
-public void setSchema(String schemaLocation){
-saxHandler.setSchema(schemaLocation);
-}
-
-/**
- * Get the XML Schema URI used for validating an XML instance.
- */
-public String getSchema() {
-return saxHandler.getSchema();
-}
-
-/**
- * Set the XML Schema language used when parsing. By default, we use W3C.
- *
- * @param schemaLanguage a URI to the schema language.
- */
-public void setSchemaLanguage(String schemaLanguage){
-saxHandler.setSchemaLanguage(schemaLanguage);
-}
-
-/**
- * Get the XML Schema language used when parsing.
- */
-public String getSchemaLanguage() {
-return saxHandler.getSchemaLanguage();
-}
-
-/**
  * Determine whether to use the Context Classloader (the one found by
  * calling codeThread.currentThread().getContextClassLoader()/code)
  * to resolve/load classes when an Action needs to create an instance of



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



svn commit: r151557 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 01:03:09 2005
New Revision: 151557

URL: http://svn.apache.org/viewcvs?view=revrev=151557
Log:
Remove methods setSchema/getSchema and setSchemaLanguage/getSchemaLanguage.
These methods need major rework; better to start again.

Also implemented an allowUnknownExternalEntity which defaults to false,
and prevents the download of DTDs or schemas or other entities unless
they are explicitly registered (or the allow flag is set).

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java?view=diffr1=151556r2=151557
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 Sun Feb  6 01:03:09 2005
@@ -126,21 +126,6 @@
 private Locator locator = null;
 
 /**
- * The XML schema to use for validating an XML instance.
- *
- * TODO: properly implement schema validation
- */
-private String schemaLocation = null;
-
-/**
- * What language the schema is in (W3C, or RELAXNG or ..)
- *
- * TODO: properly implement schema validation. This variable is not
- * actually currently used.
- */
-private String schemaLanguage = null;
-
-/**
  * A map of known external entities that input xml documents may refer to.
  * via public or system IDs. The keys of the map entries are public or
  * system IDs, and the values are URLs (typically local files) pointing
@@ -151,6 +136,11 @@
 private Map knownEntities = new HashMap();
 
 /**
+ * See setAllowUnknownExternalEntities.
+ */
+private boolean allowUnknownExternalEntities = false;
+
+/**
  * An object which contains state information that evolves
  * as the parse progresses. Rule object commonly interact with
  * the context object.
@@ -427,38 +417,6 @@
 }
 
 /**
- * Set the XML Schema URI used for validating a XML Instance.
- *
- * @param schemaLocation a URI to the schema.
- */
-public void setSchema(String schemaLocation){
-this.schemaLocation = schemaLocation;
-}
-
-/**
- * Return the XML Schema URI used for validating an XML instance.
- */
-public String getSchema() {
-return (this.schemaLocation);
-}
-
-/**
- * Set the XML Schema language used when parsing. By default, we use W3C.
- *
- * @param schemaLanguage a URI to the schema language.
- */
-public void setSchemaLanguage(String schemaLanguage){
-this.schemaLanguage = schemaLanguage;
-}
-
-/**
- * Return the XML Schema language used when parsing.
- */
-public String getSchemaLanguage() {
-return schemaLanguage;
-}
-
-/**
  * Determine whether to use the Context ClassLoader (the one found by
  * calling codeThread.currentThread().getContextClassLoader()/code)
  * to resolve/load classes that are defined in various rules.  If not
@@ -616,8 +574,8 @@
 
 /**
  * Specifies a map of (publicId-URI) pairings that will be used when
- * resolving entities in the input xml (including the DTD or schema
- * specified with the DOCTYPE).
+ * resolving entities in the input xml (including the DTD specified with
+ * DOCTYPE, or schema specified with xsi:schemaLocation).
  */
 public void setKnownEntities(Map knownEntities) {
 this.knownEntities = knownEntities;
@@ -664,6 +622,30 @@
 }
 
 /**
+ * Specify whether an input xml document is permitted to reference external
+ * entities (including external DTDs, schemas, and include-files) that have
+ * not been specified by methods registerKnownEntity or setKnownEntities.
+ * p
+ * If this is allowed, then documents can take unbounded amounts of time
+ * to process, as they can attempt to download entities from the network
+ * (particularly via http urls).
+ * p
+ * This flag defaults to false (ie unknown external entities are not 
allowed).
+ * In this case, any occurrence of such an entity within an xml document
+ * will cause an exception to be thrown.
+ */
+public void setAllowUnknownExternalEntities(boolean state) {
+allowUnknownExternalEntities = state;
+}
+ 
+/**
+ * See setAllowUnknownExternalEntities.
+ */
+public boolean getAllowUnknownExternalEntities() {
+return allowUnknownExternalEntities;
+}
+ 
+/**
  * Add a (pattern, action) pair to the RuleManager instance associated
  * 

svn commit: r151558 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 01:04:03 2005
New Revision: 151558

URL: http://svn.apache.org/viewcvs?view=revrev=151558
Log:
Remove unused imports

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java?view=diffr1=151557r2=151558
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
 Sun Feb  6 01:04:03 2005
@@ -17,22 +17,11 @@
 
 package org.apache.commons.digester2;
 
-import java.io.File;
-import java.io.FileInputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.Reader;
-import java.lang.reflect.InvocationTargetException;
-import java.util.EmptyStackException;
-import java.util.HashMap;
-import java.util.Iterator;
 import java.util.List;
-import java.util.Map;
-import java.util.Properties;
+import java.util.HashMap;
+import java.util.EmptyStackException;
 
 import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
-import org.apache.commons.collections.ArrayStack;
 
 /**
  * pHolds information that evolves as the parsing of an input xml document
@@ -198,6 +187,9 @@
 return saxHandler.getClassLoader();
 }
 
+/**
+ * Return the SAXHandler which owns this object.
+ */
 public SAXHandler getSAXHandler() {
 return saxHandler;
 }



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



svn commit: r151559 - jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/ContextTestCase.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 01:05:12 2005
New Revision: 151559

URL: http://svn.apache.org/viewcvs?view=revrev=151559
Log:
Add tests for classloader, matching-action-stack

Modified:

jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/ContextTestCase.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/ContextTestCase.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/ContextTestCase.java?view=diffr1=151558r2=151559
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/ContextTestCase.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/ContextTestCase.java
 Sun Feb  6 01:05:12 2005
@@ -24,6 +24,7 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.ArrayList;
 import java.util.EmptyStackException;
 
 import junit.framework.Test;
@@ -34,8 +35,8 @@
 import org.xml.sax.Attributes;
 import org.xml.sax.helpers.AttributesImpl;
 import org.xml.sax.InputSource;
-import org.apache.commons.logging.Log;
 
+import org.apache.commons.logging.Log;
 
 /**
  * pTest Case for the Context class./p
@@ -43,6 +44,9 @@
 
 public class ContextTestCase extends TestCase {
 
+private static class DummyAction extends AbstractAction {
+}
+
 // --- Constructors
 
 /**
@@ -155,7 +159,6 @@
  * Test storage of the 'root' variable
  */
 public void testRoot2() {
-// setRoot, getRoot
 SAXHandler saxHandler = new SAXHandler();
 Log log = saxHandler.getLogger();
 Context context = new Context(saxHandler, log);
@@ -190,10 +193,15 @@
 }
 
 /**
- * Test the classloader behaviour
+ * Test the classloader behaviour.
  */
 public void testClassLoader() {
-// getClassLoader
+SAXHandler saxHandler = new SAXHandler();
+Log log = saxHandler.getLogger();
+Context context = new Context(saxHandler, log);
+
+ClassLoader cl = context.getClassLoader();
+assertEquals(get classloader, cl, saxHandler.getClassLoader());
 }
 
 /**
@@ -205,7 +213,40 @@
 Log log = saxHandler.getLogger();
 Context context = new Context(saxHandler, log);
 
-// pushMatchingActions, popMatchingActions, peekMatchingActions
+Action action0 = new DummyAction();
+Action action1 = new DummyAction();
+Action action2 = new DummyAction();
+
+ArrayList list0 = new ArrayList(2);
+list0.add(action0);
+list0.add(action1);
+
+context.pushMatchingActions(list0);
+List list = context.peekMatchingActions();
+assertEquals(Push/peek matching actions, list, list0);
+assertEquals(Push/peek matching actions, 2, list.size());
+assertEquals(Push/peek matching actions, action0, list.get(0));
+assertEquals(Push/peek matching actions, action1, list.get(1));
+
+ArrayList list1 = new ArrayList();
+list1.add(action2);
+context.pushMatchingActions(list1);
+list = context.peekMatchingActions();
+assertEquals(Push/peek matching actions 2, list, list1);
+assertEquals(Push/peek matching actions 2, 1, list.size());
+assertEquals(Push/peek matching actions 2, action2, list.get(0));
+
+list = context.popMatchingActions();
+assertEquals(Push/peek matching actions, list, list1);
+list = context.popMatchingActions();
+assertEquals(Push/peek matching actions, list, list0);
+
+try {
+list = context.popMatchingActions();
+fail(Popping an empty stack);
+} catch(EmptyStackException ex) {
+// ok
+}
 }
 
 /**
@@ -437,11 +478,5 @@
 assertTrue(
 A named stack that has it's last object popped is empty, 
 context.isEmpty(testStackName));
-}
-
-/**
- * Test the getRoot method.
- */
-public void testGetRoot() throws Exception {
 }
 }



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



[GUMP@brutus]: Project commons-email (in module jakarta-commons) failed

2005-02-06 Thread dIon Gillard
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 commons-email has an issue affecting its community integration.
This issue affects 8 projects,
 and has been outstanding for 3 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-email :  Commons Email Package
- fulcrum-intake :  Services Framework
- fulcrum-security-adapter-turbine :  Services Framework
- fulcrum-template :  Services Framework
- jakarta-jetspeed :  Enterprise Information Portal
- jakarta-turbine-2 :  A servlet based framework.
- jakarta-turbine-3 :  A servlet based framework.
- scarab :  Issue Tracking Built for the Ages


Full details are available at:

http://brutus.apache.org/gump/public/jakarta-commons/commons-email/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-email-06022005.jar] identifier set to project name
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/jakarta-commons/email/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/jakarta-commons/email/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/jakarta-commons/email/project.properties
 -DEBUG- Extracted fallback artifacts from Gump Repository



The following work was performed:
http://brutus.apache.org/gump/public/jakarta-commons/commons-email/gump_work/build_jakarta-commons_commons-email.html
Work Name: build_jakarta-commons_commons-email (Type: Build)
Work ended in a state of : Failed
Elapsed: 7 secs
Command Line: maven --offline jar 
[Working Directory: /usr/local/gump/public/workspace/jakarta-commons/email]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/target/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/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-06022005.jar:/usr/local/gump/public/workspace/dumbster/build/dumbster.jar:/usr/local/gump/packages/javamail-1.3.2/mail.jar:/usr/local/gump/packages/javamail-1.3.2/lib/mailapi.jar:/usr/local/gump/packages/jaf-1.0.1/activation.jar
-

java:prepare-filesystem:
[mkdir] Created dir: 
/home/gump/workspaces2/public/workspace/jakarta-commons/email/target/classes

java:compile:
[echo] Compiling to 
/home/gump/workspaces2/public/workspace/jakarta-commons/email/target/classes
[echo] 
==

  NOTE: Targetting JVM 1.4, classes
  will not run on earlier JVMs

==
  
[javac] Compiling 8 source files to 
/home/gump/workspaces2/public/workspace/jakarta-commons/email/target/classes

java:jar-resources:
Copying 1 file to 
/home/gump/workspaces2/public/workspace/jakarta-commons/email/target/classes

test:prepare-filesystem:
[mkdir] Created dir: 
/home/gump/workspaces2/public/workspace/jakarta-commons/email/target/test-classes
[mkdir] Created dir: 
/home/gump/workspaces2/public/workspace/jakarta-commons/email/target/test-reports

test:test-resources:

test:compile:
[javac] Compiling 13 source files to 
/home/gump/workspaces2/public/workspace/jakarta-commons/email/target/test-classes
/home/gump/workspaces2/public/workspace/jakarta-commons/email/src/test/org/apache/commons/mail/BaseEmailTestCase.java:110:
 isStopped() has private access in com.dumbster.smtp.SimpleSmtpServer
if (this.fakeMailServer != null  !this.fakeMailServer.isStopped())
^
/home/gump/workspaces2/public/workspace/jakarta-commons/email/src/test/org/apache/commons/mail/BaseEmailTestCase.java:160:
 isStopped() has private access in com.dumbster.smtp.SimpleSmtpServer
if (this.fakeMailServer == null || this.fakeMailServer.isStopped())
   ^

svn commit: r151562 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 01:57:09 2005
New Revision: 151562

URL: http://svn.apache.org/viewcvs?view=revrev=151562
Log:
* add getSAXHandler method
* add initCallbacks param to setXMLReader method
* test for namespace-awareness in setXMLReader

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java?view=diffr1=151561r2=151562
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 Sun Feb  6 01:57:09 2005
@@ -17,30 +17,26 @@
 
 package org.apache.commons.digester2;
 
-
 import java.io.File;
 import java.io.FileInputStream;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.Reader;
-import java.util.HashMap;
-import java.util.Iterator;
-import java.util.List;
+
 import java.util.Map;
-import java.util.Properties;
 
-import javax.xml.parsers.ParserConfigurationException;
 import javax.xml.parsers.SAXParser;
 import javax.xml.parsers.SAXParserFactory;
+import javax.xml.parsers.ParserConfigurationException;
 
-import org.apache.commons.logging.Log;
-import org.apache.commons.logging.LogFactory;
 import org.xml.sax.SAXException;
 import org.xml.sax.InputSource;
 import org.xml.sax.XMLReader;
 import org.xml.sax.EntityResolver;
 import org.xml.sax.ErrorHandler;
 
+import org.apache.commons.logging.Log;
+
 /**
  * pA strongDigester/strong processes an XML input stream by matching a
  * series of element nesting patterns to execute Actions that have been added
@@ -123,6 +119,13 @@
 // - Properties
 
 /**
+ * Get the SAXHandler object associated with this instance.
+ */
+public SAXHandler getSAXHandler() {
+return saxHandler;
+}
+
+/**
  * Determine whether we are to validate the xml input against a DTD.
  * If so, then an error will be reported by the parse() methods if the
  * input doesn't comply with the schema. If validation is disabled, then
@@ -185,10 +188,31 @@
  *
  * pThis method does not set up the SAXHandler as the reader's handler
  *  for content, dtd or other events. You should generally call method
- *  SAXHandler.initCallbacks before starting the parse.
+ *  SAXHandler.initCallbacks before starting the parse./p
  */
-public void setXMLReader(XMLReader reader) {
+public void setXMLReader(XMLReader reader, boolean initCallbacks) {
 this.reader = reader;
+if (initCallbacks) {
+saxHandler.initCallbacks(reader);
+}
+
+boolean isNamespaceAware;
+try { 
+isNamespaceAware = 
+reader.getFeature(http://xml.org/sax/features/namespaces;);
+} catch(org.xml.sax.SAXNotRecognizedException ex) {
+isNamespaceAware = false;
+} catch(org.xml.sax.SAXNotSupportedException ex) {
+isNamespaceAware = false;
+}
+
+if (!isNamespaceAware) {
+// perhaps we should be throwing an exception here instead of
+// issuing a warning?
+saxHandler.getLogger().warn(
+Digester.setXMLReader called with a parser that is not
++  namespace-aware);
+}
 }
 
 /**



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



svn commit: r151563 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 02:01:08 2005
New Revision: 151563

URL: http://svn.apache.org/viewcvs?view=revrev=151563
Log:
Fix bug where ruleManager might be accessed before being created.

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java?view=diffr1=151562r2=151563
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 Sun Feb  6 02:01:08 2005
@@ -654,7 +654,7 @@
  */
 public void addRule(String pattern, Action action)
 throws InvalidRuleException {
-ruleManager.addRule(pattern, action);
+getRuleManager().addRule(pattern, action);
 }
 
 /**
@@ -885,7 +885,10 @@
 configure();
 
 try {
-ruleManager.startParse(context);
+// This also has the side-effect of creating a RuleManager if
+// one has not been created before. Of course this would only
+// happen if no rules had ever been added...
+getRuleManager().startParse(context);
 } catch(DigestionException ex) {
 throw new NestedSAXException(ex);
 }
@@ -1132,6 +1135,8 @@
 // Fire begin events for all relevant rules
 List actions;
 try {
+// NB: don't need getRuleManager here, as we know it was
+// created at startDocument if not before..
 actions = ruleManager.getMatchingActions(matchPath);
 } catch(DigestionException ex) {
 throw new NestedSAXException(ex);



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



svn commit: r151564 - jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 02:02:27 2005
New Revision: 151564

URL: http://svn.apache.org/viewcvs?view=revrev=151564
Log:
Added tests. Also cleaned up whitespace.

Modified:

jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java?view=diffr1=151563r2=151564
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
 Sun Feb  6 02:02:27 2005
@@ -1,19 +1,19 @@
 /* $Id: $
  *
  * Copyright 2001-2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *  http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 
 package org.apache.commons.digester2;
@@ -24,8 +24,12 @@
 import java.util.Iterator;
 import java.util.List;
 import java.util.Map;
+import java.util.ArrayList;
 import java.util.EmptyStackException;
 
+import javax.xml.parsers.SAXParserFactory;
+import javax.xml.parsers.SAXParser;
+
 import junit.framework.Test;
 import junit.framework.TestCase;
 import junit.framework.TestSuite;
@@ -35,6 +39,7 @@
 import org.xml.sax.helpers.AttributesImpl;
 import org.xml.sax.helpers.DefaultHandler;
 import org.xml.sax.InputSource;
+import org.xml.sax.XMLReader;
 
 import org.apache.commons.logging.Log;
 
@@ -47,6 +52,23 @@
 
 public class DigesterTestCase extends TestCase {
 
+private static class AppenderAction extends AbstractAction {
+private List list;
+private String str;
+
+public AppenderAction(List list, String str) {
+this.list = list;
+this.str = str;
+}
+
+public void begin(
+Context context,
+String namespace, String name, 
+org.xml.sax.Attributes attrs) {
+list.add(str);
+}
+}
+
 // - Instance Variables
 
 /**
@@ -103,11 +125,110 @@
 //  Individual Test Methods
 
 /**
+ * Test the basic constructor functionality.
+ */
+public void testConstructor1() {
+Digester d = new Digester();
+
+assertNotNull(Default constructor, d.getSAXHandler());
+}
+
+/**
+ * Test the basic constructor functionality.
+ */
+public void testConstructor2() {
+SAXHandler h = new SAXHandler();
+Digester d = new Digester(h);
+
+assertEquals(Constructor with SAXHandler, d.getSAXHandler(), h);
+}
+
+/**
+ * Test that digester auto-creates an XMLReader if needed,
+ * and that parsing works ok with that reader.
+ */
+public void testXMLReaderAuto() throws Exception {
+String inputText = root/;
+InputSource source = new InputSource(new StringReader(inputText));
+
+Digester d = new Digester();
+
+XMLReader reader = d.getXMLReader();
+assertNotNull(getXMLReader, reader);
+
+ArrayList list = new ArrayList();
+d.addRule(/root, new AppenderAction(list, action1));
+
+d.parse(source);
+
+assertEquals(Parse works with auto-created parser, 1, list.size());
+assertEquals(Parse works with auto-created parser, action1, 
list.get(0));
+}
+
+/**
+ * Same as testXMLReaderAuto except that getXMLReader is not called.
+ * This is just to make sure getXMLReader hasn't had some necessary
+ * side-effect that causes a parse to fail without it.
+ */
+public void testXMLReaderAuto2() throws Exception {
+String inputText = root/;
+InputSource source = new InputSource(new StringReader(inputText));
+
+Digester d = new Digester();
+
+ArrayList list = new ArrayList();
+d.addRule(/root, new AppenderAction(list, action1));
+
+d.parse(source);
+
+assertEquals(Parse works with auto-created parser, 1, list.size());
+assertEquals(Parse works with auto-created parser, action1, 
list.get(0));
+}
+
+/**
+ * Test that digester works if an 

[GUMP@brutus]: Project commons-id (in module jakarta-commons-sandbox) failed

2005-02-06 Thread Adam Jack
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 commons-id has an issue affecting its community integration.
This issue affects 1 projects,
 and has been outstanding for 11 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-id :  Commons Identifier Package


Full details are available at:

http://brutus.apache.org/gump/public/jakarta-commons-sandbox/commons-id/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-id-06022005.jar] identifier set to project name
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/jakarta-commons-sandbox/id/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/jakarta-commons-sandbox/id/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/jakarta-commons-sandbox/id/project.properties
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://brutus.apache.org/gump/public/jakarta-commons-sandbox/commons-id/gump_work/build_jakarta-commons-sandbox_commons-id.html
Work Name: build_jakarta-commons-sandbox_commons-id (Type: Build)
Work ended in a state of : Failed
Elapsed: 2 secs
Command Line: maven --offline jar 
[Working Directory: /usr/local/gump/public/workspace/jakarta-commons-sandbox/id]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/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/public/workspace/jakarta-commons/discovery/dist/commons-discovery.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar
-
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

org.apache.maven.MavenException: Error reading XML or initializing
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:156)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at 
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)
--- Nested Exception ---
java.io.FileNotFoundException: Parent POM not found: 
/home/gump/workspaces2/public/workspace/jakarta-commons-sandbox/sandbox-build/project.xml
at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:230)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143)
at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122)
at 
org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232)
at org.apache.maven.MavenSession.initialize(MavenSession.java:172)
at org.apache.maven.cli.App.doMain(App.java:475)
at org.apache.maven.cli.App.main(App.java:1239)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.werken.forehead.Forehead.run(Forehead.java:551)
at com.werken.forehead.Forehead.main(Forehead.java:581)

You have encountered an unknown error 

Re: [io] copyAndClose

2005-02-06 Thread Stephen Colebourne
Well, for a start your example could be simplified.
public static void copyAndClose(final InputStream in,
final OutputStream out)
throws IOException {
try {
CopyUtils.copy(in, out);
out.flush();
} finally {
  IOUtils.copyAndClose(in);
  IOUtils.copyAndClose(out);
}
}
Even so, this is quite a good suggestion. The main downside is that it 
doubles the number of methods. (CopyUtils is being deprecated, with the 
methods moving to IOUtils with better semantics and names to simplify the 
overall API)

Were you interested in writing the patch and tests for IOUtils?
Stephen
- Original Message - 
From: B. K. Oxley (binkley) [EMAIL PROTECTED]
It would be nice to include utility methods such as this in the io library 
to compliment the good set of primitives already there.

The method in question with Javadoc added:
/**
 * Copies varin/var to varout/var, flushing varout/var
 * and closing both streams even in the face of exceptions.  This is
 * usually sufficient to ensure proper copying for arbitrary streams
 * and avoid data lose (citee.g./cite, file streams can lose
 * data if you do not flush them before closing).
 * p/
 * If more than one operation throws an exception, propagates only
 * the most recent exception.  Java swallows earlier exceptions.
 *
 * @param in the input stream data source
 * @param out the output stream data sink
 *
 * @throws IOException if any I/O operation fails
 */
public static void copyAndClose(final InputStream in,
final OutputStream out)
throws IOException {
try {
CopyUtils.copy(in, out);
out.flush();
} finally {
try {
out.close();
} finally {
in.close();
}
}
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: [lang] 2.1...

2005-02-06 Thread Stephen Colebourne
From: Henri Yandell [EMAIL PROTECTED]
   Still TODO:
   - WordUtils
Unsure exactly what was wanted with this.
The null handling seems to be there. I modified the javadoc a bit to
hopefully make understanding it easier. Although it's technically
correct to say that in the capitalzed word 'Home', the 'o' is in the
capitalized form, I suspect that most users will get confused thinking
that capitalization means titlecase.
Assuming this is good.
Seems OK now
Stephen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


[GUMP@brutus]: Project commons-jelly-tags-ant (in module commons-jelly) failed

2005-02-06 Thread commons-jelly-tags-ant development
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 commons-jelly-tags-ant has an issue affecting its community integration.
This issue affects 6 projects.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-jelly-tags-ant :  Commons Jelly
- commons-jelly-tags-fmt :  Commons Jelly
- commons-jelly-tags-html :  Commons Jelly
- commons-jelly-tags-jsl :  Commons Jelly
- maven :  Project Management Tools
- maven-bootstrap :  Project Management Tools


Full details are available at:

http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-ant/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-jelly-tags-ant-06022005.jar] identifier set to 
project name
 -ERROR- Multiple outputs defined by project ant; an id attribute is required 
to select the one you want
 -ERROR- Unhandled Property: maven.jar.ant-optional on: Maven on 
Project:commons-jelly-tags-ant
 -DEBUG- Dependency on ant exists, no need to add for property 
maven.jar.ant-optional.
 -DEBUG- Dependency on xml-xerces exists, no need to add for property 
maven.jar.xerces.
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/test-reports
 -WARNING- No directory 
[/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant/target/test-reports]
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-ant/gump_work/build_commons-jelly_commons-jelly-tags-ant.html
Work Name: build_commons-jelly_commons-jelly-tags-ant (Type: Build)
Work ended in a state of : Failed
Elapsed: 5 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/ant]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/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/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons-sandbox/grant/target/commons-grant-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/target/commons-jelly-tags-util-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-06022005.jar
-
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

You are working offline so the build will continue, but 
commons-jelly-SNAPSHOT.jar may be out of date!
The build cannot continue because of the following unsatisfied dependency:

ant-optional-1.5.3-1.jar; path override doesn't exist: 
/home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/ant/*Unset*

Total time: 4 seconds
Finished at: Sun Feb 06 02:47:50 PST 2005

-

To subscribe to this information 

[GUMP@brutus]: Project commons-jelly-tags-swing (in module commons-jelly) failed

2005-02-06 Thread JellySwing development
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 commons-jelly-tags-swing has an issue affecting its community 
integration.
This issue affects 1 projects,
 and has been outstanding for 5 runs.
The current state of this project is 'Failed', with reason 'Build Failed'.
For reference only, the following projects are affected by this:
- commons-jelly-tags-swing :  Commons Jelly


Full details are available at:

http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-swing/index.html

That said, some information snippets are provided here.

The following annotations (debug/informational/warning/error messages) were 
provided:
 -DEBUG- Sole output [commons-jelly-tags-swing-06022005.jar] identifier set to 
project name
 -DEBUG- Dependency on xml-xerces exists, no need to add for property 
maven.jar.xerces.
 -DEBUG- (Gump generated) Maven Properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/swing/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/swing/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/swing/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/swing/target/test-reports
 -WARNING- No directory 
[/usr/local/gump/public/workspace/commons-jelly/jelly-tags/swing/target/test-reports]
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-swing/gump_work/build_commons-jelly_commons-jelly-tags-swing.html
Work Name: build_commons-jelly_commons-jelly-tags-swing (Type: Build)
Work ended in a state of : Failed
Elapsed: 4 secs
Command Line: maven --offline jar 
[Working Directory: 
/usr/local/gump/public/workspace/commons-jelly/jelly-tags/swing]
CLASSPATH: 
/opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/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/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/define/target/commons-jelly-tags-define-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/interaction/target/commons-jelly-tags-interaction-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-06022005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/log/target/commons-jelly-tags-log-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-06022005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-06022005.jar
-
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at 
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at 
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:308)
at java.lang.Class.newInstance(Class.java:261)
at 
org.apache.commons.jelly.JellyContext.getTagLibrary(JellyContext.java:432)
at 
org.apache.maven.jelly.MavenJellyContext.getTagLibrary(MavenJellyContext.java:171)
at 
org.apache.commons.jelly.parser.XMLParser.createTag(XMLParser.java:1033)
at 

svn commit: r151578 - jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 03:30:11 2005
New Revision: 151578

URL: http://svn.apache.org/viewcvs?view=revrev=151578
Log:
Added tests for getDTDPublicId/getDTDSystemId

Modified:

jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java?view=diffr1=151577r2=151578
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
 Sun Feb  6 03:30:11 2005
@@ -55,20 +55,20 @@
 private static class AppenderAction extends AbstractAction {
 private List list;
 private String str;
-
+
 public AppenderAction(List list, String str) {
 this.list = list;
 this.str = str;
 }
-
+
 public void begin(
 Context context,
-String namespace, String name, 
+String namespace, String name,
 org.xml.sax.Attributes attrs) {
 list.add(str);
 }
 }
-
+
 // - Instance Variables
 
 /**
@@ -150,7 +150,7 @@
 public void testXMLReaderAuto() throws Exception {
 String inputText = root/;
 InputSource source = new InputSource(new StringReader(inputText));
-
+
 Digester d = new Digester();
 
 XMLReader reader = d.getXMLReader();
@@ -173,7 +173,7 @@
 public void testXMLReaderAuto2() throws Exception {
 String inputText = root/;
 InputSource source = new InputSource(new StringReader(inputText));
-
+
 Digester d = new Digester();
 
 ArrayList list = new ArrayList();
@@ -194,7 +194,7 @@
 // and that parsing works ok with that reader.
 String inputText = root/;
 InputSource source = new InputSource(new StringReader(inputText));
-
+
 // create XMLReader
 SAXParserFactory factory = SAXParserFactory.newInstance();
 factory.setNamespaceAware(true);
@@ -219,10 +219,89 @@
 // TODO: add test for setValidating/getValidating
 
 // TODO: add test for get/set explicit classloader
+// TODO: add test for setUseContextClassloader
 
 // TODO: add test for get/set logger. This should probably wait until
 // we figure out whether to revamp the logging approach though.
-
+
+// TODO: add tests for setRuleManager/getRuleManager
+
+/**
+ * Test getDTDPublicId and getDTDSystemId methods.
+ *
+ * This also happens to test the digester when parse is called with
+ * no rules added, and to test ignoring of external DTDs.
+ */
+public void testDtdInfo1() throws Exception {
+String inputText =
+  !DOCTYPE root PUBLIC 'test-public-id' 'test-system-id'
++ root/;
+
+InputSource source = new InputSource(new StringReader(inputText));
+
+// initially, no info is available
+Digester d = new Digester();
+assertNull(initial dtd public id is null, d.getDTDPublicId());
+assertNull(initial dtd system id is null, d.getDTDSystemId());
+
+// ignore any attempt to load an external dtd with the specified 
+// public-id
+d.registerKnownEntity(test-public-id, );
+
+// and parse...
+d.parse(source);
+
+String pub = d.getDTDPublicId();
+String sys = d.getDTDSystemId();
+assertEquals(DTD public id obtained, test-public-id, pub);
+assertEquals(DTD system id obtained, test-system-id, sys);
+}
+
+/**
+ * Test getDTDPublicId and getDTDSystemId methods.
+ *
+ * In this test, the public is null, and an internal DTD is present.
+ */
+public void testDtdInfo2() throws Exception {
+String inputText =
+  !DOCTYPE root SYSTEM 'test-system-id'
++ [!ELEMENT root EMPTY]
++ root/;
+
+InputSource source = new InputSource(new StringReader(inputText));
+
+// initially, no info is available
+Digester d = new Digester();
+assertNull(initial dtd public id is null, d.getDTDPublicId());
+assertNull(initial dtd system id is null, d.getDTDSystemId());
+
+// Ignore any attempt to load an external dtd. Note that it is
+// impossible to use registerKnownEntity to ignore the DTD, as it
+// doesn't have a public id, and the systemId is expanded by the
+// parser to a full path at runtime so we cannot know what the
+// complete systemId will be..
+ 

svn commit: r151579 - in jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2: Digester.java SAXHandler.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 03:33:22 2005
New Revision: 151579

URL: http://svn.apache.org/viewcvs?view=revrev=151579
Log:
* setKnownEntities/registerKnownEntities: a target URL of 
  now means resolve the entity to an empty InputSource.
* added methods setIgnoreExternalDTD/getIgnoreExternalDTD

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java?view=diffr1=151578r2=151579
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 Sun Feb  6 03:33:22 2005
@@ -380,6 +380,10 @@
  * default Entity Resolver when resolving entities in the input xml 
  * (including the DTD or schema specified with the DOCTYPE).
  * p
+ * If the value in a map entry (ie the URI) is an empty string, then
+ * when the parser asks for the entity to be resolved, an empty InputSource
+ * will be returned, effectively ignoring the entity.
+ * p
  * See [EMAIL PROTECTED] #getKnownEntities}, and [EMAIL PROTECTED] 
#setEntityResolver}.
  */
 public void setKnownEntities(Map knownEntities) {
@@ -398,6 +402,10 @@
  * done for the input document's DTD, so that the DTD can be retrieved
  * from a local file./p
  *
+ * pIf the value in a map entry (ie the URI) is an empty string, then
+ * when the parser asks for the entity to be resolved, an empty InputSource
+ * will be returned, effectively ignoring the entity./p
+ *
  * pThis implementation provides only basic functionality. If more
  * sophisticated features are required,using [EMAIL PROTECTED] 
#setEntityResolver} to
  * set a custom resolver is recommended. Note in particular that if the
@@ -429,6 +437,27 @@
 return saxHandler.getKnownEntities();
 }
 
+/**
+ * Specify whether an external DTD should be ignored, ie treated as if
+ * it were an empty file. This can be dangerous; DTDs can potentially
+ * contain definitions for default attribute values and entities that
+ * affect the meaning of the xml document, so skipping them can cause
+ * incorrect output. However in many cases it is known that the DTD 
+ * does no such thing, so processing of it can be suppressed.
+ * p
+ * This flag defaults to false (ie external dtds are read during the 
parse).
+ */
+public void setIgnoreExternalDTD(boolean state) {
+saxHandler.setIgnoreExternalDTD(state);
+}
+ 
+/**
+ * See setIgnoreExternalDTD.
+ */
+public boolean getIgnoreExternalDTD() {
+return saxHandler.getIgnoreExternalDTD();
+}
+ 
 // --- Public Methods
 
 /**

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java?view=diffr1=151578r2=151579
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 Sun Feb  6 03:33:22 2005
@@ -23,6 +23,8 @@
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.Reader;
+import java.io.StringReader;
+
 import java.lang.reflect.InvocationTargetException;
 import java.util.EmptyStackException;
 import java.util.HashMap;
@@ -126,6 +128,13 @@
 private Locator locator = null;
 
 /**
+ * A count of the number of entities resolved. Currently, we only
+ * care whether this is zero or one, so a boolean could do as well.
+ * However it seems likely that a count could be useful at some time.
+ */
+private int numEntitiesResolved = 0;
+
+/**
  * A map of known external entities that input xml documents may refer to.
  * via public or system IDs. The keys of the map entries are public or
  * system IDs, and the values are URLs (typically local files) pointing
@@ -139,6 +148,11 @@
  * See setAllowUnknownExternalEntities.
  */
 private boolean allowUnknownExternalEntities = false;
+
+/**
+ * See setIgnoreExternalDTD.
+ */
+private boolean ignoreExternalDTD = false;
  

svn commit: r151580 - jakarta/commons/proper/httpclient/trunk/release_notes.txt

2005-02-06 Thread olegk
Author: olegk
Date: Sun Feb  6 03:44:28 2005
New Revision: 151580

URL: http://svn.apache.org/viewcvs?view=revrev=151580
Log:
Missing release header

Modified:
jakarta/commons/proper/httpclient/trunk/release_notes.txt

Modified: jakarta/commons/proper/httpclient/trunk/release_notes.txt
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/release_notes.txt?view=diffr1=151579r2=151580
==
--- jakarta/commons/proper/httpclient/trunk/release_notes.txt (original)
+++ jakarta/commons/proper/httpclient/trunk/release_notes.txt Sun Feb  6 
03:44:28 2005
@@ -1,3 +1,5 @@
+Release 3.0 Release Candidate 1
+---
 Changes since Beta 1:
 
  * 32833 - Cookie with domain .mydomain.com were not sent to host mydomain.com



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



svn commit: r151581 - jakarta/commons/proper/httpclient/tags/HTTPCLIENT_3_0_RC1/release_notes.txt

2005-02-06 Thread olegk
Author: olegk
Date: Sun Feb  6 04:04:06 2005
New Revision: 151581

URL: http://svn.apache.org/viewcvs?view=revrev=151581
Log:
retagging release_notes.txt

Removed:
jakarta/commons/proper/httpclient/tags/HTTPCLIENT_3_0_RC1/release_notes.txt


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



svn commit: r151582 - jakarta/commons/proper/httpclient/tags/HTTPCLIENT_3_0_RC1/release_notes.txt

2005-02-06 Thread olegk
Author: olegk
Date: Sun Feb  6 04:05:41 2005
New Revision: 151582

URL: http://svn.apache.org/viewcvs?view=revrev=151582
Log:
retagging release_notes.txt

Added:
jakarta/commons/proper/httpclient/tags/HTTPCLIENT_3_0_RC1/release_notes.txt
  - copied unchanged from r151581, 
jakarta/commons/proper/httpclient/trunk/release_notes.txt


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



Re: [io] copyAndClose

2005-02-06 Thread B. K. Oxley (binkley)
Stephen Colebourne wrote:
public static void copyAndClose(final InputStream in,
final OutputStream out)
throws IOException {
try {
CopyUtils.copy(in, out);
out.flush();
} finally {
  IOUtils.copyAndClose(in);
  IOUtils.copyAndClose(out);
}
}
I do not understand.  What is being copied in the finally block?  Should 
that have been:

finally {
IOUtils.closeQuietly(in);
IOUtils.closeQuietly(out);
}
I do not want to swallow exceptions thrown by closing in or out as they 
might indicate to the caller some kind of important failure (say a 
network error).  That is why my original has nexted try/finally blocks:

finally {
try {
out.close();
} finally {
in.close();
}
}
Even so, this is quite a good suggestion. The main downside is that it 
doubles the number of methods. (CopyUtils is being deprecated, with the 
methods moving to IOUtils with better semantics and names to simplify 
the overall API)

Were you interested in writing the patch and tests for IOUtils?
Do I just pull IO from SVN?  What form of patch: unified diff ok?
Cheers,
--binkley
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [vfs] proposal: MemoryFS

2005-02-06 Thread B. K. Oxley (binkley)
This is the sort of tree I was asking about (below) to represent the 
memory file system.  I want to avoid reusing DefaultTreeModel for a data 
structure since it is Swing-oriented (look at all the listeners!).

I'd expect to specialize the generic thus:
public class RamTree extends TreeString, RamFileObject {
public final Node root = new Node();
}
The rest is encapsulated in the Node class.
An aside: where would a class like Tree belong?  It is awfully general 
to be in VFS.  Should I be mentioning this to the collections folk?

Cheers,
--binkley
public class Tree Path, Leaf {
/**
 * Creates a new root node for a tree with the given 
varpath/var.  For example, if the type of varPath/var is [EMAIL PROTECTED] 
String}, a common choice for root path would be the empty string.
 *
 * @param path the root node name
 *
 * @return the new root node
 */
public Node createRootNode(final Path path) {
return new Node(path);
}

public class Node {
private final Path path;
private final Node parent;
private final MapPath, Node children = new HashMapPath, Node();
private Leaf content;
/**
 * Constructs a new root [EMAIL PROTECTED] Node} with the given 
varpath/var.
 * The root is itself its own parent node.
 *
 * @param path the root node name
 *
 * @see #Node(Path, Node)
 */
protected Node(final Path path) {
if (null == path) throw new NullPointerException();

this.parent = this;
this.path = path;
}
/**
 * Constructs a new non-root [EMAIL PROTECTED] Node} with the given
 * varpath/var and varparent/var node.  The parent node
 * strongmust/strong be distinct from this node.
 *
 * @param path the child node name
 * @param parent the parent node
 *
 * @see #Node(Path)
 */
protected Node(final Path path, final Node parent) {
if (null == parent) throw new NullPointerException();
if (this == parent) throw new IllegalArgumentException();
if (null == path) throw new NullPointerException();
this.parent = parent;
this.path = path;
}
public boolean isRoot() {
return this == parent;
}
public Node getParent() {
return parent;
}
public Path getPath() {
return path;
}
public boolean hasContent() {
return null != content;
}
public Leaf getContent() {
if (null == content) throw new NullPointerException();
return content;
}
public void setContent(final Leaf content) {
if (null == content) throw new NullPointerException();
this.content = content;
}
public void removeContent() {
if (null != content) throw new IllegalStateException();
this.content = null;
}
public boolean hasChild(final Path path) {
if (null == path) throw new NullPointerException();
return children.containsKey(path);
}
public Node getChild(final Path path) {
if (null == path) throw new NullPointerException();
return children.get(path);
}
public Node addChild(final Path path) {
if (null == path) throw new NullPointerException();
if (hasChild(path)) throw new IllegalArgumentException();
final Node child = new Node(path, this);
children.put(path, child);
return child;
}
public void removeChild(final Path path) {
if (null == path) throw new NullPointerException();
if (!hasChild(path)) throw new IllegalArgumentException();
children.remove(path);
// Do not return the removed node; it has no valid parent
}
public CollectionNode getChildren() {
return Collections.unmodifiableCollection(children.values());
}
}
}
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


svn commit: r151592 - jakarta/commons/proper/commons-build/trunk/sandbox-project.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 07:44:31 2005
New Revision: 151592

URL: http://svn.apache.org/viewcvs?view=revrev=151592
Log:
fix javadoc generation

Modified:
jakarta/commons/proper/commons-build/trunk/sandbox-project.xml

Modified: jakarta/commons/proper/commons-build/trunk/sandbox-project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/sandbox-project.xml?view=diffr1=151591r2=151592
==
--- jakarta/commons/proper/commons-build/trunk/sandbox-project.xml (original)
+++ jakarta/commons/proper/commons-build/trunk/sandbox-project.xml Sun Feb  6 
07:44:31 2005
@@ -19,7 +19,7 @@
   idcommons-sandbox-master/id
   nameCommons Sandbox Master Maven POM/name
   currentVersion1.0/currentVersion
-  packageorg.apache.commons.${pom.artifactId.substring(8)}.*/package
+  packageorg.apache.commons.${pom.artifactId.substring(8)}/package
   
urlhttp://jakarta.apache.org/commons/sandbox/${pom.artifactId.substring(8)}/index.html/url
 
   organization



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



svn commit: r151593 - in jakarta/commons/sandbox: cache/trunk/xdocs/ clazz/trunk/ clazz/trunk/xdocs/ cli/trunk/ compress/trunk/xdocs/ contract/trunk/xdocs/ convert/trunk/xdocs/ email/trunk/xdocs/ events/trunk/ events/trunk/xdocs/ feedparser/trunk/xdocs/

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 07:54:24 2005
New Revision: 151593

URL: http://svn.apache.org/viewcvs?view=revrev=151593
Log:
CVS = SVN conversion

Modified:
jakarta/commons/sandbox/cache/trunk/xdocs/index.xml
jakarta/commons/sandbox/cache/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/clazz/trunk/PROPOSAL.html
jakarta/commons/sandbox/clazz/trunk/build.xml
jakarta/commons/sandbox/clazz/trunk/xdocs/index.xml
jakarta/commons/sandbox/clazz/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/cli/trunk/project.xml
jakarta/commons/sandbox/compress/trunk/xdocs/index.xml
jakarta/commons/sandbox/compress/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/contract/trunk/xdocs/downloads.xml
jakarta/commons/sandbox/contract/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/convert/trunk/xdocs/index.xml
jakarta/commons/sandbox/convert/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/email/trunk/xdocs/downloads.xml
jakarta/commons/sandbox/email/trunk/xdocs/index.xml
jakarta/commons/sandbox/email/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/events/trunk/PROPOSAL.html
jakarta/commons/sandbox/events/trunk/xdocs/index.xml
jakarta/commons/sandbox/events/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/feedparser/trunk/xdocs/downloads.xml

Modified: jakarta/commons/sandbox/cache/trunk/xdocs/index.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/cache/trunk/xdocs/index.xml?view=diffr1=151592r2=151593
==
--- jakarta/commons/sandbox/cache/trunk/xdocs/index.xml (original)
+++ jakarta/commons/sandbox/cache/trunk/xdocs/index.xml Sun Feb  6 07:54:24 2005
@@ -48,11 +48,11 @@
 section name=Documentation
 p
  ul
-  liThe a href=apidocs/index.htmlJavadoc/a of the latest CVS/li
+  liThe a href=apidocs/index.htmlJavadoc/a of the latest SVN/li
   liInformation about using the 
- a 
href=http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons-sandbox/cache/docs/tagext.html?rev=HEADamp;content-type=text/html;
+ a 
href=http://svn.apache.org/viewcvs/*checkout*/jakarta/commons/sandbox/cache/trunk/docs/tagext.html;
  Tag library/a/li
-  liThe a 
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache/;CVS 
repository/a can be browsed./li
+  liThe a 
href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox/cache/;SVN 
repository/a can be browsed./li
  /ul
 /p
 /section

Modified: jakarta/commons/sandbox/cache/trunk/xdocs/navigation.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/cache/trunk/xdocs/navigation.xml?view=diffr1=151592r2=151593
==
--- jakarta/commons/sandbox/cache/trunk/xdocs/navigation.xml (original)
+++ jakarta/commons/sandbox/cache/trunk/xdocs/navigation.xml Sun Feb  6 
07:54:24 2005
@@ -20,11 +20,11 @@
   body
 menu name=Commons#xA0;Cache
   item name=Overview  href=/index.html/
-  item name=Tag library   
href=http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons-sandbox/cache/docs/tagext.html?rev=HEADamp;content-type=text/html;
 /
+  item name=Tag library   
href=http://svn.apache.org/viewcvs/*checkout*/jakarta/commons/sandbox/cache/trunk/docs/tagext.html;
 /
   item name=Javadoc   href=/apidocs/index.html/
   item name=Mailing lists href=/mail-lists.html/
   item name=Team  href=/team-list.html/
-  item name=CVS   
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache//
+  item name=SVN   
href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox/cache//
 /menu
 common-menus;
   /body

Modified: jakarta/commons/sandbox/clazz/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/clazz/trunk/PROPOSAL.html?view=diffr1=151592r2=151593
==
--- jakarta/commons/sandbox/clazz/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/clazz/trunk/PROPOSAL.html Sun Feb  6 07:54:24 2005
@@ -104,8 +104,8 @@
 h3(3)  Required Jakarta-Commons Resources/h3
 
 ul
-liCVS Repository - New directory codeclazz/code in the
-codejakarta-commons/code CVS repository./li
+liSVN repository - New directory codeclazz/code in the
+codejakarta-commons/code SVN repository./li
 liMailing List - Discussions will take place on the general
 emcommons-dev@jakarta.apache.org/em mailing list.  To help
 list subscribers identify messages of interest, it is suggested that

Modified: jakarta/commons/sandbox/clazz/trunk/build.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/clazz/trunk/build.xml?view=diffr1=151592r2=151593
==
--- jakarta/commons/sandbox/clazz/trunk/build.xml (original)
+++ jakarta/commons/sandbox/clazz/trunk/build.xml Sun Feb  6 07:54:24 2005
@@ -18,7 

svn commit: r151594 - in jakarta/commons/sandbox: filters/trunk/ functor/trunk/ functor/trunk/xdocs/ http/trunk/ i18n/trunk/xdocs/ id/trunk/xdocs/ javaflow/trunk/xdocs/

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 07:56:16 2005
New Revision: 151594

URL: http://svn.apache.org/viewcvs?view=revrev=151594
Log:
CVS = SVN conversion

Modified:
jakarta/commons/sandbox/filters/trunk/PROPOSAL.html
jakarta/commons/sandbox/functor/trunk/STATUS.txt
jakarta/commons/sandbox/functor/trunk/xdocs/building.xml
jakarta/commons/sandbox/functor/trunk/xdocs/examples.xml
jakarta/commons/sandbox/functor/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/http/trunk/PROPOSAL.html
jakarta/commons/sandbox/i18n/trunk/xdocs/downloads.xml
jakarta/commons/sandbox/id/trunk/xdocs/downloads.xml
jakarta/commons/sandbox/javaflow/trunk/xdocs/downloads.xml

Modified: jakarta/commons/sandbox/filters/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/filters/trunk/PROPOSAL.html?view=diffr1=151593r2=151594
==
--- jakarta/commons/sandbox/filters/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/filters/trunk/PROPOSAL.html Sun Feb  6 07:56:16 2005
@@ -94,7 +94,7 @@
 h3(4) Required Jakarta Resources/h3
 
 pInitially the filters will reside in the jakarta-commons-sandbox
-CVS repository in the filters directory. The
+SVN repository in the filters directory. The
 emcommons-dev@jakarta.apache.org/em list will be used for discussions.
 /p
 
@@ -110,7 +110,7 @@
 pThe following resources would be needed for a top level Jakarta
 project.
 ul
-liCVS Repository - New CVS repository codejakarta-filters/code./li
+liSVN repository - New SVN repository codejakarta-filters/code./li
 
 liMailing List - Discussions will take place on a new mailing list
 named em[EMAIL PROTECTED]/em./li

Modified: jakarta/commons/sandbox/functor/trunk/STATUS.txt
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/functor/trunk/STATUS.txt?view=diffr1=151593r2=151594
==
--- jakarta/commons/sandbox/functor/trunk/STATUS.txt (original)
+++ jakarta/commons/sandbox/functor/trunk/STATUS.txt Sun Feb  6 07:56:16 2005
@@ -1,5 +1,5 @@
 Commons Functor Status
-$Revision: 1.1 $ $Date: 2003/12/03 18:22:10 $
+$Revision: 1.1 $ $Date$
 http://jakarta.apache.org/commons/sandbox/functor/
 
 Summary:
@@ -32,9 +32,7 @@
   Mailing lists:commons-dev@jakarta.apache.org  (developers)
 commons-user@jakarta.apache.org (users)
 
-  Repositories: jakarta-commons-sandbox/functor
-
http://cvs.apache.org/viewcvs.cgi/jakarta-commons-sandbox/functor/
-Also see 
http://jakarta.apache.org/commons/sandbox/functor/cvs-usage.html
+  Repositories: jakarta/commons/sandbox/functor
 
 Committers:
 

Modified: jakarta/commons/sandbox/functor/trunk/xdocs/building.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/functor/trunk/xdocs/building.xml?view=diffr1=151593r2=151594
==
--- jakarta/commons/sandbox/functor/trunk/xdocs/building.xml (original)
+++ jakarta/commons/sandbox/functor/trunk/xdocs/building.xml Sun Feb  6 
07:56:16 2005
@@ -26,7 +26,7 @@
   p
  To build Commons Functor from scratch, you must first obtain the 
source, either
  from 
- a href=./cvs-usage.html#Anonymous+CVS+Accessthe CVS server/a
+ a href=./cvs-usage.htmlthe SVN server/a
  or from
  a 
href=http://cvs.apache.org/builds/jakarta-commons/nightly/commons-functor/;a 
source snapshot/a.
   /p

Modified: jakarta/commons/sandbox/functor/trunk/xdocs/examples.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/functor/trunk/xdocs/examples.xml?view=diffr1=151593r2=151594
==
--- jakarta/commons/sandbox/functor/trunk/xdocs/examples.xml (original)
+++ jakarta/commons/sandbox/functor/trunk/xdocs/examples.xml Sun Feb  6 
07:56:16 2005
@@ -81,34 +81,34 @@
   Commons-Functor library.
 /p
 dl
-  dta 
href=http://cvs.apache.org/viewcvs.cgi/jakarta-commons-sandbox/functor/src/test/org/apache/commons/functor/example/kata/one/;Kata
 One: Supermarket Pricing/a/dt
+  dta 
href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox/functor/trunk/src/test/org/apache/commons/functor/example/kata/one/;Kata
 One: Supermarket Pricing/a/dt
   dd
 Dave's a 
href=http://pragprog.com/pragdave/Practices/Kata/KataOne.rdoc,v;Kata One/a 
asks how
 one might implement supermarket pricing rules, like three for a 
dollar or buy two get one free.
 By encapsulating tiny bits of logic, functors provide a useful 
solution to this problem, as 
 illustrated in the 
-a 

svn commit: r151595 - jakarta/commons/sandbox/jex/trunk/xdocs/stylesheets

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 07:58:08 2005
New Revision: 151595

URL: http://svn.apache.org/viewcvs?view=revrev=151595
Log:
CVS = SVN conversion

Removed:
jakarta/commons/sandbox/jex/trunk/xdocs/stylesheets/


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



svn commit: r151596 - in jakarta/commons/sandbox/jex/trunk: PROPOSAL.html build.xml project.xml xdocs/navigation.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 07:58:38 2005
New Revision: 151596

URL: http://svn.apache.org/viewcvs?view=revrev=151596
Log:
CVS = SVN conversion

Added:
jakarta/commons/sandbox/jex/trunk/xdocs/navigation.xml
Modified:
jakarta/commons/sandbox/jex/trunk/PROPOSAL.html
jakarta/commons/sandbox/jex/trunk/build.xml
jakarta/commons/sandbox/jex/trunk/project.xml

Modified: jakarta/commons/sandbox/jex/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jex/trunk/PROPOSAL.html?view=diffr1=151595r2=151596
==
--- jakarta/commons/sandbox/jex/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/jex/trunk/PROPOSAL.html Sun Feb  6 07:58:38 2005
@@ -86,7 +86,7 @@
 
 ul
 li
-CVS Repository - New directory jex in the ttjakarta-commons/tt CVS
+SVN repository - New directory jex in the ttjakarta/commons/tt SVN
 repository./li
 
 li

Modified: jakarta/commons/sandbox/jex/trunk/build.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jex/trunk/build.xml?view=diffr1=151595r2=151596
==
--- jakarta/commons/sandbox/jex/trunk/build.xml (original)
+++ jakarta/commons/sandbox/jex/trunk/build.xml Sun Feb  6 07:58:38 2005
@@ -3,7 +3,7 @@
 
 !--
 Jex component of the Jakarta Commons Subproject
-$Id: build.xml,v 1.1 2002/06/12 22:31:48 dmitri Exp $
+$Id$
 --
 
 
@@ -293,7 +293,7 @@
   !-- D I S T--
   !-- == --
 
-  target name=dist depends=compile,jar,javadoc,xdoc
+  target name=dist depends=compile,jar,javadoc
description=Create binary distribution
 mkdir  dir=${dist.home}/
 copy  file=LICENSE
@@ -314,79 +314,6 @@
   arg value=org.apache.commons.jex.JexTestCase/
   classpath refid=test.classpath/
 /java
-  /target
-
-!-- == Documentation = --
-
-  target name=xdoc.fetch-stylesheet unless=localstylesheet
-  echo
-   
-   #
-   #  Fetching the latest stylesheet from jakarta-site2
-   #
-   #  NOTE : As this build target is meant for developers, this requires
-   #a properly setup CVS.  But you are encouraged to use this to
-   #experiment with Anakia - if the fetch fails, it may be because
-   #you haven't yet logged into CVS. The way to do it, assuming you
-   #have a resonable CVS client setup is
-   #
-   #  $ cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
-   #  password: anoncvs
-   #
-   #  and that should solve it.
-   #
-   #  See http://jakarta.apache.org/site/cvsindex.html for more
-   #  information, or http://www.cvshome.org/
-   #
-   #  Ant really is the bee's knees. http://jakarta.apache.org/ant/
-   #
-   ##
-   /echo
-
-  cvs cvsRoot=:pserver:[EMAIL PROTECTED]:/home/cvspublic
-  command=checkout -p jakarta-site2/xdocs/stylesheets/site.vsl
-  output=${docs.src}/stylesheets/site.vsl
-  /
-  /target
-
-  target name=xdoc depends=xdoc.fetch-stylesheet
-  description=Generates HTML documentation from XML source
-mkdir  dir=${dist.home}/
-mkdir  dir=${dist.home}/docs/
-
-  taskdef name=anakia classname=org.apache.velocity.anakia.AnakiaTask
-  classpath location=${velocity.jar}/
-  classpath location=${jdom.jar}/
-  classpath location=${xerces.jar}/
-  classpath location=${commons-collections.jar}/
-  classpath location=${logkit.jar}/
-  /taskdef
-
-  echo
-   ###
-   #
-   #  Now using Anakia to transform our XML documentation
-   #  to HTML.
-   #
-   ###
-   /echo
-
-  anakia basedir=${docs.src} destdir=${docs.dest}/
-   extension=.html style=./site.vsl
-   projectFile=stylesheets/project.xml
-   excludes=**/stylesheets/** empty.xml
-   includes=**/*.xml
-   lastModifiedCheck=true
-   templatePath=xdocs/stylesheets
-  /anakia
-
-  copy todir=${docs.dest}/images filtering=no
-  fileset dir=${docs.src}/images
-  include name=**/*.gif/
-  include name=**/*.jpeg/
-  include name=**/*.jpg/
-  /fileset
-  /copy
   /target
 
 /project

Modified: jakarta/commons/sandbox/jex/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jex/trunk/project.xml?view=diffr1=151595r2=151596
==
--- 

svn commit: r151598 - in jakarta/commons/sandbox: rupert/trunk/STATUS.html scaffold/trunk/xdocs/downloads.xml services/trunk/PROPOSAL.html servlet/trunk/PROPOSAL.html

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 08:00:53 2005
New Revision: 151598

URL: http://svn.apache.org/viewcvs?view=revrev=151598
Log:
CVS = SVN conversion

Modified:
jakarta/commons/sandbox/rupert/trunk/STATUS.html
jakarta/commons/sandbox/scaffold/trunk/xdocs/downloads.xml
jakarta/commons/sandbox/services/trunk/PROPOSAL.html
jakarta/commons/sandbox/servlet/trunk/PROPOSAL.html

Modified: jakarta/commons/sandbox/rupert/trunk/STATUS.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/rupert/trunk/STATUS.html?view=diffr1=151597r2=151598
==
--- jakarta/commons/sandbox/rupert/trunk/STATUS.html (original)
+++ jakarta/commons/sandbox/rupert/trunk/STATUS.html Sun Feb  6 08:00:53 2005
@@ -7,7 +7,7 @@
 
 div align=center
 h1The Jakarta Commons emRupert/em Component/h1
-$Id: STATUS.html,v 1.1 2001/06/19 11:39:05 geirm Exp $br
+$Id$br
 a href=#Introduction[Introduction]/a
 a href=#Dependencies[Dependencies]/a
 a href=#Release Info[Release Info]/a
@@ -70,7 +70,7 @@
 a name=Release Info/a
 h33.  RELEASE INFO/h3
 
-pCurrent Release:  strongUnreleased, CVS Repository Only/strong/p
+pCurrent Release:  strongUnreleased, SVN repository Only/strong/p
 pPlanned Next Release: N/A/p
 p
 Any release of this software depends upon acceptance by the Jakarta Commons 

Modified: jakarta/commons/sandbox/scaffold/trunk/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/scaffold/trunk/xdocs/downloads.xml?view=diffr1=151597r2=151598
==
--- jakarta/commons/sandbox/scaffold/trunk/xdocs/downloads.xml (original)
+++ jakarta/commons/sandbox/scaffold/trunk/xdocs/downloads.xml Sun Feb  6 
08:00:53 2005
@@ -18,7 +18,7 @@
properties
   titleDownloads/title
   author email=commons-dev@jakarta.apache.orgCommons Documentation 
Team/author
-  revision$Id: downloads.xml,v 1.2 2004/03/21 21:11:50 dirkv Exp 
$/revision
+  revision$Id$/revision
/properties
 
body
@@ -53,7 +53,7 @@
 --
  p
 Access to the source tree to see the latest and greatest code is 
possible
-through a href=cvs-usage.htmlanonymous CVS access/a.
+through a href=cvs-usage.htmlanonymous SVN access/a.
  /p
   /section
 

Modified: jakarta/commons/sandbox/services/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/services/trunk/PROPOSAL.html?view=diffr1=151597r2=151598
==
--- jakarta/commons/sandbox/services/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/services/trunk/PROPOSAL.html Sun Feb  6 08:00:53 
2005
@@ -57,8 +57,8 @@
 
 ul
 
-liCVS Repository - New directory codeservices/code in the 
-codejakarta-commons-sandbox/code CVS repository./li
+liSVN repository - New directory codeservices/code in the 
+codejakarta-commons-sandbox/code SVN repository./li
 
 liInitial Committers - The list is provided below. /li
 

Modified: jakarta/commons/sandbox/servlet/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/servlet/trunk/PROPOSAL.html?view=diffr1=151597r2=151598
==
--- jakarta/commons/sandbox/servlet/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/servlet/trunk/PROPOSAL.html Sun Feb  6 08:00:53 2005
@@ -45,8 +45,8 @@
 h3(3)  Required Jakarta-Commons Resources/h3
 
 ul
-liCVS Repository - New directory codeservlet/code in the
-codejakarta-commons/code CVS repository./li
+liSVN repository - New directory codeservlet/code in the
+codejakarta-commons/code SVN repository./li
 liMailing List - Discussions will take place on the general
 emcommons-dev@jakarta.apache.org/em mailing list.  To help
 list subscribers identify messages of interest, it is suggested that



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



svn commit: r151599 - jakarta/commons/sandbox/tbm/trunk/xdocs/stylesheets

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 08:01:34 2005
New Revision: 151599

URL: http://svn.apache.org/viewcvs?view=revrev=151599
Log:
CVS = SVN conversion

Removed:
jakarta/commons/sandbox/tbm/trunk/xdocs/stylesheets/


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



svn commit: r151600 - in jakarta/commons/sandbox: sql/trunk/xdocs/index.xml sql/trunk/xdocs/navigation.xml tbm/trunk/PROPOSAL.html tbm/trunk/xdocs/navigation.xml threading/trunk/PROPOSAL.html threading/trunk/STATUS.html threadpool/trunk/xdocs/downloads.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 08:02:02 2005
New Revision: 151600

URL: http://svn.apache.org/viewcvs?view=revrev=151600
Log:
CVS = SVN conversion

Added:
jakarta/commons/sandbox/tbm/trunk/xdocs/navigation.xml
Modified:
jakarta/commons/sandbox/sql/trunk/xdocs/index.xml
jakarta/commons/sandbox/sql/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/tbm/trunk/PROPOSAL.html
jakarta/commons/sandbox/threading/trunk/PROPOSAL.html
jakarta/commons/sandbox/threading/trunk/STATUS.html
jakarta/commons/sandbox/threadpool/trunk/xdocs/downloads.xml

Modified: jakarta/commons/sandbox/sql/trunk/xdocs/index.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/sql/trunk/xdocs/index.xml?view=diffr1=151599r2=151600
==
--- jakarta/commons/sandbox/sql/trunk/xdocs/index.xml (original)
+++ jakarta/commons/sandbox/sql/trunk/xdocs/index.xml Sun Feb  6 08:02:02 2005
@@ -27,7 +27,7 @@
   /p
   p
 There is an example XML document
-a 
href=http://cvs.apache.org/viewcvs.cgi/jakarta-commons-sandbox/sql/src/test-input/datamodel.xml?rev=HEAD;here/a
+a 
href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox/sql/src/test-input/datamodel.xml;here/a
   /p
   p
 Once you have the relational model, either via beans or XML, you can 
then create the DDL to create or drop

Modified: jakarta/commons/sandbox/sql/trunk/xdocs/navigation.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/sql/trunk/xdocs/navigation.xml?view=diffr1=151599r2=151600
==
--- jakarta/commons/sandbox/sql/trunk/xdocs/navigation.xml (original)
+++ jakarta/commons/sandbox/sql/trunk/xdocs/navigation.xml Sun Feb  6 08:02:02 
2005
@@ -23,7 +23,7 @@
   item name=Javadoc href=/apidocs/index.html/
   item name=Mailing lists href=/mail-lists.html/
   item name=Team href=/team-list.html/
-  item name=CVS 
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/sql/
+  item name=SVN 
href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox/sql/
 /menu
 common-menus;
   /body

Modified: jakarta/commons/sandbox/tbm/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/tbm/trunk/PROPOSAL.html?view=diffr1=151599r2=151600
==
--- jakarta/commons/sandbox/tbm/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/tbm/trunk/PROPOSAL.html Sun Feb  6 08:02:02 2005
@@ -86,8 +86,8 @@
 h3Required Jakarta-Commons Resources/h3
 
 ul
-liCVS Repository - New directory codetbm/code in the
-codejakarta-commons/code CVS repository.  All initial committers
+liSVN repository - New directory codetbm/code in the
+codejakarta-commons/code SVN repository.  All initial committers
 are already committers on codejakarta-commons/code, so no
 additional user setups are required./li
 liUser Mailing List - Discussions for use of TBM will take place on the

Added: jakarta/commons/sandbox/tbm/trunk/xdocs/navigation.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/tbm/trunk/xdocs/navigation.xml?view=autorev=151600
==
--- jakarta/commons/sandbox/tbm/trunk/xdocs/navigation.xml (added)
+++ jakarta/commons/sandbox/tbm/trunk/xdocs/navigation.xml Sun Feb  6 08:02:02 
2005
@@ -0,0 +1,12 @@
+?xml version=1.0 encoding=ISO-8859-1?
+!DOCTYPE org.apache.commons.menus SYSTEM 
'../../commons-build/menus/menus.dtd'
+project name=Commons#xA0;TBM
+titleCommons#xA0;TBM/title
+body
+menu name=Commons#xA0;TBM
+item name=Overview  href=/index.html /
+item name=API#xA0;Documentation
href=/apidocs/index.html/
+/menu
+common-menus;
+/body
+/project

Modified: jakarta/commons/sandbox/threading/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/threading/trunk/PROPOSAL.html?view=diffr1=151599r2=151600
==
--- jakarta/commons/sandbox/threading/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/threading/trunk/PROPOSAL.html Sun Feb  6 08:02:02 
2005
@@ -101,8 +101,8 @@
 h3(3)  Required Jakarta-Commons Resources/h3
 
 ul
-liCVS Repository - New directory codethreading/code in the
-codejakarta-commons/code CVS repository.  All initial committers
+liSVN repository - New directory codethreading/code in the
+codejakarta-commons/code SVN repository.  All initial committers
 are already committers on codejakarta-commons/code, so no
 additional user setups are required./li
 liMailing List - Discussions will take place on the general

Modified: jakarta/commons/sandbox/threading/trunk/STATUS.html
URL: 

svn commit: r151601 - in jakarta/commons/sandbox: vfs/trunk/xdocs/download.xml workflow/trunk/PROPOSAL.html workflow/trunk/STATUS.html workflow/trunk/src/java/org/apache/commons/workflow/demo/Main.java workflow/trunk/xdocs/downloads.xml workflow/trunk/xdocs/navigation.xml xmlio/trunk/xdocs/downloads.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 08:02:45 2005
New Revision: 151601

URL: http://svn.apache.org/viewcvs?view=revrev=151601
Log:
CVS = SVN conversion

Modified:
jakarta/commons/sandbox/vfs/trunk/xdocs/download.xml
jakarta/commons/sandbox/workflow/trunk/PROPOSAL.html
jakarta/commons/sandbox/workflow/trunk/STATUS.html

jakarta/commons/sandbox/workflow/trunk/src/java/org/apache/commons/workflow/demo/Main.java
jakarta/commons/sandbox/workflow/trunk/xdocs/downloads.xml
jakarta/commons/sandbox/workflow/trunk/xdocs/navigation.xml
jakarta/commons/sandbox/xmlio/trunk/xdocs/downloads.xml

Modified: jakarta/commons/sandbox/vfs/trunk/xdocs/download.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/vfs/trunk/xdocs/download.xml?view=diffr1=151600r2=151601
==
--- jakarta/commons/sandbox/vfs/trunk/xdocs/download.xml (original)
+++ jakarta/commons/sandbox/vfs/trunk/xdocs/download.xml Sun Feb  6 08:02:45 
2005
@@ -82,7 +82,7 @@
 /p
 ul
 li
-Check the source out of CVS, as described on the
+Check the source out of SVN, as described on the
 a href=cvs-usage.htmlSource Repository/a page.
 /li
 li

Modified: jakarta/commons/sandbox/workflow/trunk/PROPOSAL.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/workflow/trunk/PROPOSAL.html?view=diffr1=151600r2=151601
==
--- jakarta/commons/sandbox/workflow/trunk/PROPOSAL.html (original)
+++ jakarta/commons/sandbox/workflow/trunk/PROPOSAL.html Sun Feb  6 08:02:45 
2005
@@ -80,8 +80,8 @@
 
 ul
 
-liCVS Repository - New directory codeworkflow/code in the 
-codejakarta-commons/code CVS repository./li
+liSVN repository - New directory codeworkflow/code in the 
+codejakarta-commons/code SVN repository./li
 
 liMailing List - Discussions will take place on the general
 emjakarta-commons@jakarta.apache.org/em mailing list. To help list

Modified: jakarta/commons/sandbox/workflow/trunk/STATUS.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/workflow/trunk/STATUS.html?view=diffr1=151600r2=151601
==
--- jakarta/commons/sandbox/workflow/trunk/STATUS.html (original)
+++ jakarta/commons/sandbox/workflow/trunk/STATUS.html Sun Feb  6 08:02:45 2005
@@ -7,7 +7,7 @@
 
 div align=center
 h1The Jakarta Commons emWorkflow/em Component/h1
-$Id: STATUS.html,v 1.1 2001/08/13 21:12:13 craigmcc Exp $br
+$Id$br
 a href=#Introduction[Introduction]/a
 a href=#Dependencies[Dependencies]/a
 a href=#Release Info[Release Info]/a
@@ -43,7 +43,7 @@
 a name=Release Info/a
 h33.  RELEASE INFO/h3
 
-pCurrent Release:  strongUnreleased, CVS Repository Only/strong/p
+pCurrent Release:  strongUnreleased, SVN repository Only/strong/p
 pPlanned Next Release: N/A/p
 
 

Modified: 
jakarta/commons/sandbox/workflow/trunk/src/java/org/apache/commons/workflow/demo/Main.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/workflow/trunk/src/java/org/apache/commons/workflow/demo/Main.java?view=diffr1=151600r2=151601
==
--- 
jakarta/commons/sandbox/workflow/trunk/src/java/org/apache/commons/workflow/demo/Main.java
 (original)
+++ 
jakarta/commons/sandbox/workflow/trunk/src/java/org/apache/commons/workflow/demo/Main.java
 Sun Feb  6 08:02:45 2005
@@ -1,18 +1,18 @@
 /*
  * Copyright 1999-2001,2004 The Apache Software Foundation.
- * 
+ *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
  * You may obtain a copy of the License at
- * 
+ *
  *  http://www.apache.org/licenses/LICENSE-2.0
- * 
+ *
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an AS IS BASIS,
  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  * See the License for the specific language governing permissions and
  * limitations under the License.
- */ 
+ */
 
 package org.apache.commons.workflow.demo;
 
@@ -44,7 +44,7 @@
  * as outlined in the original proposal./p
  *
  * pstrongWARNING/strong - This code depends on the version of Digester
- * currently in CVS - the 1.0 released version will not work correctly with
+ * currently in SVN - the 1.0 released version will not work correctly with
  * namespace prefixes./p
  *
  * pstrongWARNING/strong - The namespace URLs in the example XML document
@@ -53,7 +53,7 @@
  * formal release of this technology, because that is key to the extensibility
  * of Step implementations./p
  *
- * @version $Revision: 1.5 $ $Date: 2004/02/28 03:35:55 $
+ * @version $Revision: 1.5 $ $Date$
  * @author Craig R. McClanahan
  */
 

Modified: 

Re: [logging] Identify Class Loader Problems

2005-02-06 Thread robert burrell donkin
On Fri, 2005-01-28 at 20:15, Richard Sitze wrote:

hi richard

(apologies for the delay: machine problems) 

 I'd like to begin to identify the ClassLoader problems with the
 current JCL discovery mechanism.  If you are aware of additional
 issues, please respond and let's get them all out on the table.

setting aside bugs and environments where discovery is not going to work
(for example, untrusted applets), i think your analysis has captured
everything.

 I believe the following two scenarios summarize the specific issues,
 as well as more general problems.
 
 A.  Parent / Child ClassLoaders, General

snip

 B.  Parent / Child ClassLoaders, Child does not defer to Parent first.

snip

 C.  Host / Sub

snip

 SUMMARY of PROBLEM:
 
 There are ONE general problem at work here:
   - Disrespect for proper ISOLATION as defined by ClassLoaders
 
 The fundamental problem is dealing with the thread context classloader
 in [common] situations where it represents an isolated or
 isolating mechanism.  For scenario A, we are simply loading
 when we should be.  For scenario B, by setting child first
 search behavior, we are granting the child a degree of independence.
 For scenario C, by creating a Sub that isn't related to the
 parent at all.
 
 In both cases, JCL behavior incorrectly *assumes* that a more
 traditional Parent/Child relationship exists with the thread context
 classloader.
 
 While the current mechanism *is* generally useful, I'm realizing
 that we've only addressed one corner case, and have broken other
 *very* reasonable classloader configurations.

+1

 WHAT CAN BE DONE:
 
 - For A.1, For auto configuration of for predefined wrapper impls,
   any impl class should be located using the ClassLoader of the
   wrapper, never the thread context class loader.

+1

 Detect independent thread context class loaders and respect the
 boundries.  By independent, I mean any classloader that gives
 preference to it's own internal classes.
 
 - The trivial case is a thread context class loader that doesn't
   include the current ClassLoader [used to load 'this' class, i.e.
   LogFactory] in it's hierarchy.  In this case, the discovery
   mechanism simply has *NO* business crossing the boundry, it should
   revert back to using the ClassLoader used to load the [currently
   executing] LogFactory.  This should cover scenario C.
 
 - Scenario B is a bit more difficult to resolve.
 
   For B.1, the child resource manager [LogFactory] is in
   control.  We can presume during discovery that we should NOT
   look any higher up the hierarchy than the level at which our
   interface [Log or LogFactory] was discovered for configuration
   or implementation resources.  [various games can be played
   to determine which loader in a hierarchy was used to obtain
   any particular resource].
 
   For B.2, the parent resouce manager [LogFactory] is in
   control.  We can check by requesting our base interface [Log or
   LogFactory] from the thread context class loader.  If the class
   returned is not the same as what we have in the Parent, then
   we should treat this as the trivial case: use the LogFactory
   classloader and do not cross that boundry.

i think that this last paragraph is the key: the acid test for
compatibility is whether the Log class loaded by the context class
loader is the same as the Log class loaded by the LogFactory loader.
when this test fails, it is appropriate to use the classloader used to
load LogFactory.

i can't think of any use cases which work now which would be broken by
changing the code to respect the classloader boundaries in this fashion.
can anyone else?

- robert


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



[VOTE][configuration]Release 1.1

2005-02-06 Thread Oliver Heger
Dear community,
since the 1.0 release of [configuration] a couple of new features have 
been added. The code base has been stable for a while now, so I think it 
is time to cut out a new 1.1 release before we start to implement 
further features and refactorings. A complete list of changes since the 
1.0 releaes can be found here:
http://jakarta.apache.org/commons/configuration/changes-report.html

I have created a release candidate, which can be inspected at 
http://www.apache.org/~oheger/commons-configuration-1.1rc1/  (the tag 
for 1.1RC1 is named CONFIGURATION_1_1RC1).

Here is my +1!
Oliver
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


svn commit: r151602 - in jakarta/commons/proper: dbcp/trunk/xdocs/downloads.xml launcher/trunk/xdocs/downloads.xml modeler/trunk/xdocs/downloads.xml pool/trunk/xdocs/downloads.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 09:00:02 2005
New Revision: 151602

URL: http://svn.apache.org/viewcvs?view=revrev=151602
Log:
CVS = SVN conversion

Modified:
jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml
jakarta/commons/proper/launcher/trunk/xdocs/downloads.xml
jakarta/commons/proper/modeler/trunk/xdocs/downloads.xml
jakarta/commons/proper/pool/trunk/xdocs/downloads.xml

Modified: jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml?view=diffr1=151601r2=151602
==
--- jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml (original)
+++ jakarta/commons/proper/dbcp/trunk/xdocs/downloads.xml Sun Feb  6 09:00:02 
2005
@@ -18,7 +18,7 @@
properties
   titleDownloads/title
   author email=commons-dev@jakarta.apache.orgCommons Documentation 
Team/author
-  revision$Id: downloads.xml,v 1.8 2005/01/09 19:16:39 dirkv Exp 
$/revision
+  revision$Id$/revision
/properties
 
body
@@ -56,7 +56,7 @@
  /p
  p
 Access to the source tree to see the latest and greatest code is 
possible
-through a href=cvs-usage.htmlanonymous CVS access/a.
+through a href=cvs-usage.htmlanonymous SVN access/a.
  /p
   /section
 !--

Modified: jakarta/commons/proper/launcher/trunk/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/launcher/trunk/xdocs/downloads.xml?view=diffr1=151601r2=151602
==
--- jakarta/commons/proper/launcher/trunk/xdocs/downloads.xml (original)
+++ jakarta/commons/proper/launcher/trunk/xdocs/downloads.xml Sun Feb  6 
09:00:02 2005
@@ -18,7 +18,7 @@
properties
   titleDownloads/title
   author email=commons-dev@jakarta.apache.orgCommons Documentation 
Team/author
-  revision$Id: downloads.xml,v 1.6 2005/01/16 20:14:43 dirkv Exp 
$/revision
+  revision$Id$/revision
/properties
 
body
@@ -48,7 +48,7 @@
  /p
  p
 Access to the source tree to see the latest and greatest code is 
possible
-through a href=cvs-usage.htmlanonymous CVS access/a.
+through a href=cvs-usage.htmlanonymous SVN access/a.
  /p
   /section
 !--

Modified: jakarta/commons/proper/modeler/trunk/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/modeler/trunk/xdocs/downloads.xml?view=diffr1=151601r2=151602
==
--- jakarta/commons/proper/modeler/trunk/xdocs/downloads.xml (original)
+++ jakarta/commons/proper/modeler/trunk/xdocs/downloads.xml Sun Feb  6 
09:00:02 2005
@@ -18,7 +18,7 @@
properties
   titleDownloads/title
   author email=commons-dev@jakarta.apache.orgCommons Documentation 
Team/author
-  revision$Id: downloads.xml,v 1.1 2005/01/16 20:07:34 dirkv Exp 
$/revision
+  revision$Id$/revision
/properties
 
body
@@ -51,7 +51,7 @@
  /p
  p
 Access to the source tree to see the latest and greatest code is 
possible
-through a href=cvs-usage.htmlanonymous CVS access/a.
+through a href=cvs-usage.htmlanonymous SVN access/a.
  /p
   /section
 !--

Modified: jakarta/commons/proper/pool/trunk/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/pool/trunk/xdocs/downloads.xml?view=diffr1=151601r2=151602
==
--- jakarta/commons/proper/pool/trunk/xdocs/downloads.xml (original)
+++ jakarta/commons/proper/pool/trunk/xdocs/downloads.xml Sun Feb  6 09:00:02 
2005
@@ -18,7 +18,7 @@
properties
   titleDownloads/title
   author email=commons-dev@jakarta.apache.orgCommons Documentation 
Team/author
-  revision$Id: downloads.xml,v 1.12 2005/01/09 19:17:27 dirkv Exp 
$/revision
+  revision$Id$/revision
/properties
 
body
@@ -55,7 +55,7 @@
  /p
  p
 Access to the source tree to see the latest and greatest code is 
possible
-through a href=cvs-usage.htmlanonymous CVS access/a.
+through a href=cvs-usage.htmlanonymous SVN access/a.
  /p
   /section
 !--



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



svn commit: r151603 - jakarta/commons/proper/transaction/trunk/xdocs/downloads.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 09:03:05 2005
New Revision: 151603

URL: http://svn.apache.org/viewcvs?view=revrev=151603
Log:
CVS = SVN conversion

Modified:
jakarta/commons/proper/transaction/trunk/xdocs/downloads.xml

Modified: jakarta/commons/proper/transaction/trunk/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/transaction/trunk/xdocs/downloads.xml?view=diffr1=151602r2=151603
==
--- jakarta/commons/proper/transaction/trunk/xdocs/downloads.xml (original)
+++ jakarta/commons/proper/transaction/trunk/xdocs/downloads.xml Sun Feb  6 
09:03:05 2005
@@ -29,7 +29,7 @@
  /p
   /section
   section name=Beta Releases / Release Candidates
-c pThe following beta releases / release candidates are 
available:/p
+ pThe following beta releases / release candidates are available:/p
  ul
lia 
href=http://cvs.apache.org/dist/jakarta/commons/transaction/1.1b1/;Version 
1.1 beta 1 - 13 January 2004/a / a 
href=http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons/transaction/RELEASE-NOTES.txt?rev=1.14;release
 notes/a/li
lia 
href=http://cvs.apache.org/dist/jakarta/commons/transaction/1.1b2/;Version 
1.1 beta 2 - 5 February 2004/a / a 
href=http://svn.apache.org/repos/asf/jakarta/commons/proper/transaction/tags/TRANSACTION_1_1_B2_RELEASE/RELEASE-NOTES.txt;release
 notes/a/li
@@ -38,7 +38,7 @@
   section name=Latest Sources
  p
 Access to the source tree to see the latest and greatest code is 
possible
-through a href=cvs-usage.htmlanonymous CVS access/a.
+through a href=cvs-usage.htmlanonymous SVN access/a.
  /p
   /section
 



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



svn commit: r151606 - jakarta/commons/proper/commons-build/trunk/sandbox-project.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 09:42:53 2005
New Revision: 151606

URL: http://svn.apache.org/viewcvs?view=revrev=151606
Log:
add linkcheck

Modified:
jakarta/commons/proper/commons-build/trunk/sandbox-project.xml

Modified: jakarta/commons/proper/commons-build/trunk/sandbox-project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/sandbox-project.xml?view=diffr1=151605r2=151606
==
--- jakarta/commons/proper/commons-build/trunk/sandbox-project.xml (original)
+++ jakarta/commons/proper/commons-build/trunk/sandbox-project.xml Sun Feb  6 
09:42:53 2005
@@ -109,6 +109,7 @@
 reportmaven-jxr-plugin/report
 --
 reportmaven-license-plugin/report
+reportmaven-linkcheck-plugin/report
 !--
 reportmaven-statcvs-plugin/report
 reportmaven-tasklist-plugin/report



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



svn commit: r151613 - jakarta/commons/sandbox/functor/trunk/maven.xml

2005-02-06 Thread dirkv
Author: dirkv
Date: Sun Feb  6 09:54:05 2005
New Revision: 151613

URL: http://svn.apache.org/viewcvs?view=revrev=151613
Log:
fix build

Modified:
jakarta/commons/sandbox/functor/trunk/maven.xml

Modified: jakarta/commons/sandbox/functor/trunk/maven.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/functor/trunk/maven.xml?view=diffr1=151612r2=151613
==
--- jakarta/commons/sandbox/functor/trunk/maven.xml (original)
+++ jakarta/commons/sandbox/functor/trunk/maven.xml Sun Feb  6 09:54:05 2005
@@ -33,8 +33,8 @@
 
 postGoal name=xdoc:register-reports 
   attainGoal name=maven-checkstyle-plugin:deregister/ 
-  attainGoal name=maven-linkcheck-plugin:deregister/ 
-  attainGoal name=maven-clover-plugin:register/ 
+!--  attainGoal name=maven-linkcheck-plugin:deregister/ --
+!--  attainGoal name=maven-clover-plugin:register/  --
 /postGoal 
 
 /project



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



Re: VOTE: FeedParser move to Commons Proper...

2005-02-06 Thread robert burrell donkin
+1

On Thu, 2005-02-03 at 01:54, Kevin A. Burton wrote:

snip

 I also want to be able to give out SVN commit to additional developers 
 as they
 come on board.

i'm going to assume that 'give out' is just an inaccurate choice of
words. new committers can be proposed once feedparser is in the commons
proper and voted on in the usual fashion. 

 Also... I assume we can get a dedicated mailing list for the FeedParser?
 HttpClient is currently doing this.

a couple of points:

1. that was a bit of an experiment which didn't work out as well as was
hoped. having all the components on one list encourages a sense of
community and also provides for better oversight.

2. wanting or needing a separate mailing list is a sign that a component
doesn't belong in the commons any more. 

- robert


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



Re: [cache] javadoc missing ?

2005-02-06 Thread Dirk Verbeeck
It was a problem in the project descriptor, should be fixed now.
Thanks
Dirk
Paul Libbrecht wrote:
Hi,
I noticed the javadoc of commons-sandbox-cache is actually missing the 
most interesting pacakge, org.apache.commons.cache and only include 
three packages one level below.

Is there something I missed ?
paul

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


svn commit: r151619 - jakarta/commons/proper/logging/trunk/build.xml

2005-02-06 Thread rdonkin
Author: rdonkin
Date: Sun Feb  6 11:44:27 2005
New Revision: 151619

URL: http://svn.apache.org/viewcvs?view=revrev=151619
Log:
Fixed bug in distribution build. Issue 33323. Contributed by Brian Stansberry.

Modified:
jakarta/commons/proper/logging/trunk/build.xml

Modified: jakarta/commons/proper/logging/trunk/build.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/build.xml?view=diffr1=151618r2=151619
==
--- jakarta/commons/proper/logging/trunk/build.xml (original)
+++ jakarta/commons/proper/logging/trunk/build.xml Sun Feb  6 11:44:27 2005
@@ -21,7 +21,7 @@
 
 !--
 Logging component of the Jakarta Commons Subproject
-$Id: build.xml,v 1.48 2004/11/10 22:59:04 rdonkin Exp $
+$Id$
 --
 
 
@@ -432,15 +432,6 @@
   target name=dist depends=compile,javadoc
description=Create binary distribution
 mkdir  dir=${dist.home}/
-ant antfile='build.xml' target='dist' dir='${optional.home}'/
-copy   todir=${dist.home}
-fileset dir='${optional.dist.home}'
-include name='*.jar'/
-/fileset
-/copy
-copy   todir=${dist.home}/docs-optional
-fileset dir='${optional.dist.home}/docs'/
-/copy
 copy  file=LICENSE.txt
   todir=${dist.home}/
 copy  file=NOTICE.txt
@@ -451,6 +442,15 @@
   tofile=${dist.home}/commons-${component.name}.jar /
 copy file=${build.home}/commons-${component.name}-api.jar
   tofile=${dist.home}/commons-${component.name}-api.jar /
+ant antfile='build.xml' target='dist' dir='${optional.home}' 
inheritAll=false /
+copy   todir=${dist.home}
+fileset dir='${optional.dist.home}'
+include name='*.jar'/
+/fileset
+/copy
+copy   todir=${dist.home}/docs-optional
+fileset dir='${optional.dist.home}/docs'/
+/copy
 mkdir  dir=${dist.home}/src/
 copy todir=${dist.home}/src filtering=on
   fileset  dir=${source.home}/



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



DO NOT REPLY [Bug 33323] - [logging] Ant build script does not create commons-logging-optional.jar

2005-02-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=33323.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33323


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-02-06 20:45 ---
Committed. Many Thanks.

Robert

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: Cache

2005-02-06 Thread Dirk Verbeeck
Looks interesting, is this class you wrote an extension of the 
existing classes/interfaces? If this is the case then contributing is 
simple. You post a copy of your code to the commons-dev mailing list.
I or another committer will review and commit the code. (I assume you 
have some JUnit tests showing all the nice features)

All contributed code must be licensed under the apache license (please 
add the ASF header to new files) with no other copyrights (remove your 
own copyright from the copy you are submitting).
The version you submit is then owned by the ASF (licensed under the 
ASF 2.0 license) and you will be listed as contributer on the cache 
website.

Cheers
Dirk
Matthias Nott wrote:
Y'all,
I've here some Cache class code that I've written and used over
the last two years that I'd  like to  contribute.  Features are 
listed below. I wonder whether this may fit into commons cache,
and if so, drop me a note.

Thanks and keep up the good work,
M
/**
 * This class provides the user with an object cache.
 * p
 * This cache has a general structure of an optimized queue (FIFO). The
 * following rules apply:
 * ul
 * liWhen an entry is added to the cache, it is added to the head of the
 * queue./li
 * liIf the maximum number of entries in the queue is reached, adding an
 * entry to the head at the same time moves out one object from the
tail.
 * The cache size can be controlled by the setCacheSize function. The
 * default cache size is 1000 entries./li
 * liHitting any entry in the cache moves it back to the head of the
queue.
 * This way, more frequently accessed entries are more likely to remain in
the
 * cache./li
 * liWhen a maximum number of cache modification has been reached, the
entire
 * cache is flushed. This can be controlled by the setResetAfter
function.
 * The default threshold is 100 structural cache modifications./li
 * liEach cache entry gets a standard lifetime which is forever if you
do
 * not use the setLifetime function. If you use that function or choose
 * a particular setting for one given entry using the more detailed
 * version of the setEntry function, the entries will be cleaned up
 * either by a cleaner thread that is started automatically when you
 * instantiate the cache, or by the fact that you access an expired
 * item before the next run of the cleaner thread took place. The
 * default interval for the cleaner is 1 minute. This can be controlled
 * by the setUpdateInterval function./li
 * liEach cache entry is encapsulated in a SoftReference. This means,
 * that when running into an out of memory situation, some entries
 * may be moved out of the cache by the garbage collector. As you
 * have no control whatsoever over which entries are removed, it
 * is important to understand that byou must not rely on the fact
 * that an entry is in the cache only because you had just put it
there./b
 * Each time you access the cache using the getEntry function, you must
 * check whether you received a null object, and if so, you have to
 * take care yourself for recreating the object from scratch - and for
 * adding it back to the cache if you want./li
 * liIt is possible to compress the cache content if you have huge but
 * redundant objects to store. To do so, use the setCompressed function
 * to activate this setting for the entire cache, or activate it only
 * for single calls to setEntry in its detailed form. When getting
 * an object from the cache, the cache takes care of decompressing
 * the entry, so you do not have to worry about whether any entry had
 * been compressed previously. Please make sure to note that the
 * compression takes place in memory, and may imply a severe load
 * on the CPU./li
 * liWhen compressing, it is possible to activate a double buffer
 * for single entries or for the entire cache using the setDoublebuffer
 * function. When doing so, storing and hitting a cache entry will
 * automatically try to maintain a SoftReference to the uncompressed
 * form, thus considerably speeding up subsequent hits to the same
 * entry. The downside is, however, that this decompressed entry
 * now competes for memory space with all other cache entries,
 * whether compressed or not. So make sure to monitor, e.g. using
 * the getCacheHit  vs. getCacheMiss functions, whether the setting
 * renders the entire cache inactive such that hitting a huge cache
 * entry forces all other cache entries out of the cache immediately.
 * The cache statistics can be reset by the resetStatistics
function./li
 * liIt is very probable that using the double buffer and the compression
 * as an overall cache setting does not make sense. All tests that have
 * been untertaken so far show that the doublebuffer takes up at least
 * the space, if not more, that the uncompressed objects would take,
 * 

DO NOT REPLY [Bug 33415] New: - enable getting Validator defitions from other resource types

2005-02-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=33415.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33415

   Summary: enable getting Validator defitions from other resource
types
   Product: Commons
   Version: 1.4 Final
  Platform: All
OS/Version: All
Status: NEW
  Severity: normal
  Priority: P2
 Component: Validator
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


I believe Commons Validator should be used outside Struts (and even within 
Struts, but other way...)

There should be some way to import validation definitions to validator 
framework from other resources (not just standard XMLs) like property files, 
databases, and ...

This could easily be done by defining some interfaces for definition 
resolvers...

regards,
Amir

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



svn commit: r151621 - jakarta/commons/proper/logging/trunk/xdocs/guide.xml

2005-02-06 Thread rdonkin
Author: rdonkin
Date: Sun Feb  6 13:21:56 2005
New Revision: 151621

URL: http://svn.apache.org/viewcvs?view=revrev=151621
Log:
Documentation for improved memory management and optional jar. Contributed by 
Brian Stansberry. Issue no 31286.

Modified:
jakarta/commons/proper/logging/trunk/xdocs/guide.xml

Modified: jakarta/commons/proper/logging/trunk/xdocs/guide.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/xdocs/guide.xml?view=diffr1=151620r2=151621
==
--- jakarta/commons/proper/logging/trunk/xdocs/guide.xml (original)
+++ jakarta/commons/proper/logging/trunk/xdocs/guide.xml Sun Feb  6 13:21:56 
2005
@@ -42,6 +42,13 @@
 /ol
 /li
 lia href='#Developing With JCL'Developing With JCL/a/li
+lia href='#Jars Included in the Standard Distribution'Jars 
Included in the Standard Distribution/a
+ ol
+lia 
href='#commons-logging.jar'commons-logging.jar/a/li
+lia 
href='#commons-logging-optional.jar'commons-logging-optional.jar/a/li
+lia 
href='#commons-logging-api.jar'commons-logging-api.jar/a/li
+ /ol
+/li
 lia href='#JCL Best Practices'JCL Best Practices/a/li
 lia href='#Best Practices (General)'Best Practices 
(General)/a
 ol
@@ -55,7 +62,8 @@
 lia href='#Logging Exceptions'Logging 
Exceptions/a/li
 lia href='#When Info Level Instead of Debug?'When 
Info Level Instead of Debug?/a/li
 lia href='#More Control of Enterprise Exception 
Logging'More Control of Enterprise Exception Logging/a/li  
  
-lia href='#National Language Support And 
Internationalization'National Language Support And 
Internationalization/a/li
+lia href='#National Language Support And 
Internationalization'National Language Support And 
Internationalization/a/li
+lia href='#Classloader and Memory 
Management'Classloader and Memory Management/a/li
 /ol
 /li
 lia href='#Extending Commons Logging'Extending Commons 
Logging/a
@@ -300,6 +308,61 @@
 /source
 /ul
 /section
+section name=Jars Included in the Standard Distribution
+subsection name=commons-logging.jar
+  p
+The codecommons-logging.jar/code file includes the JCL API, the default 
+codeLogFactory/code implemenation and thin-wrapper codeLog/code 
+implementations for
+a href=http://jakarta.apache.org/log4j/docs/index.html;Log4J/a,
+a href=http://jakarta.apache.org/avalon/logkit/index.html;Avalon LogKit/a,
+the Avalon Framework's logging infrastructure,
+JDK 1.4, as well as an implementation of JDK 1.4 logging APIs (JSR-47) for 
+pre-1.4 systems.
+   /p
+   p
+In most cases, including codecommons-logging.jar/code and your preferred 
+logging implementation in the classpath should be all that is required to 
+use JCL.
+   /p
+/subsection
+subsection name=commons-logging-optional.jar
+p
+The optional jar includes, oddly enough, optional classes that are useful but 
+not strictly required to make JCL functional.  As these classes introduce 
+dependencies on JDK 1.3+ JVMs and a goal of JCL is to be usable on JDK 1.2 
+and earlier JVMs, these optional classes are not included in the main 
+codecommons-logging.jar/code.
+   /p
+   p
+Included in the optional jar are classes which allow JCL to (potentially) 
improve
+it's memory utilization (see 
+a href='#Classloader and Memory Management'Classloader and Memory 
Management/a 
+below). It is therefore recommended that (when running on a 1.3+ JDK) the 
optional jar 
+be deployed alongside the 
+main codecommons-logging.jar/code.  It should be deployed such that it 
will be loaded 
+by the same classloader that loads codeLogFactory/code. When so deployed, 
JCL will
+discover the appropriate classes and configure itself to use them.
+   /p
+/subsection
+subsection name=commons-logging-api.jar
+p
+The codecommons-logging-api.jar/code file includes the JCL API and the 
+default codeLogFactory/code implementation, but does not include the 
+wrapper codeLog/code implementations for codeLog4j/code,
+codeAvalon/code and codeLumberjack/code.  This jar is intended for 
+use in specialized containers such as 
+a href='http://jakarta.apache.org/tomcat'Tomcat/a that wish to use 
+JCL internally but also need to make JCL available for use by deployed 
+applications.
+   /p
+  p
+  If this jar is used, in order to benefit from improved memory management in 
modern JVMs (1.3+),
+  it is recommended that the codecommons-logging-optional.jar/code is 
deployed in 
+  the same classloader as this jar.
+  /p
+/subsection
+/section
 

Re: [digester2] performance of ns-aware parsing

2005-02-06 Thread Simon Kitching
On Sun, 2005-02-06 at 13:02 -0800, Reid Pinchback wrote:
 --- Simon Kitching [EMAIL PROTECTED] wrote:
   I stopped using belief as a measurement of code a long time
   ago.  Usually only works when I wrote all the code.  :-)
   I'll cook up an experiment and see what I can come up with
   in the way of timing information.
  
  That would be excellent. I look forward to seeing the results..
 
 Actually, an experiment implies a question to be answered, and
 while this has been an interesting back-and-forth, not sure
 we really have a question to answer.  This whole thing began
 with me simply asking a question about something you'd
 put in your readme file on the upcoming work.  Practically
 I don't see you not expecting a namespace-aware parser, the
 question is really more one of the user of Digester2 deciding
 if they are using namespace features.  While we could do
 timing tests to help people understand what the impact may
 or may not be of using NS in the documents they parse, it
 obviously has nothing to do with whether or not you are
 going to expect a parser to handle NS if the docs contain NS.
 That will be the developer's problem, not yours, yes?

Hi Reid,


I don't quite understand the above.

You mean these are the questions?
* should people avoid creating xml documents that use namespaces
  if they care about the performance of later parsing the doc?
* Is there a significant performance benefit in parsing 
  non-namespaced xml with a non-namespace-aware parser?
* Is there a significant performance benefit in parsing
  namespace-using-xml with a non-namespace-aware parser
  (yecch!).

The first is an interesting question, and is partially related to the
third one in that it gives people an *option* (though not a good one
IMHO) to parse the document fast. But mostly I agree this is the
developer's problem, not digester's. Tf we can give a hint somewhere in
our docs about parser performance with/without ns, though, I'm sure
people would appreciate it.

For either of the second, the answer is relevant to digester; if the
answer to either is yes, then I would support allowing a
non-namespace-aware parser to be used with digester. By support, I mean
writing code that allows instantiation of ns-aware or non-ns-aware
parser, code that looks for localname/qname, support in the RuleManager
classes for matching such elements, and unit tests to test it all.

Currently, I'm not hugely motivated to test either of the last two
scenarios, as I *believe* the answer to both is no, but if someone else
does I'll look at the results with interest.

Is this what you meant?

Regards,

Simon


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



svn commit: r151624 - jakarta/commons/proper/logging/trunk/optional/project.xml

2005-02-06 Thread rdonkin
Author: rdonkin
Date: Sun Feb  6 13:59:28 2005
New Revision: 151624

URL: http://svn.apache.org/viewcvs?view=revrev=151624
Log:
Now rely on 3.8.1 junit

Modified:
jakarta/commons/proper/logging/trunk/optional/project.xml

Modified: jakarta/commons/proper/logging/trunk/optional/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/optional/project.xml?view=diffr1=151623r2=151624
==
--- jakarta/commons/proper/logging/trunk/optional/project.xml (original)
+++ jakarta/commons/proper/logging/trunk/optional/project.xml Sun Feb  6 
13:59:28 2005
@@ -139,7 +139,7 @@
   
 dependency
   idjunit/id
-  version3.7/version
+  version3.8.1/version
 /dependency
 
 dependency



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



svn commit: r151626 - jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 14:23:49 2005
New Revision: 151626

URL: http://svn.apache.org/viewcvs?view=revrev=151626
Log:
Minor cleanups

Modified:

jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java?view=diffr1=151625r2=151626
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
 Sun Feb  6 14:23:49 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
@@ -69,26 +69,9 @@
 }
 }
 
-// - Instance Variables
-
-/**
- * The digester instance we will be processing.
- */
-protected Digester digester = null;
-
-/**
- * The set of public identifiers, and corresponding resource names,
- * for the versions of the DTDs that we know about.  There
- * strongMUST/strong be an even number of Strings in this array.
- */
-protected static final String registrations[] = {
--//Netscape Communications//DTD RSS 0.9//EN,
-/org/apache/commons/digester/rss/rss-0.9.dtd,
--//Netscape Communications//DTD RSS 0.91//EN,
-/org/apache/commons/digester/rss/rss-0.91.dtd,
-};
-
-// --- Constructors
+// ---
+// Constructors
+// ---
 
 /**
  * Construct a new instance of this test case.
@@ -99,13 +82,14 @@
 super(name);
 }
 
-// -- Overall Test Methods
+// --
+// Overall Test Methods
+// --
 
 /**
  * Set up instance variables required by this test case.
  */
 public void setUp() {
-digester = new Digester();
 }
 
 /**
@@ -119,10 +103,11 @@
  * Tear down instance variables required by this test case.
  */
 public void tearDown() {
-digester = null;
 }
 
-//  Individual Test Methods
+// 
+// Individual Test Methods
+// 
 
 /**
  * Test the basic constructor functionality.
@@ -244,10 +229,10 @@
 assertNull(initial dtd public id is null, d.getDTDPublicId());
 assertNull(initial dtd system id is null, d.getDTDSystemId());
 
-// ignore any attempt to load an external dtd with the specified 
+// ignore any attempt to load an external dtd with the specified
 // public-id
 d.registerKnownEntity(test-public-id, );
-
+
 // and parse...
 d.parse(source);
 
@@ -283,7 +268,7 @@
 assertFalse(External DTD not ignored by default, 
d.getIgnoreExternalDTD());
 d.setIgnoreExternalDTD(true);
 assertTrue(External DTD ignored, d.getIgnoreExternalDTD());
-
+
 // and parse...
 d.parse(source);
 
@@ -308,25 +293,23 @@
 public void testProperties() {
 DefaultHandler defaultHandler = new 
org.xml.sax.helpers.DefaultHandler();
 
+Digester d = new Digester();
+
 // check we can set and get a custom error handler
-assertNull(Initial error handler is null,
-digester.getErrorHandler());
-digester.setErrorHandler(defaultHandler);
-assertTrue(Set/get error handler failed,
-digester.getErrorHandler() == defaultHandler);
-digester.setErrorHandler(null);
-assertNull(Reset error handler failed,
-digester.getErrorHandler());
+assertNull(Initial error handler is null, d.getErrorHandler());
+d.setErrorHandler(defaultHandler);
+assertEquals(Set/get error handler failed,
+defaultHandler, d.getErrorHandler());
+
+d.setErrorHandler(null);
+assertNull(Reset error handler failed, d.getErrorHandler());
 
  // check the validation property
-assertTrue(Initial validating is false,
-!digester.getValidating());
-

svn commit: r151629 - jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 14:38:31 2005
New Revision: 151629

URL: http://svn.apache.org/viewcvs?view=revrev=151629
Log:
Added svn:keywords property

Modified:

jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
   (props changed)

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DigesterTestCase.java
--
svn:keywords = Id



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



svn commit: r151630 - in jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2: AbstractRuleManager.java DefaultRuleManager.java RuleManager.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 14:48:36 2005
New Revision: 151630

URL: http://svn.apache.org/viewcvs?view=revrev=151630
Log:
Made RuleManager an interface, and defined AbstractRuleManager as an
abstract base class. This makes RuleManager consistent with Action.

Also added svn:keywords property so $Id$ will get expanded.

Added:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java
Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DefaultRuleManager.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/RuleManager.java
   (contents, props changed)

Added: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java?view=autorev=151630
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java
 (added)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractRuleManager.java
 Sun Feb  6 14:48:36 2005
@@ -0,0 +1,93 @@
+/* $Id$
+ *
+ * Copyright 2001-2005 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */ 
+
+package org.apache.commons.digester2;
+
+import java.util.List;
+
+/**
+ * Provides a base implementation for custom RuleManagers (ie classes that
+ * match input xml elements to lists of Actions to be executed).
+ * p
+ * Note that extending this abstract class rather than directly implementing
+ * the RuleManager interface provides much better forward compatibility. 
+ * Digester minor releases (2.x - 2.y) guarantee not to break any classes 
that 
+ * subclass this abstract class. However no such guarantee exists for classes 
+ * that directly implement the RuleManager interface.
+ */
+
+public abstract class AbstractRuleManager implements RuleManager {
+
+/**
+ * Returns a new instance with the same type as the concrete object this
+ * method is invoked on, complete with contained Actions and patterns. Note
+ * that the new RuleManager instance may contain references to the same 
+ * Action instances as the old one, as Action instances are expected to be
+ * stateless and therefore can be safely shared between RuleManagers. 
+ */
+public abstract RuleManager copy();
+
+/**
+ * Invoked before parsing each input document, this method gives the
+ * RuleManager and the managed Action objects the opportunity to do
+ * per-parse initialisation if required.
+ */
+public void startParse(Context context) throws DigestionException {}
+ 
+/**
+ * Invoked after parsing each input document, this method gives the
+ * RuleManager and the managed Action objects the opportunity to do
+ * per-parse cleanup if required.
+ */
+ public void finishParse(Context context) throws DigestionException {}
+
+/**
+ * Define a mapping between xml element prefix and namespace uri
+ * for use when rule patterns contain namespace prefixes.
+ */
+public abstract void addNamespace(String prefix, String uri);
+
+/**
+ * Cause the specified Action to be invoked whenever an xml element
+ * is encountered in the input which matches the specified pattern.
+ * p
+ * If the pattern contains any namespace prefixes, eg /myns:item,
+ * then an exception will be thrown unless that prefix has previously
+ * been defined via a call to method addNamespace.
+ * p
+ * Note that it is permitted for the same Action to be added multiple
+ * times with different associated patterns.
+ */
+public abstract void addRule(String pattern, Action action)
+throws InvalidRuleException;
+
+/**
+ * Return a List of all registered Action instances that match the 
specified
+ * nesting pattern, or a zero-length List if there are no matches.  If more
+ * than one Action instance matches, they strongmust/strong be returned
+ * in the order originally registered through the codeaddRule()/code
+ * method.
+ *
+ * @param path is a string of form
+ * 

svn commit: r151633 - jakarta/commons/proper/logging/trunk/optional/project.xml

2005-02-06 Thread rdonkin
Author: rdonkin
Date: Sun Feb  6 15:02:34 2005
New Revision: 151633

URL: http://svn.apache.org/viewcvs?view=revrev=151633
Log:
Fixes for mavenized build. Hopefully, this should allow javedocs to be deployed 
to the website.

Modified:
jakarta/commons/proper/logging/trunk/optional/project.xml

Modified: jakarta/commons/proper/logging/trunk/optional/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/optional/project.xml?view=diffr1=151632r2=151633
==
--- jakarta/commons/proper/logging/trunk/optional/project.xml (original)
+++ jakarta/commons/proper/logging/trunk/optional/project.xml Sun Feb  6 
15:02:34 2005
@@ -30,8 +30,8 @@
   /description
   logo/images/logo.png/logo
   
-  urlhttp://jakarta.apache.org/commons/${pom.artifactId.substring(8)}//url
-  packageorg.apache.commons.${pom.artifactId.substring(8)}/package
+  urlhttp://jakarta.apache.org/commons/logging/optional/url
+  packageorg.apache.commons.logging/package
 
   organization
 nameThe Apache Software Foundation/name
@@ -50,13 +50,12 @@
   gumpRepositoryIdjakarta/gumpRepositoryId
   issueTrackingUrlhttp://issues.apache.org/bugzilla//issueTrackingUrl
   siteAddressjakarta.apache.org/siteAddress
-  
siteDirectory/www/jakarta.apache.org/commons/${pom.artifactId.substring(8)}//siteDirectory
-  
distributionDirectory/www/jakarta.apache.org/builds/jakarta-commons/${pom.artifactId.substring(8)}//distributionDirectory
+  
siteDirectory/www/jakarta.apache.org/commons/logging/optional/siteDirectory
+  
distributionDirectory/www/jakarta.apache.org/builds/jakarta-commons/logging/optional//distributionDirectory
   
   repository
-
!--connectionscm:cvs:${logging.cvs}:jakarta-commons/logging//connection--
-
connectionscm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk/connection
-
urlhttp://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk/url
+
connectionscm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk/connection
+
urlhttp://svn.apache.org/repos/asf/jakarta/commons/proper/logging/trunk/url
   /repository
   
   mailingLists
@@ -158,11 +157,8 @@
 
   reports
 reportmaven-javadoc-plugin/report
-reportmaven-jdepend-plugin/report
-reportmaven-junit-report-plugin/report
+   reportmaven-jdepend-plugin/report
 reportmaven-jxr-plugin/report
-reportmaven-license-plugin/report
-reportmaven-tasklist-plugin/report
   /reports
   
 /project



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



svn commit: r151634 - jakarta/commons/proper/logging/trunk/optional/.cvsignore

2005-02-06 Thread rdonkin
Author: rdonkin
Date: Sun Feb  6 15:04:34 2005
New Revision: 151634

URL: http://svn.apache.org/viewcvs?view=revrev=151634
Log:
Ignore build.properties

Modified:
jakarta/commons/proper/logging/trunk/optional/.cvsignore

Modified: jakarta/commons/proper/logging/trunk/optional/.cvsignore
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/optional/.cvsignore?view=diffr1=151633r2=151634
==
--- jakarta/commons/proper/logging/trunk/optional/.cvsignore (original)
+++ jakarta/commons/proper/logging/trunk/optional/.cvsignore Sun Feb  6 
15:04:34 2005
@@ -1,3 +1,4 @@
 *.log
 target
 dist
+build.properties



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



svn commit: r151635 - jakarta/commons/proper/logging/trunk/optional/build.properties.sample

2005-02-06 Thread rdonkin
Author: rdonkin
Date: Sun Feb  6 15:04:59 2005
New Revision: 151635

URL: http://svn.apache.org/viewcvs?view=revrev=151635
Log:
Added sample properties

Added:
jakarta/commons/proper/logging/trunk/optional/build.properties.sample

Added: jakarta/commons/proper/logging/trunk/optional/build.properties.sample
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/optional/build.properties.sample?view=autorev=151635
==
--- jakarta/commons/proper/logging/trunk/optional/build.properties.sample 
(added)
+++ jakarta/commons/proper/logging/trunk/optional/build.properties.sample Sun 
Feb  6 15:04:59 2005
@@ -0,0 +1,36 @@
+# Copyright 2001-2004 The Apache Software Foundation.
+# 
+# Licensed under the Apache License, Version 2.0 (the License);
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+# 
+#  http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an AS IS BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# log4j.jar - log4j classes (see http://jakarta.apache.org/log4j)
+log4j.jar=/java/log4j/log4j.jar
+
+# Used for testing against older 1.2.x Log4J versions
+log4j12.jar=/java/log4j/log4j-1.2.7.jar
+
+# logkit.jar - Avalon LogKit classes (see http://jakarta.apache.org/avalon)
+logkit.jar=/java/logkit/logkit.jar
+
+# Avalon framework - used for wrapper for avalon framework logger
+avalon-framework.jar=../../Avalon-4.1.4/avalon-framework-4.1.4.jar
+
+#
+# if you want to run the test cases, junit needs to be in the classpath.
+# the build.xml uses a default value so you might not need to set this 
property.
+#
+# junit.jar=../../jakarta-velocity/build/lib/junit-3.7.jar
+
+# Maven properties (for web site build)
+# Those committers using agents may like to use
+#maven.username=rdonkin
+#logging.cvs=lserver:[EMAIL PROTECTED]:/home/cvs



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



Javadoc formatting style

2005-02-06 Thread Simon Kitching
Hi All,

I have seen two basic approaches to applying formatting to javadoc text
in source files:

(a) XHTML-style
  /**
   *pThis is the first paragraph./p
   *
   *pAnd this is the second./p
   */

(b) HTML-style
  /**
   * This is the first paragraph.
   * p
   * And this is the second.
   */

I would certainly like to pick one or the other for Digester2. What
conventions have other commons projects adopted? Are there any good
reasons to pick one over the other?

Thanks,

Simon



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



svn commit: r151637 - jakarta/commons/proper/logging/trunk/xdocs/guide.xml

2005-02-06 Thread rdonkin
Author: rdonkin
Date: Sun Feb  6 15:21:34 2005
New Revision: 151637

URL: http://svn.apache.org/viewcvs?view=revrev=151637
Log:
Fixed link to class in optional distribution

Modified:
jakarta/commons/proper/logging/trunk/xdocs/guide.xml

Modified: jakarta/commons/proper/logging/trunk/xdocs/guide.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/logging/trunk/xdocs/guide.xml?view=diffr1=151636r2=151637
==
--- jakarta/commons/proper/logging/trunk/xdocs/guide.xml (original)
+++ jakarta/commons/proper/logging/trunk/xdocs/guide.xml Sun Feb  6 15:21:34 
2005
@@ -596,7 +596,7 @@
 p
 Beginning with JCL 1.0.5, codeLogFactory/code will attempt to cache factory
 implementations in a 
-a 
href='http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/impl/WeakHashtable.java'WeakHashtable/a.
  
+a 
href='http://jakarta.apache.org/commons/logging/optional/apidocs/org/apache/commons/logging/impl/WeakHashtable.html'WeakHashtable/a.
  
 This class is analogous to codejava.util.WeakHashMap/code in that it holds 
 codeWeakReference/codes to its keys, thus allowing classloaders to be GC'd 
 even if codeLogFactory.release()/code is never invoked.



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



DO NOT REPLY [Bug 31286] - [logging] Memory leaks in JBoss due to LogFactory cache

2005-02-06 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
http://issues.apache.org/bugzilla/show_bug.cgi?id=31286.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31286


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-02-07 00:33 ---
Committed. Many thanks.

I'm closing this one now (but please feel free to open new reports for any new
improvements). 

Robert

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug, or are watching the assignee.

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



Re: Javadoc formatting style

2005-02-06 Thread Stephen Colebourne
[lang] uses the first. [collections] uses the second.
I prefer the second as IMHO it is more readable when you are browsing the 
source code. And I definitely read the javadoc in source code form more than 
I read it in html form.

Stephen
- Original Message - 
From: Simon Kitching [EMAIL PROTECTED]
I have seen two basic approaches to applying formatting to javadoc text
in source files:
(a) XHTML-style
 /**
  *pThis is the first paragraph./p
  *
  *pAnd this is the second./p
  */
(b) HTML-style
 /**
  * This is the first paragraph.
  * p
  * And this is the second.
  */
I would certainly like to pick one or the other for Digester2. What
conventions have other commons projects adopted? Are there any good
reasons to pick one over the other?
Thanks,
Simon

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

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


Re: [i18n] proposals

2005-02-06 Thread Anaximandro (Woody)
Hi Daniel,

The ConfigManager in my idea is used for store specific configurations, as I
see the MessageManager don't have this responsabilitie. If I store any
configuration on MessageManager I will need specific instances of this guy
for each thread with a diferent configuration.

Well, in your code you don't let the user of this component to configure the
behaviours of log, exceptions and default language. I do some code to do
this in mine and,  becouse this, I need to store these configurations on a
isolated place. Store these guys inside MessageManager is not a good idea.

The MessageManager only store the message providers and delegate calls to
these providers.

The main objective behind this is to write less code in cases wich I need to
specify Locales differents than default Locale. Instead of write:

Locale userLocale = getUserLocale( userId );
LocalizedText txt1 = new LocalizedText( consts.ID1, userLocale );// each
message need to set the user locale
LocalizedText txt2 = new LocalizedText( consts.ID2, userLocale );//
LocalizedText txtN = new LocalizedText( consts.IDN, userLocale );  //

I think in write:

String  servletID= getServletUUID();

ConfigManager config = new ConfigManager.getInstance( servletID );
config.setLocale( getUserLocale( userId ) );
// Only one place set the user locale

LocalizedText txt1 = new LocalizedText( consts.ID1 );
LocalizedText txt2 = new LocalizedText( consts.ID2 );
LocalizedText txtN = new LocalizedText( consts.IDN );

I agree with your idea, keep it simple here is the best thing to do, but how
to setup aditional information without a mediator to store?
The code in first example can be a problem, he multiply locale information
(configuration) in many places where I have a message ...

In my code I write:

- In LocalizedText, LocalizedMessage, LocalizedError, LocalizedException I
change the extensions. Instead of cascating extensios I do direct extensions
(LocalizedText extends LocalizedBundle, LocalizedMessage extends
LocalizedBundle, LocalizedError extends LocalizedBundle ...)
- new class: LocalizedRuntimeException (like your LocalizedException);

* new class: ConfigManager (LocalizedBundle delegate to this class);
- service locator;
- code to config excetions and defaults ( useMessageIdAsDeafult(),
useEntryIdAsDefault(), if both was false, then, we throw exceptions)
- code to config log levels (setLevelLog2Info, setLevelLog2Warning and
setLevelLog2Error);
- code to setLocale (used by all messages in a given instance);
- this class delegate calls to MessageManager;

* In MessageManager:
- service locator;
- methods to getProvider, removeProviders and reset/clear MessageManager;
- move exception handling to ConfigManager (now it is configurable);
- this class delegates class to each provider;

* In XMLMessageProvider:
- service locator;
- move exception handling to ConfigManager;
- more 2 xml formats (one file per message - as resource bundle does and a
mix);

* In ResourceBundleMessageProvider:
- service locator;
- move exception handling to ConfigManager;

- In all classes I do some enhacements with final keyword;

I do a lot of code and don't think is a good idea to put them here. How can
I provide this to you? Did you have any email to I sent this? (sure, if you
wish to see)

Man, sorry by my english. Is more easy to me write code than write email ...
If I write anything offensive, please, sorry and talk with me.

Woody

- Original Message - 
From: Daniel Florey [EMAIL PROTECTED]
To: 'Jakarta Commons Developers List' commons-dev@jakarta.apache.org
Sent: Saturday, February 05, 2005 5:58 AM
Subject: AW: [i18n] status


Hi Woody,
Where did you post your proposals/patches? I'm very interested in improving
the i18n/contract components.
If you have any suggestions the best way is to describe the idea behind it
so that it can be discussed in the mailing list. You can also post the
related patches/files as attachment to a bugzilla entry (enhancement
request).
Please try to describe each single idea / enhancement and include some code
snippets in the mail if it makes the idea clearer.
Regarding the proposal of a ConfigManager:
I'd like to keep the components as simple as possible. I've understood that
we need to have the ability to have more than one MessageManager per VM. So
my proposal would be just to add a getInstance(String messageManager) method
to the MessageManager and get rid of the static methods.
But perhaps I've missed the point. So it would be great if you could explain
in more detail what the ConfigManager is for.

Cheers,
Daniel

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]
 Im Auftrag von Anaximandro (Woody)
 Gesendet: Samstag, 5. Februar 2005 06:03
 An: Jakarta Commons Developers List; [EMAIL PROTECTED]
 Betreff: Re: [i18n] status

 Thanx Oliver.

 I will wait for him,  :o

 Woody

 - Original Message -
 From: Oliver Zeigermann [EMAIL PROTECTED]
 To: Anaximandro (Woody) [EMAIL 

svn commit: r151644 - in jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2: AbstractRuleManagerTestCase.java DefaultRuleManagerTestCase.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 16:08:59 2005
New Revision: 151644

URL: http://svn.apache.org/viewcvs?view=revrev=151644
Log:
Added new test suites

Added:

jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/AbstractRuleManagerTestCase.java
   (with props)

jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/DefaultRuleManagerTestCase.java
   (with props)

Added: 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/AbstractRuleManagerTestCase.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/AbstractRuleManagerTestCase.java?view=autorev=151644
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/AbstractRuleManagerTestCase.java
 (added)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/test/org/apache/commons/digester2/AbstractRuleManagerTestCase.java
 Sun Feb  6 16:08:59 2005
@@ -0,0 +1,150 @@
+/* $Id$
+ *
+ * Copyright 2001-2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
+package org.apache.commons.digester2;
+
+import java.math.BigDecimal;
+import java.net.URL;
+import java.io.StringReader;
+import java.util.Iterator;
+import java.util.List;
+import java.util.Map;
+import java.util.ArrayList;
+import java.util.EmptyStackException;
+
+import junit.framework.Test;
+import junit.framework.TestCase;
+import junit.framework.TestSuite;
+
+import org.xml.sax.ErrorHandler;
+import org.xml.sax.Attributes;
+import org.xml.sax.helpers.AttributesImpl;
+import org.xml.sax.InputSource;
+
+import org.apache.commons.logging.Log;
+
+/**
+ * Test Case for the AbstractRuleManager class.
+ * p
+ * Mostly, this involves checking that the methods are invoked at
+ * the times that they are expected to be invoked.
+ */
+
+public class AbstractRuleManagerTestCase extends TestCase {
+
+private static class MyRuleManager extends AbstractRuleManager {
+private List operations;
+
+public MyRuleManager(List operations) {
+this.operations = operations;
+}
+
+public RuleManager copy() {
+operations.add(copy);
+return null; // there's no point testing abstract copy!
+}
+
+public void startParse(Context context) throws DigestionException {
+operations.add(startParse);
+}
+
+public void finishParse(Context context) throws DigestionException {
+operations.add(finishParse);
+}
+
+public void addNamespace(String prefix, String uri) {
+operations.add(addNamespace);
+}
+
+public void addRule(String pattern, Action action) {
+operations.add(addRule);
+}
+
+public List getMatchingActions(String path) {
+operations.add(getMatchingActions);
+return java.util.Collections.EMPTY_LIST;
+}
+}
+
+// ---
+// Constructors
+// ---
+
+/**
+ * Construct a new instance of this test case.
+ *
+ * @param name Name of the test case
+ */
+public AbstractRuleManagerTestCase(String name) {
+super(name);
+}
+
+// --
+// Overall Test Methods
+// --
+
+/**
+ * Set up instance variables required by this test case.
+ */
+public void setUp() {
+}
+
+/**
+ * Return the tests included in this test suite.
+ */
+public static Test suite() {
+return (new TestSuite(AbstractRuleManagerTestCase.class));
+}
+
+/**
+ * Tear down instance variables required by this test case.
+ */
+public void tearDown() {
+}
+
+// 
+// Individual Test Methods
+// 
+
+/**
+ * Test everything.
+ */
+public void testEverything() throws Exception {
+String inputText = root/;
+
+ArrayList opsList = new ArrayList(10);
+MyRuleManager rm = new 

svn commit: r151646 - jakarta/commons/proper/lang/trunk/project.xml

2005-02-06 Thread bayard
Author: bayard
Date: Sun Feb  6 16:41:36 2005
New Revision: 151646

URL: http://svn.apache.org/viewcvs?view=revrev=151646
Log:
turning on pmd report

Modified:
jakarta/commons/proper/lang/trunk/project.xml

Modified: jakarta/commons/proper/lang/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/project.xml?view=diffr1=151645r2=151646
==
--- jakarta/commons/proper/lang/trunk/project.xml (original)
+++ jakarta/commons/proper/lang/trunk/project.xml Sun Feb  6 16:41:36 2005
@@ -392,6 +392,7 @@
  !-- reportmaven-changelog-plugin/report --
  !-- reportmaven-changes-plugin/report --
  reportmaven-checkstyle-plugin/report
+ reportmaven-pmd-plugin/report
  !-- reportmaven-findbugs-plugin/report --
  reportmaven-clover-plugin/report
  !-- reportmaven-developer-activity-plugin/report --



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



Re: Javadoc formatting style

2005-02-06 Thread Henri Yandell
However, the point of javadoc is to put it in HTML, and using the
latest version of HTML (ie XHTML) seems like the thing to do.

Otherwise we could just ignore the p's all together and make it look
even better for source reading.

+1 to the first :)

Hen

On Mon, 7 Feb 2005 00:03:15 -, Stephen Colebourne
[EMAIL PROTECTED] wrote:
 [lang] uses the first. [collections] uses the second.
 
 I prefer the second as IMHO it is more readable when you are browsing the
 source code. And I definitely read the javadoc in source code form more than
 I read it in html form.
 
 Stephen
 
 - Original Message -
 From: Simon Kitching [EMAIL PROTECTED]
  I have seen two basic approaches to applying formatting to javadoc text
  in source files:
 
  (a) XHTML-style
   /**
*pThis is the first paragraph./p
*
*pAnd this is the second./p
*/
 
  (b) HTML-style
   /**
* This is the first paragraph.
* p
* And this is the second.
*/
 
  I would certainly like to pick one or the other for Digester2. What
  conventions have other commons projects adopted? Are there any good
  reasons to pick one over the other?
 
  Thanks,
 
  Simon
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



[lang] release strategy

2005-02-06 Thread Henri Yandell
I'm very tempted to try the branch then release strategy, and wondered
what people thought about the idea. It might suggest a slight change
to the version number style:

Create 2.1 branch.
Make changes to 2.1 branch until we're ready for release.
Tag 2.1 branch with 2.1.0 tag.
... later
Change 2.1 branch until we're ready for release
Tag 2.1 branch with 2.1.1tag.
... later in parallel
Change trunk until we're near a release
Create 2.2 branch (or 3.0)
Change 2.2 until ready
Tag 2.2 with 2.2.0

etc.

If we called it 2.1-head or something, it wouldn't need the version
change, it just feels more logical to go with a 2.1.0 release than a
2.1 one if we use this style of development.

Anyway, it seems to me that this fits us more nowadays. We end up with
the text package slowing down because it's not planned for the next
release, and having to avoid various other bugzilla requests as
they're not wanting to be fixed until later.

Any thoughts?

Hen

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



Re: Javadoc formatting style

2005-02-06 Thread Martin Cooper
On Sun, 6 Feb 2005 19:46:30 -0500, Henri Yandell [EMAIL PROTECTED] wrote:
 However, the point of javadoc is to put it in HTML, and using the
 latest version of HTML (ie XHTML) seems like the thing to do.
 
 Otherwise we could just ignore the p's all together and make it look
 even better for source reading.
 
 +1 to the first :)

I am also +1 on the first (XHTML) option.

--
Martin Cooper


 Hen
 
 On Mon, 7 Feb 2005 00:03:15 -, Stephen Colebourne
 [EMAIL PROTECTED] wrote:
  [lang] uses the first. [collections] uses the second.
 
  I prefer the second as IMHO it is more readable when you are browsing the
  source code. And I definitely read the javadoc in source code form more than
  I read it in html form.
 
  Stephen
 
  - Original Message -
  From: Simon Kitching [EMAIL PROTECTED]
   I have seen two basic approaches to applying formatting to javadoc text
   in source files:
  
   (a) XHTML-style
/**
 *pThis is the first paragraph./p
 *
 *pAnd this is the second./p
 */
  
   (b) HTML-style
/**
 * This is the first paragraph.
 * p
 * And this is the second.
 */
  
   I would certainly like to pick one or the other for Digester2. What
   conventions have other commons projects adopted? Are there any good
   reasons to pick one over the other?
  
   Thanks,
  
   Simon
  
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: VOTE: FeedParser move to Commons Proper...

2005-02-06 Thread Kevin A. Burton
robert burrell donkin wrote:
+1
 

OK... great.  Thanks guys.  So does this mean I'm a go?  I've had more 
than 3 +1s and no -1s . 

I'd like to move to commons proper soon as I'd ideally like to do a 
0.5.0 release prior to my codecon talk on Sat Feb 12th.  No pressure 
though ;)

Is it possible to migrate the SVN repository so I still have my version 
information? 

i'm going to assume that 'give out' is just an inaccurate choice of
words. new committers can be proposed once feedparser is in the commons
proper and voted on in the usual fashion. 
 

Yup... usual process... sorry...
Also... I assume we can get a dedicated mailing list for the FeedParser?
HttpClient is currently doing this.
   

a couple of points:
1. that was a bit of an experiment which didn't work out as well as was
hoped. having all the components on one list encourages a sense of
community and also provides for better oversight.
 

And a bit of noise I'm afraid.  Brad already has problems keeping on the 
list. 

I can just suggest to filter on [feedparser] in the subject line though. 

2. wanting or needing a separate mailing list is a sign that a component
doesn't belong in the commons any more. 

 

It might be necessary to move out of the commons eventually but we're 
not there just yet.  Maybe in a couple months after our initial release.

I don't mind running with the commons list.  Its not too bad a requirement.
Kevin
--
Use Rojo (RSS/Atom aggregator).  Visit http://rojo.com. Ask me for an 
invite!  Also see irc.freenode.net #rojo if you want to chat.

Rojo is Hiring! - http://www.rojonetworks.com/JobsAtRojo.html
If you're interested in RSS, Weblogs, Social Networking, etc... then you 
should work for Rojo!  If you recommend someone and we hire them you'll 
get a free iPod!
   
Kevin A. Burton, Location - San Francisco, CA
  AIM/YIM - sfburtonator,  Web - http://peerfear.org/
GPG fingerprint: 5FB2 F3E2 760E 70A8 6174 D393 E84D 8D04 99F1 4412



[Jakarta Commons Wiki] Updated: FeedParser/ReleaseSchedule

2005-02-06 Thread commons-dev
   Date: 2005-02-06T17:41:00
   Editor: KevinBurton
   Wiki: Jakarta Commons Wiki
   Page: FeedParser/ReleaseSchedule
   URL: http://wiki.apache.org/jakarta-commons/FeedParser/ReleaseSchedule

   no comment

Change Log:

--
@@ -4,10 +4,10 @@
  * Post to FreshMeat, java lobby, the server side, atomenabled.org, slashdot, 
mailing lists, etc.  Email Sam Ruby and a bunch of other Java, Apache, and 
Weblog friendly bloggers.
 
  * TODO:
+   * instructions for mailing list
* Move to commons proper (can't do a release from sandbox)
-   * Maven builds' .jar
-   * Jaxen upgrade?
-   * jakarta-feedparser-0.5.0.jar instead of just .jar
+   * Maven builds the .jar target correctly?
+   * commons-feedparser-0.5.0.jar instead of just .jar
* Nightly builds
 
 == 1.0.0 (Mar 2005) ==
@@ -16,3 +16,4 @@
  * Cleanup Javadoc
  * Full Atom 0.5 compliance
  * More unit tests
+ * Jaxen upgrade?

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



[Jakarta Commons Wiki] Updated: CodeConPresentation

2005-02-06 Thread commons-dev
   Date: 2005-02-06T17:42:53
   Editor: KevinBurton
   Wiki: Jakarta Commons Wiki
   Page: CodeConPresentation
   URL: http://wiki.apache.org/jakarta-commons/CodeConPresentation

   no comment

Change Log:

--
@@ -89,4 +89,6 @@
 
* Tag Parsing
 
- 
+ * Thanks
+   * Brad Neuberg
+   * Rojo Team!

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



[Jakarta Commons Wiki] Updated: CodeConPresentation

2005-02-06 Thread commons-dev
   Date: 2005-02-06T17:48:40
   Editor: KevinBurton
   Wiki: Jakarta Commons Wiki
   Page: CodeConPresentation
   URL: http://wiki.apache.org/jakarta-commons/CodeConPresentation

   no comment

Change Log:

--
@@ -12,12 +12,14 @@
 
 * Too many standards
 * RSS (0.9, 0.91, 0.92, 1.0, 2.0)
-* Atom (0.3 and all draft specs)
+* Atom (0.3-0.5 and all draft specs (IETF work in progress))
 * OPML
 * FOAF 
 * Changes.xml
 * RDF
 * Modules (dc, aggregation, content, etc)
+* XFN
+* HTML (link parsing, relations, nofollow, meta tags, generators, etc)
 
 * Semantic confusion:
 * rss:entry vs atom:item

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



[Jakarta Commons Wiki] Updated: CodeConPresentation

2005-02-06 Thread commons-dev
   Date: 2005-02-06T17:50:30
   Editor: KevinBurton
   Wiki: Jakarta Commons Wiki
   Page: CodeConPresentation
   URL: http://wiki.apache.org/jakarta-commons/CodeConPresentation

   no comment

Change Log:

--
@@ -36,11 +36,19 @@
 
  * Feed Event Model
 
+* SAX model
+
+* DOM on top
+
+* SAX is about 12x faster
+
 * FeedParserListener:
 * init()
 * onChannel( state, title, link description ): void
 * onItem( state, title, link description ): void
 * onItemEnd(): void
+
+* General API not wire API
 
  * HTTP issues (network API):
 

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



[Jakarta Commons Wiki] Updated: CodeConPresentation

2005-02-06 Thread commons-dev
   Date: 2005-02-06T17:53:37
   Editor: KevinBurton
   Wiki: Jakarta Commons Wiki
   Page: CodeConPresentation
   URL: http://wiki.apache.org/jakarta-commons/CodeConPresentation

   no comment

Change Log:

--
@@ -62,13 +62,14 @@
 
 * Namespace matching doesn't line up correctly. 
 
-* Doesn't support ad-hoc schema updates with extenions
+* Doesn't (easily) support ad-hoc schema updates with extensions
 
 * Plugin API to pass events with vendor specific interfaces. 
 
   * mod_bigcompany
   * BigCompanyEventListener
   * Totally isolated development.
+  * Just register a SAX DefaultHandler to intercept your own events
 
  * Autodiscovery
 

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



Re: Javadoc formatting style

2005-02-06 Thread Simon Kitching
On Sun, 2005-02-06 at 17:18 -0800, Craig McClanahan wrote:
 As should be evident from my own recent practice :-), I'm also +1 on
 the first (XHTML) approach.

Can I ask those supporters of the XHTML style why they prefer it?

Personally I think it:
* increases the text size of the source file
* is harder to write manually (and harder to write correctly)
* makes the docs in the source file harder to read
* might be easier for the javadoc app to parse, but that
  makes no difference to us users of javadoc; the javadoc
  tool support for HTML-style isn't going away.
and
* has no effect whatsoever on the generated html pages


Not that it's a *huge* deal, but HTML-style just seems a bit better all
around. Yet quite a few people obviously do prefer XHTML-style. Is it
just for the purity?


Regards,

Simon


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



[Jakarta Commons Wiki] Updated: CodeConPresentation

2005-02-06 Thread commons-dev
   Date: 2005-02-06T17:58:22
   Editor: KevinBurton
   Wiki: Jakarta Commons Wiki
   Page: CodeConPresentation
   URL: http://wiki.apache.org/jakarta-commons/CodeConPresentation

   no comment

Change Log:

--
@@ -5,8 +5,10 @@
  * Introduction
 
 * Based on the NewsMonster parser infrastructure (XSLT)
-* Designed for use within Rojo.
+* Designed for use within Rojo (an online RSS aggregator)
 * Event based not DOM based
+* Jakarta Commons 
+* Apache 2.0 Open Source License 
 
  * Challenges with building a feed parser
 
@@ -17,9 +19,9 @@
 * FOAF 
 * Changes.xml
 * RDF
-* Modules (dc, aggregation, content, etc)
 * XFN
 * HTML (link parsing, relations, nofollow, meta tags, generators, etc)
+* Modules (dc, aggregation, content, etc)
 
 * Semantic confusion:
 * rss:entry vs atom:item
@@ -38,7 +40,7 @@
 
 * SAX model
 
-* DOM on top
+* DOM on top (in the future)
 
 * SAX is about 12x faster
 

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



Anyone here from Vienna?

2005-02-06 Thread Simon Kitching
Hi All,

I'm going to be in Vienna, Austria for a few weeks. I just wondered if
anyone here is from thereabouts, as it would be great to meet up with
some fellow jakarta types.

Cheers,

Simon


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



Re: Javadoc formatting style

2005-02-06 Thread Craig McClanahan
The standard HTML format is *not* the only output format you can get
with Javadocs -- it is quite feasible to render alternative XML-based
formats that can then be transformed using standard XML technologies
-- but that only works if the markup created by Javadocs comments is
well formed.

In addition, the lack of rigor that HTML requires has always been my
least favorite thing about the web in general -- I wish we'd started
with a culture that requires well formed XML in the first place.  Not
having done so has had a *direct* impact on the portability of
documents across browsers, and that impact has been negative overall.

The same mistake has essentially been made with RSS -- instead of
being disciplined about what they produce, RSS providers have expected
the newsfeed readers to go through incredible contortions to read
invalid feeds.  That philosophy is backwards.

I prefer to set a good example on things like this, rather than
contributing to the problem.

Craig



On Mon, 07 Feb 2005 15:06:49 +1300, Simon Kitching [EMAIL PROTECTED] wrote:
 On Sun, 2005-02-06 at 17:18 -0800, Craig McClanahan wrote:
  As should be evident from my own recent practice :-), I'm also +1 on
  the first (XHTML) approach.
 
 Can I ask those supporters of the XHTML style why they prefer it?
 
 Personally I think it:
 * increases the text size of the source file
 * is harder to write manually (and harder to write correctly)
 * makes the docs in the source file harder to read
 * might be easier for the javadoc app to parse, but that
   makes no difference to us users of javadoc; the javadoc
   tool support for HTML-style isn't going away.
 and
 * has no effect whatsoever on the generated html pages
 
 Not that it's a *huge* deal, but HTML-style just seems a bit better all
 around. Yet quite a few people obviously do prefer XHTML-style. Is it
 just for the purity?
 
 Regards,
 
 Simon
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



[Jakarta Commons Wiki] Updated: FeedParser/ReleaseSchedule

2005-02-06 Thread commons-dev
   Date: 2005-02-06T18:28:42
   Editor: KevinBurton
   Wiki: Jakarta Commons Wiki
   Page: FeedParser/ReleaseSchedule
   URL: http://wiki.apache.org/jakarta-commons/FeedParser/ReleaseSchedule

   no comment

Change Log:

--
@@ -1,7 +1,13 @@
 == 0.5.0 (Feb 2005) ==
 
  * Date: Feb 10, 2005
- * Post to FreshMeat, java lobby, the server side, atomenabled.org, slashdot, 
mailing lists, etc.  Email Sam Ruby and a bunch of other Java, Apache, and 
Weblog friendly bloggers.
+ * Post to 
+   * FreshMeat, 
+   * RSS weblog
+   * java lobby
+   * the server side
+   * atomenabled.org
+   * slashdot, mailing lists, etc.  Email Sam Ruby and a bunch of other Java, 
Apache, and Weblog friendly bloggers.
 
  * TODO:
* instructions for mailing list

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



Re: Javadoc formatting style

2005-02-06 Thread Henri Yandell
My reason is quite a lot simpler than Craig's.

I think of p as a container tag and not a separator tag, so I never
even think of the other way of doing it.

I guess we could do:

/**
 * first
 * p/
 * second
 */

and still be XML compliant (assuming an automatic root of some kind),
but it would seem just as wrong to me.

Hen

On Sun, 6 Feb 2005 18:22:42 -0800, Craig McClanahan [EMAIL PROTECTED] wrote:
 The standard HTML format is *not* the only output format you can get
 with Javadocs -- it is quite feasible to render alternative XML-based
 formats that can then be transformed using standard XML technologies
 -- but that only works if the markup created by Javadocs comments is
 well formed.
 
 In addition, the lack of rigor that HTML requires has always been my
 least favorite thing about the web in general -- I wish we'd started
 with a culture that requires well formed XML in the first place.  Not
 having done so has had a *direct* impact on the portability of
 documents across browsers, and that impact has been negative overall.
 
 The same mistake has essentially been made with RSS -- instead of
 being disciplined about what they produce, RSS providers have expected
 the newsfeed readers to go through incredible contortions to read
 invalid feeds.  That philosophy is backwards.
 
 I prefer to set a good example on things like this, rather than
 contributing to the problem.
 
 Craig
 
 
 On Mon, 07 Feb 2005 15:06:49 +1300, Simon Kitching [EMAIL PROTECTED] wrote:
  On Sun, 2005-02-06 at 17:18 -0800, Craig McClanahan wrote:
   As should be evident from my own recent practice :-), I'm also +1 on
   the first (XHTML) approach.
 
  Can I ask those supporters of the XHTML style why they prefer it?
 
  Personally I think it:
  * increases the text size of the source file
  * is harder to write manually (and harder to write correctly)
  * makes the docs in the source file harder to read
  * might be easier for the javadoc app to parse, but that
makes no difference to us users of javadoc; the javadoc
tool support for HTML-style isn't going away.
  and
  * has no effect whatsoever on the generated html pages
 
  Not that it's a *huge* deal, but HTML-style just seems a bit better all
  around. Yet quite a few people obviously do prefer XHTML-style. Is it
  just for the purity?
 
  Regards,
 
  Simon
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Javadoc formatting style

2005-02-06 Thread Craig McClanahan
On Sun, 6 Feb 2005 21:45:08 -0500, Henri Yandell [EMAIL PROTECTED] wrote:
 My reason is quite a lot simpler than Craig's.
 
 I think of p as a container tag and not a separator tag, so I never
 even think of the other way of doing it.
 
 I guess we could do:
 
 /**
  * first
  * p/
  * second
  */
 
 and still be XML compliant (assuming an automatic root of some kind),
 but it would seem just as wrong to me.

It would be valid only if the element that the Javadoc doclet happens
to place around your Javadoc comments accepts mixed content, *AND* if
the nested content is itself well formed.  Java developers who count
on that are, IMHO, making a mistake.

Of course, I feel the same way about developers creating static HTML
pages that create non-well-formed markup :-).

Craig

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



Re: Anyone here from Vienna?

2005-02-06 Thread Torsten Curdt
Hi All,
I'm going to be in Vienna, Austria for a few weeks. I just wondered if
anyone here is from thereabouts, as it would be great to meet up with
some fellow jakarta types.
...if you don't want to cut it down to only jakarta
folks it might be worth asking on party@
cheers
--
Torsten


signature.asc
Description: OpenPGP digital signature


Re: Javadoc formatting style

2005-02-06 Thread Simon Kitching
On Sun, 2005-02-06 at 18:59 -0800, Craig McClanahan wrote:
 On Sun, 6 Feb 2005 21:45:08 -0500, Henri Yandell [EMAIL PROTECTED] wrote:
  My reason is quite a lot simpler than Craig's.
  
  I think of p as a container tag and not a separator tag, so I never
  even think of the other way of doing it.
  
  I guess we could do:
  
  /**
   * first
   * p/
   * second
   */
  
  and still be XML compliant (assuming an automatic root of some kind),
  but it would seem just as wrong to me.
 
 It would be valid only if the element that the Javadoc doclet happens
 to place around your Javadoc comments accepts mixed content, *AND* if
 the nested content is itself well formed.  Java developers who count
 on that are, IMHO, making a mistake.

I was under the impression that doclet plugins to javadoc are always
fed properly structured data, in the same way that the Necko
html-parsing library presents its input data to its users as if it were
well-formed xml, and therefore don't need to worry about whether the
original javadoc text was HTML or XHTML style.

Is this not the case? If doclets are exposed to the raw javadoc text
then I would definitely agree XHTML is the way to go...

 Of course, I feel the same way about developers creating static HTML
 pages that create non-well-formed markup :-).

For HTML I agree; XHTML is the way to go. But isn't javadoc is a bit
different? In particular, it is read much more frequently in its raw
form, and always written by hand. And it is also expected to be accessed
via the javadoc doclet api rather than read directly(?).

Regards,

Simon


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



svn commit: r151679 - in jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs: downloads.xml news.xml status.xml

2005-02-06 Thread mbecke
Author: mbecke
Date: Sun Feb  6 20:41:37 2005
New Revision: 151679

URL: http://svn.apache.org/viewcvs?view=revrev=151679
Log:
Updates for 3.0RC1

Modified:

jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/downloads.xml

jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/news.xml

jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/status.xml

Modified: 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/downloads.xml?view=diffr1=151678r2=151679
==
--- 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/downloads.xml
 (original)
+++ 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/downloads.xml
 Sun Feb  6 20:41:37 2005
@@ -14,7 +14,7 @@
  The following releases are avilable for download:
/p
ul
- li3.0-beta1 - 21 November 2004 - 
+ li3.0-RC1 - 06 February 2004 - 
 a href=http://jakarta.apache.org/site/binindex.cgi;Binary/a 
and 
 a 
href=http://jakarta.apache.org/site/sourceindex.cgi;Source/a - a 
  
href=http://www.apache.org/dist/jakarta/commons/httpclient/RELEASE-NOTES.txt;
@@ -53,7 +53,7 @@
  source![CDATA[
 dependency
 idcommons-httpclient/id
-version3.0-alpha2/version
+version3.0-rc1/version
 urlhttp://jakarta.apache.org/commons/httpclient//url
 /dependency
  ]]/source

Modified: 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/news.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/news.xml?view=diffr1=151678r2=151679
==
--- 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/news.xml 
(original)
+++ 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/news.xml 
Sun Feb  6 20:41:37 2005
@@ -10,6 +10,17 @@
   /properties
 
   body
+section name=06 February 2005 - HttpClient 3.0 RC1 released
+p
+We are pleased to announce the HttpClient 3.0 RC1 release.  
The 3.0 API is frozen and
+all known bugs have been fixed.  Assuming no major problems 
are discovered in RC1 a final 3.0
+release will follow shortly.  We strongly encourage all 
current HttpClient users to start migrating. 
+Please a href=downloads.htmldownload/a and enjoy.
+/p
+pThe HttpClient 3.0 site can be found 
+   a 
href=http://jakarta.apache.org/commons/httpclient/3.0/;here/a.
+/p
+/section
 section name=30 January 2005 - Source control switched to 
Subversion
 p
 Along with the rest of the Jakarta Commons projects, 
HttpClient's version control

Modified: 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/status.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/status.xml?view=diffr1=151678r2=151679
==
--- 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/status.xml
 (original)
+++ 
jakarta/commons/proper/httpclient/branches/HTTPCLIENT_2_0_BRANCH/xdocs/status.xml
 Sun Feb  6 20:41:37 2005
@@ -14,23 +14,18 @@
   body
 
 section name=Current Status
-pQuite a lot of progress had been made in the 3.0 branch and we are 
nearly ready 
-for our first beta release.  At this point HttpClient 3.0 is fully 
feature-complete 
-and is just a few issue reports short of being code and documentation 
complete. 
-We strongly encourage all current HttpClient users to have a look at 
the new and 
-improved 3.0 API before we freeze API changes for the first beta 
release. 
-Any feedback would be greatly appreciated. /p
+pThe HttpClient 3.0 first release candidate is here.  The 3.0 API is 
frozen and
+all known bugs have been fixed.  Assuming no major problems are 
discovered in RC1 a final 3.0
+release will follow shortly.  We strongly encourage all current 
HttpClient users to start migrating./p
 
-pThe preview of the HttpClient 3.0 site can be found 
+pThe HttpClient 3.0 site can be found 
  a 
href=http://jakarta.apache.org/commons/httpclient/3.0/;here/a./p
 
 pHttpClient 2.0 is no longer being actively developed, with the 
exception of 
 bug fixes and minor enhancements.  2.0.2 is the latest stable 
release./p
 
-pIt is important to note that HttpClient Subversion Trunk is no 
longer fully compatible 
-with 2.0.x APIs. We encourage 

svn commit: r151682 - in jakarta/commons/sandbox/feedparser/trunk: TODO src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java src/java/org/apache/commons/feedparser/MetaFeedParserListener.java src/java/org/apache/commons/feedparser/NS.java

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 21:43:31 2005
New Revision: 151682

URL: http://svn.apache.org/viewcvs?view=revrev=151682
Log:
support for RSS 2.0 'comments' element and WFW comments feed

Modified:
jakarta/commons/sandbox/feedparser/trunk/TODO

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/NS.java

Modified: jakarta/commons/sandbox/feedparser/trunk/TODO
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/TODO?view=diffr1=151681r2=151682
==
--- jakarta/commons/sandbox/feedparser/trunk/TODO (original)
+++ jakarta/commons/sandbox/feedparser/trunk/TODO Sun Feb  6 21:43:31 2005
@@ -30,9 +30,11 @@
 - (DONE) Rework the factory mechanism to support multiple FeedParsers... should
   be an interface.
 
-- How do I want to maintain a public changelog?
+- How do I want to maintain a publicchangelog?
 
 - How do I want to maintain a public TODO?
+
+- UTF-16 tests for unicode and checksum the content.
 
 - Fix the feedparsing bug where we'll drop chars:
 

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java?view=diffr1=151681r2=151682
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/DefaultFeedParserListener.java
 Sun Feb  6 21:43:31 2005
@@ -117,6 +117,18 @@
 
 public void onAuthorEnd() throws FeedParserException {}
 
+
+public void onComments( FeedParserState state,
+String resource ) throws FeedParserException {}
+
+public void onCommentsEnd() throws FeedParserException {}
+
+public void onCommentsFeed( FeedParserState state,
+String resource ) throws FeedParserException {}
+
+public void onCommentsFeedEnd() throws FeedParserException {}
+
+
 //  ModContentFeedParserListener 

 
 public void onContentEncoded( FeedParserState state,

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java?view=diffr1=151681r2=151682
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParserListener.java
 Sun Feb  6 21:43:31 2005
@@ -136,5 +136,15 @@
   String resource ) throws FeedParserException;
 
 public void onAuthorEnd() throws FeedParserException;
-
+
+public void onComments( FeedParserState state,
+String resource ) throws FeedParserException;
+
+public void onCommentsEnd() throws FeedParserException;
+
+public void onCommentsFeed( FeedParserState state,
+String resource ) throws FeedParserException;
+
+public void onCommentsFeedEnd() throws FeedParserException;
+
 }

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/NS.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/NS.java?view=diffr1=151681r2=151682
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/NS.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/NS.java
 Sun Feb  6 21:43:31 2005
@@ -72,6 +72,9 @@
 public static final Namespace ATOM =
 Namespace.getNamespace( atom, http://purl.org/atom/ns#; );
 
+public static final Namespace WFW =
+Namespace.getNamespace( wfw, http://wellformedweb.org/CommentAPI/; 
);
+
 /**
  * mod_taxonomy
  */



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



svn commit: r151683 - in jakarta/commons/sandbox/feedparser/trunk: src/java/org/apache/commons/feedparser/MetaFeedParser.java src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java tests/feeds/wordpress-comments.rss

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 21:54:38 2005
New Revision: 151683

URL: http://svn.apache.org/viewcvs?view=revrev=151683
Log:
added support for onComments and onCommentsFeed to MetaFeedParserListener and 
them added RSS 2.0 and WFW implementations

Added:
jakarta/commons/sandbox/feedparser/trunk/tests/feeds/wordpress-comments.rss
Modified:

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParser.java

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParser.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParser.java?view=diffr1=151682r2=151683
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParser.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/MetaFeedParser.java
 Sun Feb  6 21:54:38 2005
@@ -51,12 +51,47 @@
 
 parseDate( state, mfp );
 
-//FIXME: make sure RSS .9 is working and 0.91.  I just need to
-//confirm but I think they are working correctly
-
+//FIXME: make sure RSS .9 is working and 0.91.  I just need to confirm
+//but I think they are working correctly
 parseGUID( state, mfp );
 
 parseAuthor( state, mfp );
+
+parseComments( state, mfp );
+
+parseCommentsFeed( state, mfp );
+
+}
+
+private static void parseComments( FeedParserState state,
+   MetaFeedParserListener listener )
+throws FeedParserException {
+
+Element element = state.current.getChild( comments );
+
+if ( element != null ) {
+
+String resource = element.getText();
+listener.onComments( state, resource );
+listener.onCommentsEnd();
+
+}
+
+}
+
+private static void parseCommentsFeed( FeedParserState state,
+   MetaFeedParserListener listener )
+throws FeedParserException {
+
+Element element = state.current.getChild( commentRSS, NS.WFW );
+
+if ( element != null ) {
+
+String resource = element.getText();
+listener.onCommentsFeed( state, resource );
+listener.onCommentsFeedEnd();
+
+}
 
 }
 

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java?view=diffr1=151682r2=151683
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/DebugFeedParserListener.java
 Sun Feb  6 21:54:38 2005
@@ -183,6 +183,20 @@
 
 }
 
+public void onComments( FeedParserState state,
+String resource ) throws FeedParserException {
+
+out.println( onComments:  + resource );
+
+}
+
+public void onCommentsFeed( FeedParserState state,
+String resource ) throws FeedParserException {
+
+out.println( onCommentsFeed:  + resource );
+
+}
+
 //  LinkFeedParserListener 
**
 
 /**

Added: 
jakarta/commons/sandbox/feedparser/trunk/tests/feeds/wordpress-comments.rss
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/tests/feeds/wordpress-comments.rss?view=autorev=151683
==
--- jakarta/commons/sandbox/feedparser/trunk/tests/feeds/wordpress-comments.rss 
(added)
+++ jakarta/commons/sandbox/feedparser/trunk/tests/feeds/wordpress-comments.rss 
Sun Feb  6 21:54:38 2005
@@ -0,0 +1,133 @@
+?xml version=1.0 encoding=utf-8?
+!-- generator=wordpress/1.5-alpha-6 --
+rss version=2.0 
+   xmlns:content=http://purl.org/rss/1.0/modules/content/;
+   xmlns:wfw=http://wellformedweb.org/CommentAPI/;
+
+
+channel
+   titleWordPress WordBlog/title
+   linkhttp://wordpress.org/development/link
+   descriptionUpdates and information relevant to the development of 
WordPress/description
+   copyrightCopyright 2005/copyright
+   pubDateWed, 02 Feb 2005 22:04:47 +/pubDate
+   generatorhttp://wordpress.org/?v=1.5-alpha-6/generator
+
+   item
+   titleMatt and Ryan talk about 1.5/title
+   

svn commit: r151684 - jakarta/commons/sandbox/feedparser/trunk/xdocs/index.xml

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 21:55:41 2005
New Revision: 151684

URL: http://svn.apache.org/viewcvs?view=revrev=151684
Log:
updated dox

Modified:
jakarta/commons/sandbox/feedparser/trunk/xdocs/index.xml

Modified: jakarta/commons/sandbox/feedparser/trunk/xdocs/index.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/xdocs/index.xml?view=diffr1=151683r2=151684
==
--- jakarta/commons/sandbox/feedparser/trunk/xdocs/index.xml (original)
+++ jakarta/commons/sandbox/feedparser/trunk/xdocs/index.xml Sun Feb  6 
21:55:41 2005
@@ -188,6 +188,15 @@
 RSS 2.0 enclosures
 /dd
 
+dt
+wfw:commentRSS
+/dt
+
+dd
+WFW commentRSS support for linking to additional RSS feeds
+for comments
+/dd
+
 /dl
 
 /section



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



svn commit: r151685 - in jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser: impl/CaptureOutputFeedParserListener.java test/DebugPerformance.java test/TestComments.java

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 22:14:27 2005
New Revision: 151685

URL: http://svn.apache.org/viewcvs?view=revrev=151685
Log:
unit tests for comments RSS and RSS 2.0 comments

Added:

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/DebugPerformance.java

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestComments.java

Added: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java?view=autorev=151685
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java
 (added)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java
 Sun Feb  6 22:14:27 2005
@@ -0,0 +1,61 @@
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.commons.feedparser.impl;
+
+import org.apache.commons.feedparser.*;
+import org.jdom.*;
+
+import java.util.*;
+import java.io.*;
+
+/**
+ * Code which can run a parse but capture the output to a string to verify
+ * certain methods were called via greping the output.  This is ONLY for unit
+ * tests.
+ * 
+ * @author a href=mailto:[EMAIL PROTECTED]Kevin A. Burton (burtonator)/a
+ * @version $Id: DebugFeedParserListener.java 151683 2005-02-07 05:54:38Z 
burton $
+ */
+public class CaptureOutputFeedParserListener
+extends DebugFeedParserListener {
+
+public CaptureOutputFeedParserListener() {
+super( new CapturePrintStream() );
+}
+
+public String toString() {
+
+CapturePrintStream cps = (CapturePrintStream)out;
+ByteArrayOutputStream bos = 
(ByteArrayOutputStream)cps.getOutputStream();
+
+return bos.toString();
+
+}
+
+}
+
+class CapturePrintStream extends PrintStream {
+
+public CapturePrintStream() {
+super( new ByteArrayOutputStream() );
+}
+
+public OutputStream getOutputStream() {
+return out;
+}
+
+}
\ No newline at end of file

Added: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/DebugPerformance.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/DebugPerformance.java?view=autorev=151685
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/DebugPerformance.java
 (added)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/DebugPerformance.java
 Sun Feb  6 22:14:27 2005
@@ -0,0 +1,161 @@
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.commons.feedparser.test;
+
+import java.applet.*;
+import java.util.*;
+import java.io.*;
+import java.net.*;
+import java.security.*;
+import java.lang.reflect.*;
+
+import junit.framework.*;
+
+import org.apache.commons.feedparser.*;
+import org.apache.commons.feedparser.impl.*;
+import org.apache.commons.feedparser.network.*;
+
+import javax.xml.parsers.*;
+import org.xml.sax.*;
+import org.xml.sax.helpers.*;
+
+/**
+ *
+ * @author a href=mailto:[EMAIL PROTECTED]Kevin A. Burton/a
+ * @version $Id: TestAtom.java 149187 2005-01-30 23:54:29Z burton $
+ */
+public class DebugPerformance {
+
+static SAXParser parser = null;
+
+public static void doTestSAX() 

svn commit: r151689 - jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 22:35:24 2005
New Revision: 151689

URL: http://svn.apache.org/viewcvs?view=revrev=151689
Log:
unit tests say IncompatibleClassChangeError but for the life of me I can't 
figure out why

Modified:

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java?view=diffr1=151688r2=151689
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/impl/CaptureOutputFeedParserListener.java
 Sun Feb  6 22:35:24 2005
@@ -27,6 +27,9 @@
  * certain methods were called via greping the output.  This is ONLY for unit
  * tests.
  * 
+ * When done you can just call toString() to get the output of all the events
+ * and then grep across it.
+ * 
  * @author a href=mailto:[EMAIL PROTECTED]Kevin A. Burton (burtonator)/a
  * @version $Id: DebugFeedParserListener.java 151683 2005-02-07 05:54:38Z 
burton $
  */



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



svn commit: r151691 - jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestComments.java jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestGuid.java

2005-02-06 Thread burton
Author: burton
Date: Sun Feb  6 22:46:49 2005
New Revision: 151691

URL: http://svn.apache.org/viewcvs?view=revrev=151691
Log:
tests for GUIDs

Added:

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestGuid.java
Modified:

jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestComments.java

Modified: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestComments.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestComments.java?view=diffr1=151690r2=151691
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestComments.java
 (original)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestComments.java
 Sun Feb  6 22:46:49 2005
@@ -33,7 +33,7 @@
  * @author a href=mailto:[EMAIL PROTECTED]Kevin A. Burton/a
  * @version $Id: TestAtom.java 149187 2005-01-30 23:54:29Z burton $
  */
-public class TestComments extends TestCase {
+public class TestComments extends BaseTestCase {
 
 public TestComments( String name ) throws Exception {
 super( name );
@@ -42,16 +42,8 @@
 public void test1() throws Exception {
 
 String resource = file:tests/feeds/wordpress-comments.rss;
-
-FeedParser parser = FeedParserFactory.newFeedParser();
 
-FeedParserListener listener = new CaptureOutputFeedParserListener();
-
-ResourceRequest request = ResourceRequestFactory.getResourceRequest( 
resource );
-
-parser.parse( listener, request.getInputStream(), resource );
-
-String output = listener.toString();
+String output = captureOutputFromTest( resource );
 
 if ( output.indexOf( onComments:  ) == -1 )
 throw new Exception();

Added: 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestGuid.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestGuid.java?view=autorev=151691
==
--- 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestGuid.java
 (added)
+++ 
jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/test/TestGuid.java
 Sun Feb  6 22:46:49 2005
@@ -0,0 +1,62 @@
+/*
+ * Copyright 1999,2004 The Apache Software Foundation.
+ * 
+ * Licensed under the Apache License, Version 2.0 (the License);
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *  http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.commons.feedparser.test;
+
+import java.applet.*;
+import java.util.*;
+import java.io.*;
+import java.net.*;
+import java.security.*;
+
+import junit.framework.*;
+
+import org.apache.commons.feedparser.*;
+import org.apache.commons.feedparser.impl.*;
+import org.apache.commons.feedparser.network.*;
+
+/**
+ *
+ * @author a href=mailto:[EMAIL PROTECTED]Kevin A. Burton/a
+ * @version $Id: TestAtom.java 149187 2005-01-30 23:54:29Z burton $
+ */
+public class TestGuid extends BaseTestCase {
+
+public TestGuid( String name ) throws Exception {
+super( name );
+}
+
+public void test1() throws Exception {
+
+String resource = file:tests/feeds/rss-2.0-guid.rss;
+
+String output = captureOutputFromTest( resource );
+
+if ( output.indexOf( onGUID:  ) == -1 )
+throw new Exception();
+
+}
+
+public static void main( String[] args ) throws Exception {
+
+TestGuid test = new TestGuid( null );
+
+//test.testGetWeblogLinkForResource();
+test.test1();
+
+}
+
+}



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



[ANNOUNCE] Release of Commons HttpClient 3.0 RC1

2005-02-06 Thread Michael Becke
The Jakarta Commons team is pleased to announce the release of  
HttpClient 3.0 RC1. The 3.0 API is frozen and all known bugs have been  
fixed. Assuming no major problems are discovered in RC1 a final 3.0   
release will follow shortly. We strongly encourage all current  
HttpClient users to start migrating. As always we welcome suggestions  
and bug reports.

Thank you,
Commons HttpClient Development Team
HttpClient 3.0 Web Site:
http://jakarta.apache.org/commons/httpclient/3.0/index.html
Release Notes:
http://www.apache.org/dist/jakarta/commons/httpclient/RELEASE- 
NOTES.txt

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


svn commit: r151695 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 23:29:54 2005
New Revision: 151695

URL: http://svn.apache.org/viewcvs?view=revrev=151695
Log:
* Move constructors to after member declarations
* improve javadoc

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
   (contents, props changed)

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java?view=diffr1=151694r2=151695
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Digester.java
 Sun Feb  6 23:29:54 2005
@@ -1,4 +1,4 @@
-/* $Id: $
+/* $Id$
  *
  * Copyright 2001-2005 The Apache Software Foundation.
  *
@@ -75,25 +75,9 @@
 
 public class Digester {
 
-// - Constructors
-
-/**
- * Construct a new Digester with default properties.
- */
-public Digester() {
-this.saxHandler = new SAXHandler();
-}
-
-/**
- * This method allows customisation of the way that sax events are
- * handled, by allowing a modified subclass of SAXHandler to be
- * specified as the target for parsing events.
- */
-public Digester(SAXHandler saxHandler) {
-this.saxHandler = saxHandler;
-}
-
-// --- Instance Variables
+// --- 
+// Instance Variables
+// --- 
 
 /**
  * The object used to handle event callbacks from the SAX parser as
@@ -116,7 +100,29 @@
  */
 private boolean validating = false;
 
-// - Properties
+// - 
+// Constructors
+// - 
+
+/**
+ * Construct a new Digester with default properties.
+ */
+public Digester() {
+this.saxHandler = new SAXHandler();
+}
+
+/**
+ * This method allows customisation of the way that sax events are
+ * handled, by allowing a modified subclass of SAXHandler to be
+ * specified as the target for parsing events.
+ */
+public Digester(SAXHandler saxHandler) {
+this.saxHandler = saxHandler;
+}
+
+// - 
+// Properties
+// - 
 
 /**
  * Get the SAXHandler object associated with this instance.
@@ -413,6 +419,12 @@
  * then the parser will attempt to use the system-id directly, potentially
  * downloading the resource from a remote location./p
  *
+ * pIf you are trying to register a systemId here, then be aware that
+ * the value that must be registered is the iabsolute/i URL formed by
+ * resolving the system-id in the input document against the base URL of
+ * the document being parsed. If the system-id in the document is absolute,
+ * then this is not an issue./p
+ *
  * p
  * strongNote:/strong This method will have no effect when a custom
  * codeEntityResolver/code has been set. (Setting a custom
@@ -446,6 +458,21 @@
  * does no such thing, so processing of it can be suppressed.
  * p
  * This flag defaults to false (ie external dtds are read during the 
parse).
+ * p
+ * Note that this method would not be necessary if people could be
+ * relied upon to mark their DOCTYPE declarations with the standalone
+ * keyword if they can be ignored, as the xml parser would never attempt
+ * to load the dtd unless validation was enabled. And this method would 
+ * not be necessary if people could be relied upon to use PUBLIC ids in 
+ * their DOCTYPES, as method registerKnownEntity(publicId, ) can be used 
+ * to ignore an entity with a specific public-id. However there are large 
+ * volumes of broken XML documents out there that ignore both of these 
+ * basic xml features, so this method provides a workaround. Note that 
using
+ * registerKnownEntity with a systemId is not usually useful, because
+ * xml parsers expand relative systemIds into absolute ids before calling
+ * the EntityResolver, making it difficult to know before parsing starts
+ * what (absolute) system-id value should be registered in order to
+ * redirect/disable the entity.
  */
 public void setIgnoreExternalDTD(boolean state) {
 saxHandler.setIgnoreExternalDTD(state);
@@ -458,7 

svn commit: r151696 - in jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2: AbstractAction.java Action.java ArrayStack.java MultiHashMap.java Path.java Substitutor.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 23:41:15 2005
New Revision: 151696

URL: http://svn.apache.org/viewcvs?view=revrev=151696
Log:
Update copyright to 2005
Add svn:keywords property

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractAction.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Action.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ArrayStack.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/MultiHashMap.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Path.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Substitutor.java
   (contents, props changed)

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractAction.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractAction.java?view=diffr1=151695r2=151696
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractAction.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractAction.java
 Sun Feb  6 23:41:15 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/AbstractAction.java
--
svn:keywords = Id

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Action.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Action.java?view=diffr1=151695r2=151696
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Action.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Action.java
 Sun Feb  6 23:41:15 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Action.java
--
svn:keywords = Id

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ArrayStack.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ArrayStack.java?view=diffr1=151695r2=151696
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ArrayStack.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ArrayStack.java
 Sun Feb  6 23:41:15 2005
@@ -1,5 +1,6 @@
-/*
- *  Copyright 2001-2004 The Apache Software Foundation
+/* $Id$
+ *
+ *  Copyright 2001-2005 The Apache Software Foundation
  *
  *  Licensed under the Apache License, Version 2.0 (the License);
  *  you may not use this file except in compliance with the License.

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ArrayStack.java
--
svn:keywords = Id

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/MultiHashMap.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/MultiHashMap.java?view=diffr1=151695r2=151696
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/MultiHashMap.java
 (original)
+++ 

svn commit: r151697 - in jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2: InvalidRuleException.java ParseException.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 23:44:21 2005
New Revision: 151697

URL: http://svn.apache.org/viewcvs?view=revrev=151697
Log:
Update copyright to 2005
set svn:keywords property

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/InvalidRuleException.java

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ParseException.java

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/InvalidRuleException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/InvalidRuleException.java?view=diffr1=151696r2=151697
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/InvalidRuleException.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/InvalidRuleException.java
 Sun Feb  6 23:44:21 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
@@ -22,6 +22,9 @@
  * Thrown when a problem is detected as a rule is added to a RuleManager.
  * One possible cause is that the pattern is invalid, but there may be
  * others depending upon the RuleManager and Action involved.
+ * p
+ * This exception is not thrown iduring/i parsing; problems at that
+ * stage are represented by instances of ParseException.
  */
 
 public class InvalidRuleException extends DigestionException {
@@ -36,6 +39,5 @@
 public InvalidRuleException(String msg, Throwable t) {
 super(msg, t);
 }
-
 }
 

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ParseException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ParseException.java?view=diffr1=151696r2=151697
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ParseException.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ParseException.java
 Sun Feb  6 23:44:21 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
@@ -19,6 +19,8 @@
 package org.apache.commons.digester2;
 
 /**
+ * An exception indicating that some problem occurred during parsing of
+ * the input xml.
  */
 
 public class ParseException extends DigestionException {
@@ -33,6 +35,5 @@
 public ParseException(String msg, Throwable t) {
 super(msg, t);
 }
-
 }
 



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



svn commit: r151698 - in jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2: InvalidRuleException.java ParseException.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 23:45:09 2005
New Revision: 151698

URL: http://svn.apache.org/viewcvs?view=revrev=151698
Log:
Really add svn:keywords property

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/InvalidRuleException.java
   (props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ParseException.java
   (props changed)

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/InvalidRuleException.java
--
svn:keywords = Id

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/ParseException.java
--
svn:keywords = Id



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



svn commit: r151699 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DigestionException.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 23:46:37 2005
New Revision: 151699

URL: http://svn.apache.org/viewcvs?view=revrev=151699
Log:
Support JDKs earlier than 1.4 (ie ones that don't implement
exception-chaining).

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DigestionException.java
   (contents, props changed)

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DigestionException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DigestionException.java?view=diffr1=151698r2=151699
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DigestionException.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DigestionException.java
 Sun Feb  6 23:46:37 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
@@ -19,19 +19,31 @@
 package org.apache.commons.digester2;
 
 /**
+ * The base class from which all digester-specific exception classes inherit.
+ * p
+ * This class supports the concept of a cause exception, even on versions
+ * of java prior to 1.4 (where this became standard behaviour for exception
+ * classes). 
  */
 
 public class DigestionException extends Exception {
+Throwable cause = null;
+
 public DigestionException(String msg) {
 super(msg);
 }
 
 public DigestionException(String msg, Throwable t) {
-super(msg, t);
+super(msg);
+cause = t;
 }
 
 public DigestionException(Throwable t) {
-super(t);
+cause = t;
+}
+
+public Throwable getCause() {
+return cause;
 }
 }
 

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/DigestionException.java
--
svn:keywords = Id



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



svn commit: r151702 - in jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2: NestedSAXException.java SAXHandler.java package.html

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 23:52:18 2005
New Revision: 151702

URL: http://svn.apache.org/viewcvs?view=revrev=151702
Log:
Update copyright to 2005. 
Add svn:keywords property

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/NestedSAXException.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
   (contents, props changed)

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/package.html

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/NestedSAXException.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/NestedSAXException.java?view=diffr1=151701r2=151702
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/NestedSAXException.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/NestedSAXException.java
 Sun Feb  6 23:52:18 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  * 
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/NestedSAXException.java
--
svn:keywords = Id

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java?view=diffr1=151701r2=151702
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
 Sun Feb  6 23:52:18 2005
@@ -1,6 +1,6 @@
-/* $Id: Digester.java,v 1.107 2004/09/18 09:51:03 skitching Exp $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/SAXHandler.java
--
svn:keywords = Id

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/package.html
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/package.html?view=diffr1=151701r2=151702
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/package.html
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/package.html
 Sun Feb  6 23:52:18 2005
@@ -1,6 +1,6 @@
-!-- $Id: package.html,v 1.31 2004/09/09 20:38:21 rdonkin Exp $
+!-- $Id$
   
- Copyright 2001-2004 The Apache Software Foundation.
+ Copyright 2001-2005 The Apache Software Foundation.
  
  Licensed under the Apache License, Version 2.0 (the License);
  you may not use this file except in compliance with the License.



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



svn commit: r151706 - jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java

2005-02-06 Thread skitching
Author: skitching
Date: Sun Feb  6 23:54:02 2005
New Revision: 151706

URL: http://svn.apache.org/viewcvs?view=revrev=151706
Log:
Move constructor to after member declarations
Update copyright to 2005
Add svm:keywords property

Modified:

jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
   (contents, props changed)

Modified: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java?view=diffr1=151705r2=151706
==
--- 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
 (original)
+++ 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
 Sun Feb  6 23:54:02 2005
@@ -1,6 +1,6 @@
-/* $Id: $
+/* $Id$
  *
- * Copyright 2001-2004 The Apache Software Foundation.
+ * Copyright 2001-2005 The Apache Software Foundation.
  *
  * Licensed under the Apache License, Version 2.0 (the License);
  * you may not use this file except in compliance with the License.
@@ -39,16 +39,6 @@
 
 public class Context {
 
-// - Constructors
-
-/**
- * Construct a new Context.
- */
-public Context(SAXHandler saxHandler, Log log) {
-this.saxHandler = saxHandler;
-this.log = log;
-}
-
 // --- 
 // Instance Variables
 // --- 
@@ -109,6 +99,18 @@
  * CallParamAction.
  */
 private ArrayStack params = new ArrayStack();
+
+// - 
+// Constructors
+// - 
+
+/**
+ * Construct a new Context.
+ */
+public Context(SAXHandler saxHandler, Log log) {
+this.saxHandler = saxHandler;
+this.log = log;
+}
 
 // ---
 // Properties

Propchange: 
jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/Context.java
--
svn:keywords = Id



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



Re: [digester2] performance of ns-aware parsing

2005-02-06 Thread Reid Pinchback

--- Simon Kitching [EMAIL PROTECTED] wrote:
  I stopped using belief as a measurement of code a long time
  ago.  Usually only works when I wrote all the code.  :-)
  I'll cook up an experiment and see what I can come up with
  in the way of timing information.
 
 That would be excellent. I look forward to seeing the results..

Actually, an experiment implies a question to be answered, and
while this has been an interesting back-and-forth, not sure
we really have a question to answer.  This whole thing began
with me simply asking a question about something you'd
put in your readme file on the upcoming work.  Practically
I don't see you not expecting a namespace-aware parser, the
question is really more one of the user of Digester2 deciding
if they are using namespace features.  While we could do
timing tests to help people understand what the impact may
or may not be of using NS in the documents they parse, it
obviously has nothing to do with whether or not you are
going to expect a parser to handle NS if the docs contain NS.
That will be the developer's problem, not yours, yes?







__ 
Do you Yahoo!? 
Yahoo! Mail - You care about security. So do we. 
http://promotions.yahoo.com/new_mail

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