[PATCH] [fileupload]

2005-04-10 Thread Dakota Jack
Add 
if(fileName != null) {
  fileName = new java.io.File(fileName).getName();
}

to the "protected String getFileName(Map headers)" method of
FileUploadBase so that all the names will be the same for each of the
browsers.  IE now gives the absolute file path as the file name,
unlike, e.g. Firefox and Netscape.

Jack

-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

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



DO NOT REPLY [Bug 33311] - [fileupload] Two typos in the manual page of MultipartStream

2005-04-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=33311


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-04-11 06:45 ---
Fixed in the 20050411 nightly build.

-- 
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: r160833 - jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java

2005-04-10 Thread martinc
Author: martinc
Date: Sun Apr 10 21:44:41 2005
New Revision: 160833

URL: http://svn.apache.org/viewcvs?view=rev&rev=160833
Log:
Bugzilla #33311: Fix typos.

Modified:

jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java

Modified: 
jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java?view=diff&r1=160832&r2=160833
==
--- 
jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java
 (original)
+++ 
jakarta/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/MultipartStream.java
 Sun Apr 10 21:44:41 2005
@@ -53,13 +53,13 @@
  * boundary token of the same length as the parent stream (see [EMAIL 
PROTECTED]
  * #setBoundary(byte[])}).
  *
- * Here is an exaple of usage of this class.
+ * Here is an example of usage of this class.
  *
  * 
  *try {
  *MultipartStream multipartStream = new MultipartStream(input,
  *  boundary);
- *boolean nextPart = malitPartStream.skipPreamble();
+ *boolean nextPart = multipartStream.skipPreamble();
  *OutputStream output;
  *while(nextPart) {
  *header = chunks.readHeader();



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



DO NOT REPLY [Bug 34393] New: - Bug in FileUploadBase

2005-04-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=34393

   Summary: Bug in FileUploadBase
   Product: Commons
   Version: unspecified
  Platform: All
OS/Version: other
Status: NEW
  Severity: major
  Priority: P2
 Component: File Upload
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]


The file name is sometimes just the name and sometimes the absolute file path
(e.g. in IE).  Consistency of output can be gardnered by adding:

if(fileName != null) {
  fileName = new java.io.File(fileName).getName();
}

to the "protected String getFileName(Map headers)" method in FileUploadBase.

-- 
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: r160811 - jakarta/commons/proper/httpclient/trunk/xdocs/news.xml

2005-04-10 Thread mbecke
Author: mbecke
Date: Sun Apr 10 18:01:06 2005
New Revision: 160811

URL: http://svn.apache.org/viewcvs?view=rev&rev=160811
Log:
Updates for 3.0rc2

Modified:
jakarta/commons/proper/httpclient/trunk/xdocs/news.xml

Modified: jakarta/commons/proper/httpclient/trunk/xdocs/news.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/xdocs/news.xml?view=diff&r1=160810&r2=160811
==
--- jakarta/commons/proper/httpclient/trunk/xdocs/news.xml (original)
+++ jakarta/commons/proper/httpclient/trunk/xdocs/news.xml Sun Apr 10 18:01:06 
2005
@@ -12,12 +12,12 @@
   
 
 
-Jakarta Commons HttpClient project is pleased to announce the 
second release
+The Jakarta Commons HttpClient project is pleased to announce 
the second release
 candidate of HttpClient 3.0. Several minor issues have been 
fixed since RC1 and 
-HttpClient 3.0 has made a significant progess towards the 
final release. We are 
+HttpClient 3.0 has made significant progess towards the final 
release. We are 
 confident HttpClient 3.0 is ready to replace HttpClient 2.0 as 
a production
-quality release. We strongly recommend considering upgrade 
from 
-to HttpClient 3.0. Please download and enjoy.
+quality release. We strongly recommend upgrading to HttpClient 
3.0. Please 
+download and enjoy.
 
 The HttpClient 3.0 site can be found 
http://jakarta.apache.org/commons/httpclient/3.0/";>here.



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



[lang] VOTE 2.1 release

2005-04-10 Thread Henri Yandell
Proposing a vote to go ahead and release Commons Lang 2.1.

The release will pretty much match the release-candidate that is in:
http://www.apache.org/~bayard/commons-lang-2.1/

Stephen's recent defaultIfEmpty method will be included in the release.

If the vote is successful, I'll target spending next weekend
performing the release (unless anyone wants to volunteer).

[ ] +1
[ ] -1

Hen

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



svn commit: r160809 - jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java

2005-04-10 Thread bayard
Author: bayard
Date: Sun Apr 10 17:38:04 2005
New Revision: 160809

URL: http://svn.apache.org/viewcvs?view=rev&rev=160809
Log:
As far as I can tell, this method was in 2.0, so rolling the @since 2.1 back to 
2.0. Hopefully this explains why JDiff thought it was a removed and added 
method signature

Modified:

jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java

Modified: 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java?view=diff&r1=160808&r2=160809
==
--- 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
 (original)
+++ 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
 Sun Apr 10 17:38:04 2005
@@ -399,7 +399,7 @@
  * @return the String result
  * @throws IllegalArgumentException
  *  if the Object is null
- * @since 2.1
+ * @since 2.0
  */
 public static String toString(Object object, ToStringStyle style, boolean 
outputTransients, Class reflectUpToClass) {
 return new ReflectionToStringBuilder(object, style, null, 
reflectUpToClass, outputTransients).toString();



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



svn commit: r160808 - in jakarta/commons/proper/httpclient/trunk: build.xml project.xml release_notes.txt src/java/org/apache/commons/httpclient/params/DefaultHttpParamsFactory.java xdocs/downloads.xml xdocs/news.xml xdocs/status.xml

2005-04-10 Thread mbecke
Author: mbecke
Date: Sun Apr 10 16:39:59 2005
New Revision: 160808

URL: http://svn.apache.org/viewcvs?view=rev&rev=160808
Log:
Updates for 3.0rc2

Modified:
jakarta/commons/proper/httpclient/trunk/build.xml
jakarta/commons/proper/httpclient/trunk/project.xml
jakarta/commons/proper/httpclient/trunk/release_notes.txt

jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/params/DefaultHttpParamsFactory.java
jakarta/commons/proper/httpclient/trunk/xdocs/downloads.xml
jakarta/commons/proper/httpclient/trunk/xdocs/news.xml
jakarta/commons/proper/httpclient/trunk/xdocs/status.xml

Modified: jakarta/commons/proper/httpclient/trunk/build.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/build.xml?view=diff&r1=160807&r2=160808
==
--- jakarta/commons/proper/httpclient/trunk/build.xml (original)
+++ jakarta/commons/proper/httpclient/trunk/build.xml Sun Apr 10 16:39:59 2005
@@ -38,7 +38,7 @@
   
 
   
-  
+  
 
 
 

Modified: jakarta/commons/proper/httpclient/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/project.xml?view=diff&r1=160807&r2=160808
==
--- jakarta/commons/proper/httpclient/trunk/project.xml (original)
+++ jakarta/commons/proper/httpclient/trunk/project.xml Sun Apr 10 16:39:59 2005
@@ -6,7 +6,7 @@
   commons-httpclient
   jakarta-commons-httpclient
   2001
-  3.0-rc1
+  3.0-rc2
   org.apache.commons.httpclient
 
   
@@ -33,6 +33,11 @@
 
http://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk
   
   
+
+  3.0-rc2
+  3.0-rc2
+  HTTPCLIENT_3_0_RC2
+
 
   3.0-rc1
   3.0-rc1

Modified: jakarta/commons/proper/httpclient/trunk/release_notes.txt
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/release_notes.txt?view=diff&r1=160807&r2=160808
==
--- jakarta/commons/proper/httpclient/trunk/release_notes.txt (original)
+++ jakarta/commons/proper/httpclient/trunk/release_notes.txt Sun Apr 10 
16:39:59 2005
@@ -1,3 +1,5 @@
+Release 3.0 Release Candidate 2
+---
 Changes since Release Candidate 1:
 
  * 34255 - Preemptive authentication no longer causes NTLM auth scheme to fail

Modified: 
jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/params/DefaultHttpParamsFactory.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/params/DefaultHttpParamsFactory.java?view=diff&r1=160807&r2=160808
==
--- 
jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/params/DefaultHttpParamsFactory.java
 (original)
+++ 
jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/params/DefaultHttpParamsFactory.java
 Sun Apr 10 16:39:59 2005
@@ -68,7 +68,7 @@
 protected HttpParams createParams() {
 HttpClientParams params = new HttpClientParams(null);
 
-params.setParameter(HttpMethodParams.USER_AGENT, "Jakarta 
Commons-HttpClient/3.0-rc1");
+params.setParameter(HttpMethodParams.USER_AGENT, "Jakarta 
Commons-HttpClient/3.0-rc2");
 params.setVersion(HttpVersion.HTTP_1_1);
 params.setConnectionManagerClass(SimpleHttpConnectionManager.class);
 params.setCookiePolicy(CookiePolicy.RFC_2109);

Modified: jakarta/commons/proper/httpclient/trunk/xdocs/downloads.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/xdocs/downloads.xml?view=diff&r1=160807&r2=160808
==
--- jakarta/commons/proper/httpclient/trunk/xdocs/downloads.xml (original)
+++ jakarta/commons/proper/httpclient/trunk/xdocs/downloads.xml Sun Apr 10 
16:39:59 2005
@@ -14,16 +14,14 @@
  The following releases are avilable for download:


- 3.0-RC1 - 06 February 2004 - 
-http://jakarta.apache.org/site/binindex.cgi";>Binary 
and 
-http://jakarta.apache.org/site/sourceindex.cgi";>Source - 3.0-RC2 - 09 April 2005 - 
+http://jakarta.apache.org/site/downloads/downloads_commons-httpclient.cgi";>Download
 - http://www.apache.org/dist/jakarta/commons/httpclient/RELEASE-NOTES.txt";
  >Release notes


  2.0.2 - 11 October 2004 - 
-http://jakarta.apache.org/site/binindex.cgi";>Binary 
and 
-http://jakarta.apache.org/site/sourceindex.cgi";>Source - http://jakarta.apache.org/site/downloads/downloads_commons-httpclient.cgi";>Download
 - http://www.apache.org/dist/jakarta/commons/httpclient/RELEASE-NOTES-2.0.txt";
  >Release note

Re: [lang] New StringUtils method - defaultIfEmpty

2005-04-10 Thread Stephen Colebourne
defaultIfEmpty implemented
Stephen
Fredrik Westermarck wrote:
Stephen Colebourne wrote:
Currently we have two default methods, both of which default when the 
string parameter is null. At my job we just had need of a default if 
empty method:

public String defaultIfEmpty(String str, String defaultString) {
 if (isEmpty(str)) {
  return defaultString;
 } else {
  return str;
 }
}
Does this sound OK to add?

Since what you describe is a rather common use case I'm +1.
/Fredrik Westermarck
-
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]


svn commit: r160807 - in jakarta/commons/proper/lang/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/lang/StringUtils.java src/test/org/apache/commons/lang/StringUtilsTest.java

2005-04-10 Thread scolebourne
Author: scolebourne
Date: Sun Apr 10 16:25:25 2005
New Revision: 160807

URL: http://svn.apache.org/viewcvs?view=rev&rev=160807
Log:
Add StringUtils.defaultIfEmpty

Modified:
jakarta/commons/proper/lang/trunk/RELEASE-NOTES.txt

jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java

jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java

Modified: jakarta/commons/proper/lang/trunk/RELEASE-NOTES.txt
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/RELEASE-NOTES.txt?view=diff&r1=160806&r2=160807
==
--- jakarta/commons/proper/lang/trunk/RELEASE-NOTES.txt (original)
+++ jakarta/commons/proper/lang/trunk/RELEASE-NOTES.txt Sun Apr 10 16:25:25 2005
@@ -60,6 +60,7 @@
  -- ordinalIndexOf to find the nth index of a string
  -- various remove methods to remove parts of a string
  -- various split methods to provide more control over splitting a 
string
+ -- defaultIfEmpty to default a string if null or empty
 - SystemUtils - methods to get system properties as File objects
  -- extra constants representing system properties
 - Validate - new methods to check whether all elements in a collection are of 
a specific type

Modified: 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java?view=diff&r1=160806&r2=160807
==
--- 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
 (original)
+++ 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringUtils.java
 Sun Apr 10 16:25:25 2005
@@ -4405,9 +4405,9 @@
  * null, the value of defaultStr.
  *
  * 
- * StringUtils.defaultString(null, "null")  = "null"
- * StringUtils.defaultString("", "null")= ""
- * StringUtils.defaultString("bat", "null") = "bat"
+ * StringUtils.defaultString(null, "NULL")  = "NULL"
+ * StringUtils.defaultString("", "NULL")= ""
+ * StringUtils.defaultString("bat", "NULL") = "bat"
  * 
  *
  * @see ObjectUtils#toString(Object,String)
@@ -4419,6 +4419,26 @@
  */
 public static String defaultString(String str, String defaultStr) {
 return str == null ? defaultStr : str;
+}
+
+/**
+ * Returns either the passed in String, or if the String is
+ * empty or null, the value of defaultStr.
+ *
+ * 
+ * StringUtils.defaultIfEmpty(null, "NULL")  = "NULL"
+ * StringUtils.defaultIfEmpty("", "NULL")= "NULL"
+ * StringUtils.defaultIfEmpty("bat", "NULL") = "bat"
+ * 
+ *
+ * @see StringUtils#defaultString(String, String)
+ * @param str  the String to check, may be null
+ * @param defaultStr  the default String to return
+ *  if the input is empty ("") or null, may be null
+ * @return the passed in String, or the default
+ */
+public static String defaultIfEmpty(String str, String defaultStr) {
+return StringUtils.isEmpty(str) ? defaultStr : str;
 }
 
 // Reversing

Modified: 
jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java?view=diff&r1=160806&r2=160807
==
--- 
jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java
 (original)
+++ 
jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/StringUtilsTest.java
 Sun Apr 10 16:25:25 2005
@@ -1173,17 +1173,23 @@
 
 //---
 public void testDefault_String() {
-assertEquals("", StringUtils.defaultString(null) );
-assertEquals("", StringUtils.defaultString("") );
-assertEquals("abc", StringUtils.defaultString("abc") );
+assertEquals("", StringUtils.defaultString(null));
+assertEquals("", StringUtils.defaultString(""));
+assertEquals("abc", StringUtils.defaultString("abc"));
 }
-
+
 public void testDefault_StringString() {
-assertEquals("xyz", StringUtils.defaultString(null, "xyz") );
-assertEquals("", StringUtils.defaultString("", "xyz") );
-assertEquals("abc", StringUtils.defaultString("abc", "xyz") );
+assertEquals("NULL", StringUtils.defaultString(null, "NULL"));
+assertEquals("", StringUtils.defaultString("", "NULL"));
+assertEquals("abc", StringUtils.defaultString("abc", "NULL"));
 }
-
+
+public void testDefaultIfEmpty_StringString() {
+assertEquals("NULL", StringUtils.defaultIfEmpty

[betwixt] [patch] Support for polymorphic references

2005-04-10 Thread Thomas Dudziak
Hi,

attached is a patch to commons-betwixt, SVN Head, that enables betwixt
to map polymorphic references. I.e. a class has a field of a type,
that itself or some of its subtypes are mapped. This in effect makes
it necessary to make the 'name' attribute completely optional (using
the property name when necessary) in order to be able to use the
element definition from the class descriptor of the reference type.
The attached TestReferenceMapping provides a unit test for this
scenario.

Also attached is a unit test that shows a bug in betwixt for the same
scenario but with a collection (see also section "Mixed Collections -
Guessing Element Names" in
http://jakarta.apache.org/commons/betwixt/guide/binding.html).

Tom
Index: src/java/org/apache/commons/betwixt/digester/ElementRule.java
===
--- src/java/org/apache/commons/betwixt/digester/ElementRule.java   
(revision 158830)
+++ src/java/org/apache/commons/betwixt/digester/ElementRule.java   
(working copy)
@@ -109,12 +109,12 @@
 .isLoopType(descriptor.getPropertyType());
 
 descriptor.setCollective(isCollective);
-
+/*
 // check that the name attribute is present 
 if ( !isCollective && (nameAttributeValue == null || 
nameAttributeValue.trim().equals( "" ) )) {
 throw new SAXException("Name attribute is required.");
 }
-
+*/
 // check that name is well formed 
 if ( nameAttributeValue != null && !XMLUtils.isWellFormedXMLName( 
nameAttributeValue ) ) {
 throw new SAXException("'" + nameAttributeValue + "' would not be 
a well formed xml element name.");
Index: 
src/java/org/apache/commons/betwixt/io/read/ChainedBeanCreatorFactory.java
===
--- src/java/org/apache/commons/betwixt/io/read/ChainedBeanCreatorFactory.java  
(revision 158830)
+++ src/java/org/apache/commons/betwixt/io/read/ChainedBeanCreatorFactory.java  
(working copy)
@@ -15,7 +15,12 @@
  */ 
 package org.apache.commons.betwixt.io.read;
 
+import java.util.Collection;
+import java.util.Iterator;
+
 import org.apache.commons.betwixt.ElementDescriptor;
+import org.apache.commons.betwixt.XMLBeanInfo;
+import org.apache.commons.betwixt.registry.XMLBeanInfoRegistry;
 import org.apache.commons.logging.Log;
 
 /**  
@@ -85,8 +90,25 @@
 
 ElementDescriptor descriptor = element.getDescriptor();
 if ( descriptor != null ) {
-// created based on implementation class
-theClass = descriptor.getImplementationClass();
+if (descriptor.getQualifiedName() == null) {
+// polymorhpic reference -> we need to determine the 
fitting class descriptor
+XMLBeanInfoRegistry registry = 
context.getXMLIntrospector().getRegistry();
+
+for (Iterator it = 
registry.getCachedClasses().iterator(); it.hasNext();) {
+XMLBeanInfo   mapping  = 
registry.get((Class)it.next());
+ElementDescriptor typeDesc = 
mapping.getElementDescriptor();
+
+if 
(element.getName().equals(typeDesc.getQualifiedName()) &&
+
descriptor.getPropertyType().isAssignableFrom(mapping.getBeanClass())) {
+theClass = mapping.getBeanClass();
+break;
+}
+}
+}
+if (theClass == null) {
+// created based on implementation class
+theClass = descriptor.getImplementationClass();
+}
 }
 
 if ( theClass == null ) {
Index: 
src/java/org/apache/commons/betwixt/registry/DefaultXMLBeanInfoRegistry.java
===
--- 
src/java/org/apache/commons/betwixt/registry/DefaultXMLBeanInfoRegistry.java
(revision 158830)
+++ 
src/java/org/apache/commons/betwixt/registry/DefaultXMLBeanInfoRegistry.java
(working copy)
@@ -16,6 +16,7 @@
  * limitations under the License.
  */ 
 
+import java.util.Collection;
 import java.util.HashMap;
 import java.util.Map;
 
@@ -52,8 +53,18 @@
 public void put(Class forThisClass, XMLBeanInfo beanInfo) {
 xmlBeanInfos.put(forThisClass, beanInfo);
 }
-
+
 /**
+ * Returns all classes that are cached in this registry.
+ * 
+ * @return The classes
+ */
+public Collection getCachedClasses()
+{
+return xmlBeanInfos.keySet();
+}
+
+/**
   * Flush existing cached XMLBeanInfo's.
   */
 public void flush() {
Index: src/java/org/apache/commons/betwixt/registry/NoCacheRegistry.java
===

svn commit: r160786 - jakarta/commons/proper/dbutils/trunk/project.xml

2005-04-10 Thread bayard
Author: bayard
Date: Sun Apr 10 09:01:17 2005
New Revision: 160786

URL: http://svn.apache.org/viewcvs?view=rev&rev=160786
Log:
fixing mkhouris email adddress

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

Modified: jakarta/commons/proper/dbutils/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/dbutils/trunk/project.xml?view=diff&r1=160785&r2=160786
==
--- jakarta/commons/proper/dbutils/trunk/project.xml (original)
+++ jakarta/commons/proper/dbutils/trunk/project.xml Sun Apr 10 09:01:17 2005
@@ -147,7 +147,7 @@
 
   Markus Khouri
   
-  [EMAIL PROTECTED]
+  [EMAIL PROTECTED]
   
   
 Documentation



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



DO NOT REPLY [Bug 24056] - [lang] Documentation error in StringUtils.replace

2005-04-10 Thread bugzilla
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
.
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=24056


[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|REOPENED|RESOLVED
 Resolution||FIXED




--- Additional Comments From [EMAIL PROTECTED]  2005-04-10 16:56 ---
Changing this to 'fixed' since this issue has been addressed in the source
repository.

The javadoc available at http://jakarta.apache.org/commons/lang/api/index.html
reflects the latest released version (2.0) of commons-lang. In that version the
issue were present. The online javadoc will however be updated when the next
version of commons-lang is released.

-- 
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: [httpclient] Jars in the repository

2005-04-10 Thread Arnaud HERITIER
Hi Dion,

I just published the maven-plugins site.
You'll find the list of plugins released after maven 1.0.2 (7th 
December) in this page in some hours (depending of the sync
between www.apache.org and people.apache.org):
http://maven.apache.org/reference/plugins/multichanges-report.html

We didn't yet publish a new maven release with this new plugins set.
I think it'll be done with maven 1.1

Arnaud

 

> -Message d'origine-
> De : Dion Gillard [mailto:[EMAIL PROTECTED] 
> Envoyé : dimanche 10 avril 2005 12:27
> À : Jakarta Commons Developers List
> Objet : Re: [httpclient] Jars in the repository
> 
> Arnaud,
> 
> is there an up to date list of released plugins for maven 
> 1.0.2? Maybe a bundle with the latest of each released since 
> the 1.0.2 release?
> 
> On Apr 10, 2005 7:58 PM, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> > Hi guys,
> > 
> > [SNIP]
> > >
> > > I'll ask the maintainer of the plugin, if it is possible 
> to get an 
> > > official release of it.
> > 
> > It's done.
> > You can download it (maven plugin:download 
> -DartifactId=maven-ant-plugin -DgroupId=maven -Dversion=1.9) 
> and use it (maven ant).
> > 
> > From now, you can use external properties to configure the 
> generated ant script (to override dependencies for example) :
> > http://maven.apache.org/reference/plugins/ant/ant-settings.html
> > 
> > If you already have an handwritten ant script, be careful 
> to use the 
> > property 'maven.ant.generatebuild.file' to change the name of the 
> > generated one 
> > (http://maven.apache.org/reference/plugins/ant/properties.html)
> > 
> > We hope that this new release will help you.
> > 
> > Do not hesitate to open issues if needed : 
> > http://jira.codehaus.org/browse/MPANT
> > 
> > Cheers,
> > 
> > Arnaud
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> > 
> 
> 
> --
> http://www.multitask.com.au/people/dion/
> 
> -
> 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: [httpclient] Jars in the repository

2005-04-10 Thread Dion Gillard
Arnaud,

is there an up to date list of released plugins for maven 1.0.2? Maybe
a bundle with the latest of each released since the 1.0.2 release?

On Apr 10, 2005 7:58 PM, Arnaud HERITIER <[EMAIL PROTECTED]> wrote:
> Hi guys,
> 
> [SNIP]
> >
> > I'll ask the maintainer of the plugin, if it is possible to
> > get an official release of it.
> 
> It's done.
> You can download it (maven plugin:download -DartifactId=maven-ant-plugin 
> -DgroupId=maven -Dversion=1.9) and use it (maven ant).
> 
> From now, you can use external properties to configure the generated ant 
> script (to override dependencies for example) :
> http://maven.apache.org/reference/plugins/ant/ant-settings.html
> 
> If you already have an handwritten ant script, be careful to use the property 
> 'maven.ant.generatebuild.file' to change the name of
> the generated one 
> (http://maven.apache.org/reference/plugins/ant/properties.html)
> 
> We hope that this new release will help you.
> 
> Do not hesitate to open issues if needed : 
> http://jira.codehaus.org/browse/MPANT
> 
> Cheers,
> 
> Arnaud
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
http://www.multitask.com.au/people/dion/

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



RE: [httpclient] Jars in the repository

2005-04-10 Thread Arnaud HERITIER
Hi guys,

[SNIP]
> 
> I'll ask the maintainer of the plugin, if it is possible to 
> get an official release of it.

It's done.
You can download it (maven plugin:download -DartifactId=maven-ant-plugin 
-DgroupId=maven -Dversion=1.9) and use it (maven ant).

>From now, you can use external properties to configure the generated ant 
>script (to override dependencies for example) :
http://maven.apache.org/reference/plugins/ant/ant-settings.html

If you already have an handwritten ant script, be careful to use the property 
'maven.ant.generatebuild.file' to change the name of
the generated one 
(http://maven.apache.org/reference/plugins/ant/properties.html)

We hope that this new release will help you.

Do not hesitate to open issues if needed : http://jira.codehaus.org/browse/MPANT

Cheers,

Arnaud



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



[ANN] Maven Ant Plugin 1.9 release

2005-04-10 Thread Arnaud HERITIER
The maven team is pleased to announce the Maven Ant Plugin 1.9 release! 

http://maven.apache.org/reference/plugins/ant/

Generates ant build files from a maven project, so that plain ant users can 
build your project 

Changes in this version include:

  New Features:

o Ant script looks for dependencies in several remote repositories. Issue: 
  MPANT-24. 
o Add License file to jar META-INF. Issue: MPANT-23. Thanks to Phil Steitz. 
o Allow URL substitutions in generated build.xml files. Issue: MPANT-20. 
  Thanks to Dennis Lundberg,Craig McClanahan. 
o Obey jar override and not attempt to download relative jars. Issue: 
  MPANT-7. 
o Ant user can set proxy settings. 
o New property maven.ant.compatibility if you want a script compatible with 
  ant 1.5 (actually for proxy settings). 

  Changes:

o "get-deps" target store downloads to the default local maven repository ( 
  ${user.home}/.maven/repository). Issue: MPANT-21.  

To automatically install the plugin, type the following on a single line:

maven plugin:download 
  -DgroupId=maven 
  -DartifactId=maven-ant-plugin
  -Dversion=1.9

For a manual installation, you can download the plugin here:
http://www.apache.org/dyn/closer.cgi/java-repository/maven/plugins/maven-ant-plugin-1.9.jar
 

Have fun!
-The maven team



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



Jsvc on amd64

2005-04-10 Thread Gil Shai
Hi,

Recently I ran jsvc on an AMD64 machine and it didn't work. I ran it
with tomcat 5.0.28, apache 2.0.52 and Sun jdk 1_5_0_02. Basically, jsvc
is not supported on AMD64 with JDK 1.5. There is already an open bug on
this so I am not opening another one.
I want to share with the open source community an specifically the jsvc
developers what I did and found out.
Unfortunately the changes I did are very specific so I cannot contribute
them and I didn't have the time to do them generally or properly.
The changes I did were in three files:

1) configure - in this file I added the following line:

x86_64)
CFLAGS="$CFLAGS -DCPU=\\\"amd64\\\"" ;;

Because there is no support for 64 bit on this machine.

2) location.c - in this file I added the path to the libjvm.so which is
different for JDK 1.5:

"$JAVA_HOME/jre/lib/" CPU "/server/libjvm.so",  /* Sun JDK 1.5 on amd64
*/

This line should be under:

char *location_jvm_default[] = {

3) jsvc-unix.c - I put in comment the following function:

set_caps

Since I got errors:

jsvc.exec error: syscall failed in set_caps 
jsvc.exec error: Service exit with a return value of 4 

For some reason, there were no permissions to call this function. I
didn't get too much into it since I didn't have time and I'm currently
running tomcat under root so I don't really need this function.

Thanks,
Gil