RE: [logging] Logger.getName

2005-09-27 Thread Jörg Schaible
Joerg Hohwiller wrote on Wednesday, September 28, 2005 12:40 AM:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hi everybody,
> 
> since nothing happened after I opened bugzilla issue 15939
> and called for discussion, I simply started changing all
> implementations of Log so they implement Logger instead (all
> locally). I will supply the patch, when I am done.
> 
> Now what I found out when worked on LogKitLogger, is that
> they deperected the "getCategory()" method which is the
> analogy of the invented "getName()" method. Their deprecation
> is:  Deprecated. This method violates Inversion of
> Control principle. If you are relying on its presence then
> there may be something wrong with the design of your system 
> http://www.keelframework.org/release/2.1-dev/javadoc/org/apache/log/Logger.html#getCategory()
>
> Actually it seems they have now even completely removed the method:
> https://svn.apache.org/repos/asf/excalibur/trunk/containerkit/logkit/src/java/org/apache/log/Logger.java
>
> I can not see the point (esp. when there are methods as
> "public synchronized Logger[] getChildren()")?
>
> Can someone give me a hint?
>
> I do not really need the "getName()" method and could also leave it out
> of Logger. But for me it would still make sense to have the method and
> it would be possible to implement it.

Well, since getCategory is already gone, you cannot implement getName anymore 
in a compatible matter. What will work as alternative is: 

Logger getChild(String name)

This is basically, what Niclas proposed as use case for getName():

Logger loggfer = Logger.getLogger(parentLogger.getName + ".child");

getChild can be implemented for all logger packages that either support getName 
or have getChild ... and this seems all of them. WDYT?

- Jörg

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



Re: [fileupload] DefaultFileItem.getUniqueId and multiple class loaders

2005-09-27 Thread Alexey Panchenko
Mike S wrote:

> Are there any suggestions as to the best way to modify the getUniqueId
> method to return a unique ID across class loaders? We are thinking along the
> lines of injecting a random number to concatenate with the static counter in
> the DefaultFileItem, (or grabbing the start timestamp off the jvm) to create
> unique names.

return new java.rmi.server.UID().toString().replace(':','-');

-- 
Best regards,
 Alexeymailto:[EMAIL PROTECTED]


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



[logging] Logger.getName

2005-09-27 Thread Joerg Hohwiller
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everybody,

since nothing happened after I opened bugzilla issue 15939 and called
for discussion, I simply started changing all implementations of Log
so they implement Logger instead (all locally). I will supply the patch,
when I am done.

Now what I found out when worked on LogKitLogger, is that they
deperected the "getCategory()" method which is the analogy of the
invented "getName()" method. Their deprecation is:

Deprecated. This method violates Inversion of Control principle. If you
are relying on its presence then there may be something wrong with the
design of your system

http://www.keelframework.org/release/2.1-dev/javadoc/org/apache/log/Logger.html#getCategory()

Actually it seems they have now even completely removed the method:
https://svn.apache.org/repos/asf/excalibur/trunk/containerkit/logkit/src/java/org/apache/log/Logger.java

I can not see the point (esp. when there are methods as
"public synchronized Logger[] getChildren()")?

Can someone give me a hint?

I do not really need the "getName()" method and could also leave it out
of Logger. But for me it would still make sense to have the method
and it would be possible to implement it.

Regards
  Jörg
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDOco/mPuec2Dcv/8RAhi4AJ43ik8ALxtfMNSxW2j+9cn0Y80qhQCfX9AR
M/XUfGPpOR5+eSqYmMgulos=
=USrp
-END PGP SIGNATURE-

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



svn commit: r292037 - in /jakarta/commons/proper/daemon/trunk/src/native/unix/native: java.c jsvc-unix.c

2005-09-27 Thread jfclere
Author: jfclere
Date: Tue Sep 27 13:47:08 2005
New Revision: 292037

URL: http://svn.apache.org/viewcvs?rev=292037&view=rev
Log:
Add traces.

Modified:
jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c
jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c?rev=292037&r1=292036&r2=292037&view=diff
==
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c (original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/java.c Tue Sep 
27 13:47:08 2005
@@ -343,6 +343,7 @@
 return(false);
 }
 
+log_debug("Daemon loading...");
 ret=(*env)->CallStaticBooleanMethod(env,cls,method,className,stringArray);
 if (ret==FALSE) {
 log_error("Cannot load daemon");

Modified: jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c?rev=292037&r1=292036&r2=292037&view=diff
==
--- jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c 
(original)
+++ jakarta/commons/proper/daemon/trunk/src/native/unix/native/jsvc-unix.c Tue 
Sep 27 13:47:08 2005
@@ -480,7 +480,11 @@
 return(4);
 #endif
 /* Initialize the Java VM */
-if (java_init(args,data)!=true) return(1);
+if (java_init(args,data)!=true) {
+log_debug("java_init failed");
+return(1);
+} else
+log_debug("java_init done");
 
 /* Check wether we need to dump the VM version */
 if (args->vers==true) {
@@ -497,7 +501,11 @@
 }
 
 /* Load the service */
-if (java_load(args)!=true) return(3);
+if (java_load(args)!=true) {
+log_debug("java_load failed");
+return(3);
+} else
+log_debug("java_load done");
 
 /* Downgrade user */
 #ifdef OS_LINUX
@@ -511,7 +519,11 @@
 #endif
 
 /* Start the service */
-if (java_start()!=true) return(5);
+if (java_start()!=true) {
+log_debug("java_start failed");
+return(5);
+} else
+log_debug("java_start done");
 
 /* Install signal handlers */
 handler_hup=signal_set(SIGHUP,handler);



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



DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux

2005-09-27 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=35338





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 21:56 ---
I am on a dedicated line behind a company firewall right next to the ftp server.
I have also tried using Java 1.4 and 1.5 - no difference.

-- 
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]



DO NOT REPLY [Bug 36832] - Stream ended unexpectedly -- when used with Flash 8 file upload

2005-09-27 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=36832





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 21:21 ---
The code used to invoke this was called from inside a .jsp file, as 

FileItemFactory factory = new DiskFileItemFactory();  
// Configure the factory if you need to  
FileUpload upload = new ServletFileUpload(factory);  

List items=null;
String uri = request.getRequestURI();
dbg.println("[2] uri in servlet: "+uri);

// Parse the request
try {
dbg.println("[3] inside servlet1:
"+DiskFileUpload.isMultipartContent(request));
dbg.println(request.toString());
items = upload.parseRequest(request);
dbg.println("[4] items size: "+items.size());

-- 
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]



DO NOT REPLY [Bug 36832] New: - Stream ended unexpectedly -- when used with Flash 8 file upload

2005-09-27 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=36832

   Summary: Stream ended unexpectedly -- when used with Flash 8 file
upload
   Product: Commons
   Version: Nightly Builds
  Platform: Other
OS/Version: other
Status: NEW
  Severity: normal
  Priority: P2
 Component: File Upload
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Using the new Flash 8 file upload facility, the posted data causes 
this error in FileUpload

 org.apache.commons.fileupload.FileUploadException: Processing of
multipart/form-data request failed. Stream ended unexpectedly

I am running with nightly builds of 
commons-io-1.1-dev.jar
commons-fileupload-1.1-dev.jar
downloaded 9.27.05


The file upload multipart data can be parsed fine by PHP 4's file upload 
machinery. 

Here is a raw file of the request POST data from the Flash client, maybe it will
tell you something.


gL6Ij5GI3KM7Ef1KM7gL6gL6cH2GI3
Content-Disposition: form-data; name="Filename"

known_hosts
gL6Ij5GI3KM7Ef1KM7gL6gL6cH2GI3
Content-Disposition: form-data; name="Filedata"; filename="known_hosts"
Content-Type: application/octet-stream

stealth,192.168.10.5 ssh-rsa
B3NzaC1yc2EBIwAAAIEAwC8qPeKuTxPGIWntFUDgeIuko6vYH6/iTq2c2E+rZUmsw2DzaxuTF1WZ5zaDSRb6y8huqnmVqC4e2n/vgVMaHPCjwNoumpGPd3pfgHxBCBqGKo8CdMDuGLBD6ay0Dv/peKrqbCIKEkBRR9oiJfMxNEgkG/rQVWnqHZ8gdZU4Abk=
sf.laszlosystems.com,198.144.202.66 ssh-rsa
B3NzaC1yc2EBIwAAAIEA3+kiXznwgtuQapBQ33R5T3o5a5w5Sl6SXHmq9FyMf+2c6zUq+O+26reDI7XMk5ZCrMN/dL5zESIw3QEocEZG/0YnkKx4zC8Kic8JHJJxWyKZZ0vOIged43a16D4I1kyDHvYYgcETzK+Si+Ow/wDUIWd3FUcsvK7fSAwSREZrgLE=
beartronics.dnsalias.net,209.150.55.79 ssh-rsa
B3NzaC1yc2EBIwAAAIEAwC8qPeKuTxPGIWntFUDgeIuko6vYH6/iTq2c2E+rZUmsw2DzaxuTF1WZ5zaDSRb6y8huqnmVqC4e2n/vgVMaHPCjwNoumpGPd3pfgHxBCBqGKo8CdMDuGLBD6ay0Dv/peKrqbCIKEkBRR9oiJfMxNEgkG/rQVWnqHZ8gdZU4Abk=
rscode.sourceforge.net,66.35.250.209 ssh-dss
B3NzaC1kc3MAAACBAPa9fW4yY6h2lHYoONfb1Oz9rcPJ7rVi8c1p1VAAl3qVUTm4iWhBnRYnGjv2N9kl4uFXMnlJ5TwVGMSV3rV0VmsFYDpNZGyjEy3q/0k59vwjaMIrVF9EgdjAbMdEr6vUAbfIfzYNzeemtiy65OOiw2cRfF21xYRdNVMpEz9a/6T9FQCnz2QdvFwORsPv5zjZzFnTiz9NpQAAAIBuJAtsLmFmNQnWk0pHsnOOxUhZSZEcQC4/4t5X8yEX9Y/UPt0BfhWhyh6tIlioJgFxxyU5ydnyqLWZYa0OYaJ+NE0CD3aiM5rUz5bUBwYH4eywdWQzss6ez0XwZdwRFjVM6rQAuB1fCoCzXfG18wRnmloj+W7FqDyuAAqgnK45WIEAw8po2iEvm8b0BUaKRHBHwWR+m7tLrTpYOdZj9LsiwN0AfklqpwZZwRRmpiGtgWRhHLRQdv8PF2jGOkhbrfjcYv7R3rB6inBVHl+/82nWUA2HtPlPEPTFMdxxgsE8gazop01tME9iefXAKo+AquBnBeP7GAljQwWjJ64k0WX4aKU=
login.csail.mit.edu,128.30.2.14 ssh-rsa
B3NzaC1yc2EBIwAAAIEA6wRr2sZH5Yb16+Sf9gn+ED9kRb1Ex9kPbIOjvS1Re+WO18utOkBLBurVase0rlBzb9FpyNYR5qXXM+97WfLqRS93ZtElSi5F2iIulRosLsNhO6a9N2XuB2JeQhy4jau0F6PBmJ4yxP6/F4z5+yVCkfoRn0+pU37KRhl07Ao2qGM=
model28,192.168.10.49 ssh-rsa
B3NzaC1yc2EBIwAAAIEA2PEZ5EGFpzWEN8XOG/b+cmTUokahbWDVmuZrPp4DakNrXkNB7nYO47on5jMdKZidV4/RKkQOcFbKNyiq+1kdkPwnVV2Hyq70pGmeJJGGTCZwB/LlPkSz2CSPXhh7CR9Kg5GcqD1ROSDJEXpm9j/D2nZ917+iGjnEpKWrDcnhPb0=
192.168.10.101 ssh-rsa
B3NzaC1yc2EBIwAAAIEAskjEu4jsE9+iDRPqntlPwahF1VarD5efspUq7Ot58jsgCW9epLVNj9NyxTAvK3L68qOXBqxpkm8Gx/nuRgPAh4sHA/xxbgOmlnIcrELXRyQMF0cpjcmk1yikFwJyktmmDAdqMghI+AoO3dvTpkZHeRavoae5xST8nKilqnbhN7s=

gL6Ij5GI3KM7Ef1KM7gL6gL6cH2GI3
Content-Disposition: form-data; name="Upload"
Submit Query
gL6Ij5GI3KM7Ef1KM7gL6gL6cH2GI3

-- 
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]



DO NOT REPLY [Bug 36831] - Java 5 Generic List: Cannot make betwixt work properly

2005-09-27 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=36831





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 20:39 ---
Created an attachment (id=16539)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16539&action=view)
Working Sample for List WITHOUT generics

Lists without java 5 generics work properly, but I spent some time making my
code work. I think for other users of betwixt those files could be very helpful
- I'd be more than happy to see the files contributed to the betwixt doxs.

-- 
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: [lang] VariableFormatter-Patch

2005-09-27 Thread Tom Schindl
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks Gary that's great now I can maintain my sub-class of variable
formatter which can use formats like MessageFormat in my own package-space.

Tom

Gary Gregory wrote:
> Tom:
> 
> I've made the constants public for easier access from subclasses or
> wrappers.
> 
> Thanks for the suggestions. Now in SVN.
> 
> Gary
> 
> 
>>-Original Message-
>>From: Tom Schindl [mailto:[EMAIL PROTECTED]
>>Sent: Tuesday, September 27, 2005 4:50 AM
>>To: commons-dev@jakarta.apache.org
>>Subject: [lang] VariableFormatter-Patch
>>
>>Hi,
>>
>>is it possible to change the visibility of constants in
>>VariableFormatter protected. This way one could easily sub-class the
>>VariableFormatter and write its own. The appended patch does that.
>>
>>Tom
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Mandriva - http://enigmail.mozdev.org

iD8DBQFDOZF3kVPeOFLgZFIRAmpeAKCl9ykhMx2S3z2nPPO7+MYhszRjpACffkFI
jFE+YUIVqzI5lCasWnk2VV8=
=NpYf
-END PGP SIGNATURE-

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



DO NOT REPLY [Bug 36831] - Java 5 Generic List: Cannot make betwixt work properly

2005-09-27 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=36831





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 20:31 ---
Created an attachment (id=16538)
 --> (http://issues.apache.org/bugzilla/attachment.cgi?id=16538&action=view)
Junit test case to reproduce bug


-- 
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]



DO NOT REPLY [Bug 36831] New: - Java 5 Generic List: Cannot make betwixt work properly

2005-09-27 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=36831

   Summary: Java 5 Generic List: Cannot make betwixt work properly
   Product: Commons
   Version: unspecified
  Platform: Other
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: Betwixt
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Hello,

I cannot make betwixt work for a set of classes using Java 5 Generics (public
class GenericItemList extends ArrayList). A similar set of classes
using a non-generic list is working nicely. 

I've got a junit test case which reproduces the problem for me. The test case
converts a class to xml and tries to parse it back. Converting to XML is working
fine, but the parsing isn't. 

I'll attach the following files:

- GenericItemListHolderTest.java - the junit test which fails

- GenericItem.java, GenericItem.betwixt - java+betwixt file for one item in the 
list
- GenericItemList.java, GenericItemList.betwixt - java+betwixt file for a java 5
style list using generic
- GenericItemListHolder.java, GenericItemListHolder.betwixt - java+betwixt file
for a class which "holds" an instance of GenericItemList.

Steps to reproduce the problem: Run the junit test case 
"GenericItemListHolderTest".

Thank you very much in advance for your help.

Rgds
Holger

-- 
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: [lang] VariableFormatter-Patch

2005-09-27 Thread Gary Gregory
Tom:

I've made the constants public for easier access from subclasses or
wrappers.

Thanks for the suggestions. Now in SVN.

Gary

> -Original Message-
> From: Tom Schindl [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, September 27, 2005 4:50 AM
> To: commons-dev@jakarta.apache.org
> Subject: [lang] VariableFormatter-Patch
> 
> Hi,
> 
> is it possible to change the visibility of constants in
> VariableFormatter protected. This way one could easily sub-class the
> VariableFormatter and write its own. The appended patch does that.
> 
> Tom

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



svn commit: r291996 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java

2005-09-27 Thread ggregory
Author: ggregory
Date: Tue Sep 27 10:37:38 2005
New Revision: 291996

URL: http://svn.apache.org/viewcvs?rev=291996&view=rev
Log:
Made constants public for easier access from subclasses or wrappers.

Modified:

jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java

Modified: 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java?rev=291996&r1=291995&r2=291996&view=diff
==
--- 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java
 (original)
+++ 
jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/VariableFormatter.java
 Tue Sep 27 10:37:38 2005
@@ -465,13 +465,13 @@
 }
 
 /** Constant for the default escape character. */
-static final char DEFAULT_ESCAPE = '$';
+public static final char DEFAULT_ESCAPE = '$';
 
 /** Constant for the default variable prefix. */
-static final String DEFAULT_PREFIX = "${";
+public static final String DEFAULT_PREFIX = "${";
 
 /** Constant for the default variable suffix. */
-static final String DEFAULT_SUFFIX = "}";
+public static final String DEFAULT_SUFFIX = "}";
 
 /**
  * Replaces the occurrences of all variables in the given source data by 
their current values obtained from the



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



DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux

2005-09-27 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=35338





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 19:18 ---
Are you using a DSL or cable TV connection to the internet or a dedicated line 
(T1, OC3, etc.)? By default RH uses IPv6 (Windows uses IPv4). Most DSL and 
cable companies only support IPv4... After using parameters mentioned 
previously to force Java to use either IPv6 or IPv4, I came to the theory that 
the problem is probably either in Sun's  or RH's implementation of IPv4 on 
Linux. Of course, if you have a direct connection and have this problem, then 
a new theory is in order...

-- 
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]



[fileupload] DefaultFileItem.getUniqueId and multiple class loaders

2005-09-27 Thread Mike S
We have a very busy server running 9 clones of a web app server. Each clone
uses DiskFileUpload, and most of the incoming files are cached to disk. We
discovered that in rare instances, two clones will attempt to write to the
same file, causing corruption.

We discovered that getUniqueId (which is used to create tmp file name) is
not guaranteed unique across class loaders (it's written in the code
comments -- thank you). One solution to the file collisions is to force each
clone to write to a different tmp directory. However, we would prefer to not
have to worry about managing multiple tmp directories.

Are there any suggestions as to the best way to modify the getUniqueId
method to return a unique ID across class loaders? We are thinking along the
lines of injecting a random number to concatenate with the static counter in
the DefaultFileItem, (or grabbing the start timestamp off the jvm) to create
unique names.

Thanks,
Mike


svn commit: r291971 - in /jakarta/commons/proper/email/tags: EMAIL_1_0/ new_1.0/

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 07:56:36 2005
New Revision: 291971

URL: http://svn.apache.org/viewcvs?rev=291971&view=rev
Log:
There already was a non-voted 1.0 release tag which conflicted with the 
official tag. Removed it and put the right one in place

Added:
jakarta/commons/proper/email/tags/EMAIL_1_0/
  - copied from r291970, jakarta/commons/proper/email/tags/new_1.0/
Removed:
jakarta/commons/proper/email/tags/new_1.0/


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



svn commit: r291970 - /jakarta/commons/proper/email/tags/EMAIL_1_0/

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 07:55:49 2005
New Revision: 291970

URL: http://svn.apache.org/viewcvs?rev=291970&view=rev
Log:
Remove old EMAIL_1_0 tag

Removed:
jakarta/commons/proper/email/tags/EMAIL_1_0/


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



svn commit: r291969 - in /jakarta/commons/proper/email/tags: EMAIL_1_0/trunk/ new_1.0/

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 07:55:12 2005
New Revision: 291969

URL: http://svn.apache.org/viewcvs?rev=291969&view=rev
Log: (empty)

Added:
jakarta/commons/proper/email/tags/new_1.0/
  - copied from r291968, jakarta/commons/proper/email/tags/EMAIL_1_0/trunk/
Removed:
jakarta/commons/proper/email/tags/EMAIL_1_0/trunk/


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



Apache Jakarta Commons Email 1.0 released

2005-09-27 Thread Henning Schmiedehausen
The Commons Email team of the Jakarta Project of the ASF is happy to
announce the release of Commons Email 1.0.

Jakarta Commons Email provides an API for sending email. It is built on
top of the Java Mail API, which it aims to simplify.

While this is the first official release for Commons Email, the code
itself has been available through the commons sandbox and the commons
proper for a very long time and is considered mature and stable by the
developers.

Commons Email is available as source and binary from the Apache Mirror
System through its download page at 

http://jakarta.apache.org/site/downloads/downloads_commons-email.cgi

It will also be available from the Apache Maven repository at
http://www.apache.org/dist/java-repository/ and the Maven main
repository at http://www.ibiblio.org/maven/.

Documentation, Javadocs and further information can be found at 

http://jakarta.apache.org/commons/email/


The Commons Email team





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



svn commit: r291965 - in /jakarta/commons/proper/email/trunk: project.properties project.xml xdocs/changes.xml

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 07:39:55 2005
New Revision: 291965

URL: http://svn.apache.org/viewcvs?rev=291965&view=rev
Log:
1.0 is tagged and rolled. Let's go for 1.1...


Modified:
jakarta/commons/proper/email/trunk/project.properties
jakarta/commons/proper/email/trunk/project.xml
jakarta/commons/proper/email/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/email/trunk/project.properties
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/project.properties?rev=291965&r1=291964&r2=291965&view=diff
==
--- jakarta/commons/proper/email/trunk/project.properties (original)
+++ jakarta/commons/proper/email/trunk/project.properties Tue Sep 27 07:39:55 
2005
@@ -25,7 +25,7 @@
 
maven.repo.remote=http://www.ibiblio.org/maven/,http://www.apache.org/dist/java-repository/
 maven.remote.group=apcvs
 
-maven.repo.list=apache
+maven.repo.list=commons-unreleased
 
 # Repository for official releases
 maven.repo.apache=scp://cvs.apache.org

Modified: jakarta/commons/proper/email/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/project.xml?rev=291965&r1=291964&r2=291965&view=diff
==
--- jakarta/commons/proper/email/trunk/project.xml (original)
+++ jakarta/commons/proper/email/trunk/project.xml Tue Sep 27 07:39:55 2005
@@ -19,7 +19,7 @@
 Commons Email
 commons-email
 commons-email
-1.0
+1.1-dev
 
 
   The Apache Software Foundation
@@ -48,7 +48,7 @@
 people.apache.org
 /www/jakarta.apache.org/commons/email/
 cvs.apache.org
-
/www/www.apache.org/dist/jakarta/commons/email/
+
/www/cvs.apache.org/dist/jakarta/commons/email/
 
 
scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/email/trunk
 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk

Modified: jakarta/commons/proper/email/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/xdocs/changes.xml?rev=291965&r1=291964&r2=291965&view=diff
==
--- jakarta/commons/proper/email/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/email/trunk/xdocs/changes.xml Tue Sep 27 07:39:55 
2005
@@ -21,6 +21,7 @@
   
 
   
+
 
 
   



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



svn commit: r291963 - /jakarta/commons/proper/email/tags/EMAIL_1_0/trunk/

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 07:37:36 2005
New Revision: 291963

URL: http://svn.apache.org/viewcvs?rev=291963&view=rev
Log:
commons-email 1.0

Added:
jakarta/commons/proper/email/tags/EMAIL_1_0/trunk/
  - copied from r291962, jakarta/commons/proper/email/trunk/


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



svn commit: r291962 - /jakarta/commons/proper/email/trunk/project.properties

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 07:36:41 2005
New Revision: 291962

URL: http://svn.apache.org/viewcvs?rev=291962&view=rev
Log:
Maven now uses a different way to deploy artifacts. 


Modified:
jakarta/commons/proper/email/trunk/project.properties

Modified: jakarta/commons/proper/email/trunk/project.properties
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/project.properties?rev=291962&r1=291961&r2=291962&view=diff
==
--- jakarta/commons/proper/email/trunk/project.properties (original)
+++ jakarta/commons/proper/email/trunk/project.properties Tue Sep 27 07:36:41 
2005
@@ -22,8 +22,18 @@
 # Version: $Id$
 #
 # #
-# must have this for subversion changelog reports
-# maven.changelog.factory=org.apache.maven.svnlib.SvnChangeLogFactory
+maven.repo.remote=http://www.ibiblio.org/maven/,http://www.apache.org/dist/java-repository/
+maven.remote.group=apcvs
+
+maven.repo.list=apache
+
+# Repository for official releases
+maven.repo.apache=scp://cvs.apache.org
+maven.repo.apache.directory=/www/www.apache.org/dist/java-repository
+
+# Repository for alpha, beta, release candidate releases
+maven.repo.commons-unreleased=scp://cvs.apache.org
+maven.repo.commons-unreleased.directory=/www/cvs.apache.org/dist/jakarta/commons/java-repository
 
 # Used to generate the checkstyle reports
 maven.checkstyle.properties=conf/checkstyle.xml



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



svn commit: r291961 - /jakarta/commons/proper/email/trunk/KEYS

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 07:36:10 2005
New Revision: 291961

URL: http://svn.apache.org/viewcvs?rev=291961&view=rev
Log:
Add my public key for 1.0 release (same as the KEYS file on the
distribution site).


Modified:
jakarta/commons/proper/email/trunk/KEYS

Modified: jakarta/commons/proper/email/trunk/KEYS
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/KEYS?rev=291961&r1=291960&r2=291961&view=diff
==
--- jakarta/commons/proper/email/trunk/KEYS (original)
+++ jakarta/commons/proper/email/trunk/KEYS Tue Sep 27 07:36:10 2005
@@ -1,52 +1,132 @@
-This file contains the PGP keys of various developers.

-Please don't use them for email unless you have to. Their main

-purpose is code signing.

-

-Users: pgp < KEYS

-Developers: 

-   pgp -kxa  and append it to this file.

-   (pgpk -ll  && pgpk -xa ) >> this file.

-(gpg --list-sigs 

- && gpg --armor --export ) >> this file.

-Use gpg --armour --detach-sign --default-key=YOURNAME FILE

-

-

-pub   1024D/6883C846 2004-08-03
-uid  Dion Gillard <[EMAIL PROTECTED]>
-sig 36883C846 2004-08-03  Dion Gillard <[EMAIL PROTECTED]>
-sig 3   P409AC31C 2004-10-29  Matthew Wakeling (Home address) <[EMAIL 
PROTECTED]>
-sig  E4136392 2004-10-29  Noel J. Bergman <[EMAIL PROTECTED]>
-sig  6883850D 2004-10-29  Noel J. Bergman <[EMAIL PROTECTED]>
-sub   1024g/32E95995 2004-08-03
-sig  6883C846 2004-08-03  Dion Gillard <[EMAIL PROTECTED]>
+pub  1024D/961C9460 2003-08-17 Henning P. Schmiedehausen (CODE SIGNING KEY) 
<[EMAIL PROTECTED]>
+sub  1024g/39B0D39A 2003-08-17
+
+pub  1024D/6883C846 2004-08-03 Dion Gillard <[EMAIL PROTECTED]>
+sub  1024g/32E95995 2004-08-03
 
 -BEGIN PGP PUBLIC KEY BLOCK-
-Version: GnuPG v1.4.0 (Cygwin)
+Version: GnuPG v1.2.7 (GNU/Linux)
 
-mQGiBEEPHzkRBACqqH+A9BFBQ3/NSOfj0Ds/8QXqG7D66lVxrvazWRpjh25Ov7Z0
-36t4JN2gk/vMl8UCC+vpysUwofWJLzDOWIpYuA5ogTZRny315DbnTsHsdbkkOQ9y
-ESkhcQZifAMC2lrLTMilqy53YKd+RabLoj7WEaFXj59u3+Bx8Xf9iNOPYwCgzM++
-pE3aFZMFi+SLzHFtJk55/VkD/AxIbLKouwjCuYflQSovPgmHJhP2pnVJMa1UgXv9
-PYnpjrBBfkxDVUxEu74xZN7Ap/wssYrE5K7NMGv+PT3cutobOXVPpg3/zecm48Xb
-Y7b+Cvsk1PtsmntT2VGpLXnKUhGy6Ewrzi/Wuix4Z/zalwIyvb231wXsQc67gGQo
-DQQoA/9nbqYlVBbde4/ELRuxMOVXghkw17guzSZXs+0je0oOnHTACG5x4RIwh0CV
-sy0gn6D6BSV/ECMRw7R96QrdQnqOExjBUdenoIkmTD/phWKoqangifRtRflQ86gm
-V60zORF7h40gOs1+Pygo8TmkarQ+j5fgNf/0Heo8aNsh+0REerQeRGlvbiBHaWxs
-YXJkIDxkaW9uQGFwYWNoZS5vcmc+iF4EExECAB4FAkEPHzkCGwMGCwkIBwMCAxUC
-AwMWAgECHgECF4AACgkQqAM/2WiDyEbUAgCgu5e9P9oDJEbO9r7lw5Sqa9HBw70A
-nRuIZtgEKTQ4Z1Tpb10eI6k/IXx8iIUEExECAEUFAkGCbR0+Gmh0dHA6Ly93d3cu
-d2FrZWxpbmcuaG9tZWlwLm5ldC9+bW53MjEvcGdwX3NpZ25pbmdfcG9saWN5Lmh0
-bWwACgkQ94ap8UCawxz8WQCg2TBcsCe5GFS8qfzBJOSqd7kKmU8AnRg6QAuc0PlO
-EswOqwTGHIZWu/iFiEYEEBECAAYFAkGCnAQACgkQAQVmvOQTY5Ld5wCfYdRgFLr2
-fQCJ2X9w+FZWADPNsdYAoIMpmSImeJmIb1WdMOjKOY++lHwuiEYEEBECAAYFAkGC
-oK0ACgkQpf8y7miDhQ1m7gCg96X4FLRc1MPf/fL7eiQKG439EGoAoP4UlvrPzubK
-FsgaS2lC78D+pQXTuQENBEEPHz4QBADuu3MH0oB2sGRGhXEDa3EZBdHljp4aFTSZ
-K6MAMAliy7eRTSJcORbHr2x6Q0wFNBd6r+TSntWG5NWrhwcxCmQRH3hlbZsD7SY1
-OqClht/XSv/tiRDQ+oAVTVLqThE3bkcUYeoVHzgfqT86i1NmGcnyIJj5r8yBA1sV
-Dyp42ADiYwADBQP+Nq8InUWlienKgexPDFAuXXPr9lg6iUMRpEqebpqSDhpeDTvk
-mvq1xaUT9Yt+FDX7db/1d1i3fJTIX7dydo/2Vw70f7UODNvWMtQTveaEXchXiH3y
-62w8nY3ZogMGjKH5DDXqev2SelDSvGcXEWsGZxPvuwh0cGuahyCigYpWKa6ISQQY
-EQIACQUCQQ8fPgIbDAAKCRCoAz/ZaIPIRltTAJ4hZeSWTyds0CJdEN9z66UpdcZa
-+wCgyTaygSUChtQxApENteggXBYXm+4=
-=fgDj
+mQGiBD8/Y6kRBACuFflYjXDca3LAa4/Ole2bdzbqFhow99AWKPent17CQN+fuwzA
+2COpAO42iFanlfKu/ELyaI3VeC03y7U27PCQ2zWIkI4V4aHXgvfyrEvmTScHr0zF
+yCfS8jR/Ach9yvHcFehX7bQOGMe4b6L11dROCkCH+torHCyPX02JWfTI1wCg6LJe
+yxZBUeDOtDmH1mDHS4SEfTkD/2darDfJ+ZXgvnxc6Y8zf5pwJ20Ora7VpUzoxca4
+sMByesoKo3JYvcLW8nLkIOcp3aUIsgcvU3MOSj6l6nPdNq35Hv8EdWJNYOhWfQz7
+YEOqe1/GPn5udZa9VysH4Wa+6ycCzInq0U7FRf1Gl6OwEOKpI6/5StB/8Exgud8N
+qzDiA/93Th+K7Xmox4gtVzS3r0f5scIVDYM4D7oIR5YLmYQdbjZ8aT5vvoeGxsF8
+h2/bEXYxrVImjTFfzGmv88zdO/KUYjtMCe3ecikfDytMyGnf42RGB/ChrlxQeYb+
+aqqDxIR0PHyUSt+GSm+Jlx+KhbFZV+dxGikPiez6IQg26LPEprRBSGVubmluZyBQ
+LiBTY2htaWVkZWhhdXNlbiAoQ09ERSBTSUdOSU5HIEtFWSkgPGhlbm5pbmdAYXBh
+Y2hlLm9yZz6IWQQTEQIAGQUCPz9jqQQLBwMCAxUCAwMWAgECHgECF4AACgkQ8gLL
+gpYclGBfFwCeI5pybPOlTPhtKqiNSp1cG/0ibRsAnikG1lCeToNp6+M6s3hbgyeT
+B6ytiEYEExECAAYFAkGW2d4ACgkQFT+gzXWmdpKSUwCfRjmwUQUBuEX1W1/KuHw4
+z5ilHxkAnRWz0bLvlym7jlX9XhTKzQ6HaPifiEYEExECAAYFAkGW3CQACgkQMoZO
+QZyFIisxogCeJsmxy5ocGKudYZmYzSW7Bm5dVkAAoIYtg9wSgPjFKi1H/9Jrdnze
+19+OiJwEEwECAAYFAkGZg54ACgkQMaY9luwUC4FluQP+PkkHlil2WMl/F23uvNdC
+Pd3LUcBNcYX+aLDQn1nhk+ihMseewoU4e84dhXiwYIQ7EJbqMannFHUidTBkXrpy
+LONf+ADCccBi8KJs5NK6H2cvRexiRkwosmKPz3WKxyQPNlQ/xch59RGOdfBI0huQ
+VCvg57ZdaeWuKRAN1e6c3TCIRgQTEQIABgUCQZqIcwAKCRAwkXlyKYvH0NTKAJ0Z
+bnI9eEsqXvk6Vtd/2yNStv1RKwCgpjmfvoCOAN5js0d6yW3Vp0pSIlGIRgQTEQIA
+BgUCQaVa7gAKCRCXZ4pyLS2qUjqYAKD91AgJsOqvrrG+W0V426Sb5yotuwCgw+Wo
+Vq5pGdyzCVxY0P3DWgPye3iIRgQSEQIABgUCQaBtJAAKCRAHYXOxkoTEUndkAJ9Z
++

DO NOT REPLY [Bug 35338] - [net] FTPClient.listFiles() hangs on Red Hat Linux

2005-09-27 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=35338





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 15:49 ---
I have the same issue trying to store a file to the server. My OS is RH 2.1AS
the ftp server is BulletProof FTP running on W2003. The application is running
fine on Windows. I tried to downgrade to 1.3.0 with the same result.

-- 
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: r291935 - /jakarta/commons/proper/email/trunk/project.xml

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 06:29:29 2005
New Revision: 291935

URL: http://svn.apache.org/viewcvs?rev=291935&view=rev
Log:
No more reason to keep these reports out. Maven does them just fine
from Subversion.


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

Modified: jakarta/commons/proper/email/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/project.xml?rev=291935&r1=291934&r2=291935&view=diff
==
--- jakarta/commons/proper/email/trunk/project.xml (original)
+++ jakarta/commons/proper/email/trunk/project.xml Tue Sep 27 06:29:29 2005
@@ -231,11 +231,11 @@
   
 
 
-
+maven-changelog-plugin
 maven-changes-plugin
 maven-checkstyle-plugin
-
-
+maven-developer-activity-plugin
+maven-file-activity-plugin
 maven-javadoc-plugin
 maven-junit-report-plugin
 maven-jxr-plugin



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



DO NOT REPLY [Bug 36819] - [configuration] Interpolation with multivalued keys returns nested strings instead of flattend string and interpolate doesn't work with all getters

2005-09-27 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=36819





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 15:10 ---
I've commited my changes introducing the new interpolate() method and performing
the interpolation in all getters.

-- 
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: r291931 - in /jakarta/commons/proper/configuration/trunk: src/java/org/apache/commons/configuration/ src/test/org/apache/commons/configuration/ xdocs/

2005-09-27 Thread ebourg
Author: ebourg
Date: Tue Sep 27 06:06:23 2005
New Revision: 291931

URL: http://svn.apache.org/viewcvs?rev=291931&view=rev
Log:
Implemented variable interpolation for all getters

Modified:

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java

jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java

jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestBaseConfiguration.java

jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestDataConfiguration.java
jakarta/commons/proper/configuration/trunk/xdocs/changes.xml

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java?rev=291931&r1=291930&r2=291931&view=diff
==
--- 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java
 (original)
+++ 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractConfiguration.java
 Tue Sep 27 06:06:23 2005
@@ -131,6 +131,25 @@
 }
 
 /**
+ * Returns the interpolated value. Non String values are returned without 
change.
+ *
+ * @param value the value to interpolate
+ *
+ * @return returns the value with variables substituted
+ */
+protected Object interpolate(Object value)
+{
+if (value instanceof String)
+{
+return interpolate((String) value);
+}
+else
+{
+return value;
+}
+}
+
+/**
  * Recursive handler for multple levels of interpolation.
  * 
  * When called the first time, priorVariables should be null.
@@ -388,7 +407,7 @@
 {
 try
 {
-return PropertyConverter.toBoolean(value);
+return PropertyConverter.toBoolean(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -436,7 +455,7 @@
 {
 try
 {
-return PropertyConverter.toByte(value);
+return PropertyConverter.toByte(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -484,7 +503,7 @@
 {
 try
 {
-return PropertyConverter.toDouble(value);
+return PropertyConverter.toDouble(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -532,7 +551,7 @@
 {
 try
 {
-return PropertyConverter.toFloat(value);
+return PropertyConverter.toFloat(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -587,7 +606,7 @@
 {
 try
 {
-return PropertyConverter.toInteger(value);
+return PropertyConverter.toInteger(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -635,7 +654,7 @@
 {
 try
 {
-return PropertyConverter.toLong(value);
+return PropertyConverter.toLong(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -683,7 +702,7 @@
 {
 try
 {
-return PropertyConverter.toShort(value);
+return PropertyConverter.toShort(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -727,7 +746,7 @@
 {
 try
 {
-return PropertyConverter.toBigDecimal(value);
+return PropertyConverter.toBigDecimal(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -771,7 +790,7 @@
 {
 try
 {
-return PropertyConverter.toBigInteger(value);
+return PropertyConverter.toBigInteger(interpolate(value));
 }
 catch (ConversionException e)
 {
@@ -887,12 +906,7 @@
 Iterator it = l.iterator();
 while (it.hasNext())
 {
-Object element = it.next();
-if (element instanceof String) {
-list.add(interpolate((String) element));
-} else {
-list.add(element);
-}
+list.add(interpolate(it.next()));
 }
 
 }

Modified: 
jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/DataConfiguration.java
URL: 
http

svn commit: r291930 - /jakarta/commons/proper/email/trunk/project.xml

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 06:06:23 2005
New Revision: 291930

URL: http://svn.apache.org/viewcvs?rev=291930&view=rev
Log:
- Update to 1.0
- Fix Mailinglist links
- Add version tag
- update findbugs dep to 0.9.2 to make maven 1.1 happy.


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

Modified: jakarta/commons/proper/email/trunk/project.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/project.xml?rev=291930&r1=291929&r2=291930&view=diff
==
--- jakarta/commons/proper/email/trunk/project.xml (original)
+++ jakarta/commons/proper/email/trunk/project.xml Tue Sep 27 06:06:23 2005
@@ -19,7 +19,7 @@
 Commons Email
 commons-email
 commons-email
-1.0-rc9-dev
+1.0
 
 
   The Apache Software Foundation
@@ -46,26 +46,33 @@
 Commons Email
 http://issues.apache.org/bugzilla/
 people.apache.org
-
/www/jakarta.apache.org/commons/${pom.artifactId.substring(8)}/
-
/www/jakarta.apache.org/builds/jakarta-commons/${pom.artifactId.substring(8)}/
+/www/jakarta.apache.org/commons/email/
+cvs.apache.org
+
/www/www.apache.org/dist/jakarta/commons/email/
 
-
scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk
-
http://svn.apache.org/repos/asf/jakarta/commons/proper/${pom.artifactId.substring(8)}/trunk
+
scm:svn:http://svn.apache.org/repos/asf/jakarta/commons/proper/email/trunk
+
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk
 
-
+
+  
+1.0
+1.0
+EMAIL_1_0
+  
+
 
 
 
 Commons Dev List
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
-http://mail-archives.apache.org/eyebrowse/[EMAIL 
PROTECTED]
+
http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/
 
 
 Commons User List
 [EMAIL PROTECTED]
 [EMAIL PROTECTED]
-http://mail-archives.apache.org/eyebrowse/[EMAIL 
PROTECTED]
+
http://mail-archives.apache.org/mod_mbox/jakarta-commons-user/
 
 
 
@@ -193,7 +200,7 @@
 
 maven-plugins
 maven-findbugs-plugin
-0.9.1
+0.9.2
 
http://maven-plugins.sourceforge.net/maven-findbugs-plugin/
 plugin
 



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



svn commit: r291929 - /jakarta/commons/proper/email/trunk/build.xml

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 06:05:11 2005
New Revision: 291929

URL: http://svn.apache.org/viewcvs?rev=291929&view=rev
Log:
Rebuild using 1.0 release POM


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

Modified: jakarta/commons/proper/email/trunk/build.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/build.xml?rev=291929&r1=291928&r2=291929&view=diff
==
--- jakarta/commons/proper/email/trunk/build.xml (original)
+++ jakarta/commons/proper/email/trunk/build.xml Tue Sep 27 06:05:11 2005
@@ -1,4 +1,5 @@
 
+
 
 
-
+
 
 
   
@@ -41,7 +42,7 @@
   
   
   
-  
+  
   
   
   
@@ -52,14 +53,12 @@
   
   
   
-
+
 
 
 
 
 
-
-
   
   
 
@@ -191,7 +190,7 @@
 
 
 
-
+
 
 
   
@@ -203,13 +202,13 @@
   
 
 
-http://www.ibiblio.org/maven/javamail/jars/javamail-1.3.2.jar";>
+http://www.ibiblio.org/maven/javamail/jars/javamail-1.3.3.jar";>
 
   
   
 
 
-
+
 
   
   
@@ -236,19 +235,7 @@
 
 
   
-  
-
-
-http://www.ibiblio.org/maven/maven-plugins/plugins/maven-findbugs-plugin-0.9.1.jar";>
-
-  
-  
-
-
-
-
-  
-  
+  
   
   
 



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



svn commit: r291928 - /jakarta/commons/proper/email/trunk/xdocs/changes.xml

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 06:04:52 2005
New Revision: 291928

URL: http://svn.apache.org/viewcvs?rev=291928&view=rev
Log:
Version 1.0 released


Modified:
jakarta/commons/proper/email/trunk/xdocs/changes.xml

Modified: jakarta/commons/proper/email/trunk/xdocs/changes.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/xdocs/changes.xml?rev=291928&r1=291927&r2=291928&view=diff
==
--- jakarta/commons/proper/email/trunk/xdocs/changes.xml (original)
+++ jakarta/commons/proper/email/trunk/xdocs/changes.xml Tue Sep 27 06:04:52 
2005
@@ -21,7 +21,8 @@
   
 
   
-
+
+
   
 Make sure that the unit tests don't fail under JDK 1.3.x with 
 java.net.BindException: Address already in use



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



svn commit: r291927 - /jakarta/commons/proper/email/trunk/xdocs/index.xml

2005-09-27 Thread henning
Author: henning
Date: Tue Sep 27 06:04:37 2005
New Revision: 291927

URL: http://svn.apache.org/viewcvs?rev=291927&view=rev
Log:
Update status information. Add Bug and Download links.


Modified:
jakarta/commons/proper/email/trunk/xdocs/index.xml

Modified: jakarta/commons/proper/email/trunk/xdocs/index.xml
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/email/trunk/xdocs/index.xml?rev=291927&r1=291926&r2=291927&view=diff
==
--- jakarta/commons/proper/email/trunk/xdocs/index.xml (original)
+++ jakarta/commons/proper/email/trunk/xdocs/index.xml Tue Sep 27 06:04:37 2005
@@ -59,25 +59,32 @@
 
 
  
-  After a very long time in the commons sandbox, this code is ready 
for the 1.0 release.
-  If you like the code and need new features, join the commons-dev mailing 
list!
+  Version 1.0 has been released on 2005-09-27.
  
 
 
 
 
-   
-   
-Commons Email is (at long last) approaching it's first official release.
-This may be the first official release of commons email but the code base
-is already mature and stable. There is therefore no reason why this code
-cannot be recommended for production.
-   
-   
-The sixth release candidate is now available for
-download
-   
-   
+  
+
+  Commons Email 1.0 has been released on 2005-09-27.
+
+
+  http://jakarta.apache.org/site/downloads/downloads_commons-email.cgi";>Download
 Binaries and Source.
+
+  
+
+
+
+
+Bugs may be reported via the Bugzilla Management system. The following links 
may prove useful:
+
+
+ http://issues.apache.org/bugzilla/createaccount.cgi";>Create a 
Bugzilla account
+ http://issues.apache.org/bugzilla/enter_bug.cgi?product=Commons&component=Email&version=1.0";>Submit
 a bug report
+ http://issues.apache.org/bugzilla/buglist.cgi?bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Commons&component=Email&short_desc=&short_desc_type=allwordssubstr&long_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time";>All
 open Email bugs
+ http://issues.apache.org/bugzilla/buglist.cgi?bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&email1=&emailtype1=substring&emailassigned_to1=1&email2=&emailtype2=substring&emailreporter2=1&bugidtype=include&bug_id=&changedin=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&product=Commons&component=Email&short_desc=&short_desc_type=allwordssubstr&long_desc=&long_desc_type=allwordssubstr&bug_file_loc=&bug_file_loc_type=allwordssubstr&keywords=&keywords_type=anywords&field0-0-0=noop&type0-0-0=noop&value0-0-0=&cmdtype=doit&newqueryname=&order=Reuse+same+sort+as+last+time";>All
 Email bugs
+
 
 
 



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



DO NOT REPLY [Bug 36819] - [configuration] Interpolation with multivalued keys returns nested strings instead of flattend string and interpolate doesn't work with all getters

2005-09-27 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=36819





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 14:53 ---
My concern about interpolating in resolveContainerStore is that it will be only
useful for scalar getters (getInt(), getFloat()...) and not for list and array
getters, especially in DataConfiguration, which use getProperty(). That would
look a bit odd to call PropertyConverter.toInteger(value) in getInteger() and
PropertyConverter.toInteger(interpolate(value)) in getIntegerList(). One might
think by comparing the two methods that getInteger() doesn't not perform the
interpolation.

I agree that resolveContainerStore() is definitely not an explicit name. Its
logic could be moved in PropertyConverter as a toScalar(Object) or a
getHead(Object) method. Then we could remove resolveContainerStore() and call
directly the new method in PropertyConverter.


-- 
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: [VOTE][RESULT] Release Commons Email 1.0

2005-09-27 Thread Henning P. Schmiedehausen
Eric Pugh <[EMAIL PROTECTED]> writes:

>It looks like Commons Email 1.0 based on Henning's RC8 is go for launch!

Thanks! Start rolling the release right now. Just in time for the
Turbine 2.3.2 release. :-)

Best regards
Henning



>The following people voted +1 for the release:
>Dion Gillard +1
>Stephen Colebourne +1
>Henning Schmiedehausen +1
>Eric Pugh +1

>The following people voted +0 for the release:
>robert burrel donkin +0
>phil steitz +0

>There were no -1.

>Henning has generously volunteered to be the release manager, and has  
>dealt with some of the comments raised by the +0 committers.

>Eric Pugh



>On Sep 19, 2005, at 2:13 AM, Henning P. Schmiedehausen wrote:

>> Phil Steitz <[EMAIL PROTECTED]> writes:
>>
>>
>>> Agree with Robert's comments and am also +0, with three additional  
>>> comments=
>>> :
>>>
>>
>>
>>> * The ant build depends javamail 1.3.2, while the maven POM  
>>> references 1.3.=
>>> 3.=20
>>> The ant build should be updated to match the POM
>>>
>>
>> Ok, will do.
>>
>>
>>> * It would be good to provide some instructions in the README,  
>>> release note=
>>> s=20
>>> or web site on what users have to do to get javamail and  
>>> activation manuall=
>>> y=20
>>> deployed locally so the maven and ant builds work.
>>>
>>
>> There is some information on how to get javamail and activation in
>> RELEASE-NOTES.txt. If more information is wanted, patches are always
>> welcome.
>>
>>
>>> * Before cutting the final release, you should update the  
>>> index.xml page to=
>>> =20
>>> eliminate the reference to RCs
>>>
>>
>> Yes. The release will be "based on RC8", not "RC8 as 1.0". I will have
>> to change the references from RC8 to 1.0 anyway. Currently, I'm
>> waiting for Eric to call the vote to close and post a result.
>>
>> Best regards
>> Henning
>>
>> -- 
>> Dipl.-Inf. (Univ.) Henning P. Schmiedehausen  INTERMETA GmbH
>> [EMAIL PROTECTED]+49 9131 50 654 0   http://www.intermeta.de/
>>
>> RedHat Certified Engineer -- Jakarta Turbine Development  -- hero  
>> for hire
>>Linux, Java, perl, Solaris -- Consulting, Training, Development
>>
>>   4 - 8 - 15 - 16 - 23 - 42
>>
>> -
>> 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]

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen  INTERMETA GmbH
[EMAIL PROTECTED]+49 9131 50 654 0   http://www.intermeta.de/

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero for hire
   Linux, Java, perl, Solaris -- Consulting, Training, Development

  4 - 8 - 15 - 16 - 23 - 42

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



DO NOT REPLY [Bug 36819] - [configuration] Interpolation with multivalued keys returns nested strings instead of flattend string and interpolate doesn't work with all getters

2005-09-27 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=36819





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 14:29 ---
An Object interpolate(Object) method will be needed in future anyway, that's
fine with me.

What resolveContainerStore() does ATM is to prepare a property value as far as
possible, so that primitive getters only need to perform a type conversion.
Performing interpolation is part of this task IMO. I would prefer having all
these steps at a central place to reduce code duplication.

However "resolveContainerStore" is surely the wrong name for this method.
Because of backwards compatibility we cannot simply change the name. Should we
deprecate the method and instead introduce a new one with a better name?

-- 
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]



[VOTE][RESULT] Release Commons Email 1.0

2005-09-27 Thread Eric Pugh

It looks like Commons Email 1.0 based on Henning's RC8 is go for launch!

The following people voted +1 for the release:
Dion Gillard +1
Stephen Colebourne +1
Henning Schmiedehausen +1
Eric Pugh +1

The following people voted +0 for the release:
robert burrel donkin +0
phil steitz +0

There were no -1.

Henning has generously volunteered to be the release manager, and has  
dealt with some of the comments raised by the +0 committers.


Eric Pugh



On Sep 19, 2005, at 2:13 AM, Henning P. Schmiedehausen wrote:


Phil Steitz <[EMAIL PROTECTED]> writes:


Agree with Robert's comments and am also +0, with three additional  
comments=

:




* The ant build depends javamail 1.3.2, while the maven POM  
references 1.3.=

3.=20
The ant build should be updated to match the POM



Ok, will do.


* It would be good to provide some instructions in the README,  
release note=

s=20
or web site on what users have to do to get javamail and  
activation manuall=

y=20
deployed locally so the maven and ant builds work.



There is some information on how to get javamail and activation in
RELEASE-NOTES.txt. If more information is wanted, patches are always
welcome.


* Before cutting the final release, you should update the  
index.xml page to=

=20
eliminate the reference to RCs



Yes. The release will be "based on RC8", not "RC8 as 1.0". I will have
to change the references from RC8 to 1.0 anyway. Currently, I'm
waiting for Eric to call the vote to close and post a result.

Best regards
Henning

--
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen  INTERMETA GmbH
[EMAIL PROTECTED]+49 9131 50 654 0   http://www.intermeta.de/

RedHat Certified Engineer -- Jakarta Turbine Development  -- hero  
for hire

   Linux, Java, perl, Solaris -- Consulting, Training, Development

  4 - 8 - 15 - 16 - 23 - 42

-
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][restarted] Release Commons Email 1.0

2005-09-27 Thread Eric Pugh

Get my +1 in the email record.



[X  ] +1 Release Email 1.0 based on RC8
[  ] +0 General support but not definitive
[  ] -0 Unhappy about the release but not definitive (We want to  
see RC9, RC10, and R11 first!)

[  ] -1 Do not release Email 1.0 based on RC8

Cheers,
Eric Pugh


On Sep 1, 2005, at 8:05 AM, Eric Pugh wrote:




--   
8<-


[X ] +1 Release Email 1.0
[ ] +0 General support but not definitive
[ ] -0 Unhappy about the release but not definitive
[ ] -1 Do not release Email 1.0


Thanks!

Eric Pugh





 
-

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] New Committer - Jörg Schaible

2005-09-27 Thread Eric Pugh

A very enthusiastic +1, it is about time!


On Sep 25, 2005, at 4:40 PM, Phil Steitz wrote:

I would like to nominate Jörg Schaible as an Apache Jakarta Commons  
Committer.


Jörg has provided patches to [configuration], [id] and [i18n] and has
contributed to discussion on commons-dev for over a year now.  He is
interested in contributing to [lang] and [io], as well as helping to
get [id] graduated from the sandbox and released.  I think he would
make a valuable addition to the commons committers.

Votes please, closing Wednesday 28 September, Miidnight GMT.

Phil

-- 
--

[ ] +1, let him commit!
[ ] +0
[ ] -0
[ ] -1, no, because

-
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]



DO NOT REPLY [Bug 36819] - [configuration] Interpolation with multivalued keys returns nested strings instead of flattend string and interpolate doesn't work with all getters

2005-09-27 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=36819





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 14:12 ---
Interesting idea, I'm not sure it's wise to overload the responsability of
resolveContainerStore() though. I have added an interpolate(Object) method that
returns the value as is if it's not a String. That makes the code shorter and
keeps it readable:

return PropertyConverter.toInteger(interpolate(value));



-- 
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]



[lang] VariableFormatter-Patch

2005-09-27 Thread Tom Schindl

Hi,

is it possible to change the visibility of constants in 
VariableFormatter protected. This way one could easily sub-class the 
VariableFormatter and write its own. The appended patch does that.


Tom
Index: 
E:/eclipse-workspaces/beso/jakart-lang/src/java/org/apache/commons/lang/text/VariableFormatter.java
===
--- 
E:/eclipse-workspaces/beso/jakart-lang/src/java/org/apache/commons/lang/text/VariableFormatter.java
 (revision 291638)
+++ 
E:/eclipse-workspaces/beso/jakart-lang/src/java/org/apache/commons/lang/text/VariableFormatter.java
 (working copy)
@@ -465,13 +465,13 @@
 }
 
 /** Constant for the default escape character. */
-static final char DEFAULT_ESCAPE = '$';
+protected static final char DEFAULT_ESCAPE = '$';
 
 /** Constant for the default variable prefix. */
-static final String DEFAULT_PREFIX = "${";
+protected static final String DEFAULT_PREFIX = "${";
 
 /** Constant for the default variable suffix. */
-static final String DEFAULT_SUFFIX = "}";
+protected static final String DEFAULT_SUFFIX = "}";
 
 /**
  * Replaces the occurrences of all variables in the given source data by 
their current values obtained from the

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

[EMAIL PROTECTED]: Project commons-jelly (in module commons-jelly) failed

2005-09-27 Thread commons-jelly 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 has an issue affecting its community integration.
This issue affects 40 projects,
 and has been outstanding for 68 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 :  Commons Jelly
- commons-jelly-tags-ant :  Commons Jelly
- commons-jelly-tags-antlr :  Commons Jelly
- commons-jelly-tags-avalon :  Commons Jelly
- commons-jelly-tags-bean :  Commons Jelly
- commons-jelly-tags-beanshell :  Commons Jelly
- commons-jelly-tags-betwixt :  Commons Jelly
- commons-jelly-tags-bsf :  Commons Jelly
- commons-jelly-tags-define :  Commons Jelly
- commons-jelly-tags-dynabean :  Commons Jelly
- commons-jelly-tags-email :  Commons Jelly
- commons-jelly-tags-fmt :  Commons Jelly
- commons-jelly-tags-html :  Commons Jelly
- commons-jelly-tags-http :  Commons Jelly
- commons-jelly-tags-interaction :  Commons Jelly
- commons-jelly-tags-jetty :  Commons Jelly
- commons-jelly-tags-jface :  Commons Jelly
- commons-jelly-tags-jms :  Commons Jelly
- commons-jelly-tags-jmx :  Commons Jelly
- commons-jelly-tags-jsl :  Commons Jelly
- commons-jelly-tags-junit :  Commons Jelly
- commons-jelly-tags-log :  Commons Jelly
- commons-jelly-tags-memory :  Commons Jelly
- commons-jelly-tags-ojb :  Commons Jelly
- commons-jelly-tags-quartz :  Commons Jelly
- commons-jelly-tags-regexp :  Commons Jelly
- commons-jelly-tags-sql :  Commons Jelly
- commons-jelly-tags-swing :  Commons Jelly
- commons-jelly-tags-swt :  Commons Jelly
- commons-jelly-tags-threads :  Commons Jelly
- commons-jelly-tags-util :  Commons Jelly
- commons-jelly-tags-validate :  Commons Jelly
- commons-jelly-tags-xml :  Commons Jelly
- commons-jelly-tags-xmlunit :  Commons Jelly
- commons-latka :  Functional Testing Suite
- jaxme2
- jaxmeapi
- jaxmepm
- jaxmexs
- maven :  Project Management Tools


Full details are available at:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/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-27092005.jar] identifier set to project name
 -DEBUG- Dependency on jakarta-servletapi-5-servlet exists, no need to add for 
property maven.jar.servletapi.
 -DEBUG- Dependency on jakarta-taglibs-standard exists, no need to add for 
property maven.jar.jstl.
 -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/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/target/test-reports
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/gump_work/build_commons-jelly_commons-jelly.html
Work Name: build_commons-jelly_commons-jelly (Type: Build)
Work ended in a state of : Failed
Elapsed: 1 min 1 sec
Command Line: maven --offline jar 
[Working Directory: /usr/local/gump/public/workspace/commons-jelly]
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/jakarta-commons/cli/target/commons-cli-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/discovery/dist/commons-discovery.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-27092005.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/forehead/forehead-1.0-beta-5.jar:/usr/local/gump/public/workspace/jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar:/usr/local/gump/public/workspace/jakarta-taglibs/dist/standard/lib/jstl.jar:/usr/local/gump/packages/jaxen-1.1-beta-6/jaxen-1.1-beta-6.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar
-
[junit] Expected expression: ${s

[EMAIL PROTECTED]: Project commons-jelly (in module commons-jelly) failed

2005-09-27 Thread commons-jelly 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 has an issue affecting its community integration.
This issue affects 40 projects,
 and has been outstanding for 68 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 :  Commons Jelly
- commons-jelly-tags-ant :  Commons Jelly
- commons-jelly-tags-antlr :  Commons Jelly
- commons-jelly-tags-avalon :  Commons Jelly
- commons-jelly-tags-bean :  Commons Jelly
- commons-jelly-tags-beanshell :  Commons Jelly
- commons-jelly-tags-betwixt :  Commons Jelly
- commons-jelly-tags-bsf :  Commons Jelly
- commons-jelly-tags-define :  Commons Jelly
- commons-jelly-tags-dynabean :  Commons Jelly
- commons-jelly-tags-email :  Commons Jelly
- commons-jelly-tags-fmt :  Commons Jelly
- commons-jelly-tags-html :  Commons Jelly
- commons-jelly-tags-http :  Commons Jelly
- commons-jelly-tags-interaction :  Commons Jelly
- commons-jelly-tags-jetty :  Commons Jelly
- commons-jelly-tags-jface :  Commons Jelly
- commons-jelly-tags-jms :  Commons Jelly
- commons-jelly-tags-jmx :  Commons Jelly
- commons-jelly-tags-jsl :  Commons Jelly
- commons-jelly-tags-junit :  Commons Jelly
- commons-jelly-tags-log :  Commons Jelly
- commons-jelly-tags-memory :  Commons Jelly
- commons-jelly-tags-ojb :  Commons Jelly
- commons-jelly-tags-quartz :  Commons Jelly
- commons-jelly-tags-regexp :  Commons Jelly
- commons-jelly-tags-sql :  Commons Jelly
- commons-jelly-tags-swing :  Commons Jelly
- commons-jelly-tags-swt :  Commons Jelly
- commons-jelly-tags-threads :  Commons Jelly
- commons-jelly-tags-util :  Commons Jelly
- commons-jelly-tags-validate :  Commons Jelly
- commons-jelly-tags-xml :  Commons Jelly
- commons-jelly-tags-xmlunit :  Commons Jelly
- commons-latka :  Functional Testing Suite
- jaxme2
- jaxmeapi
- jaxmepm
- jaxmexs
- maven :  Project Management Tools


Full details are available at:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/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-27092005.jar] identifier set to project name
 -DEBUG- Dependency on jakarta-servletapi-5-servlet exists, no need to add for 
property maven.jar.servletapi.
 -DEBUG- Dependency on jakarta-taglibs-standard exists, no need to add for 
property maven.jar.jstl.
 -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/build.properties
 -INFO- Failed with reason build failed
 -DEBUG- Maven POM in: 
/usr/local/gump/public/workspace/commons-jelly/project.xml
 -DEBUG- Maven project properties in: 
/usr/local/gump/public/workspace/commons-jelly/project.properties
 -INFO- Project Reports in: 
/usr/local/gump/public/workspace/commons-jelly/target/test-reports
 -INFO- Failed to extract fallback artifacts from Gump Repository



The following work was performed:
http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/gump_work/build_commons-jelly_commons-jelly.html
Work Name: build_commons-jelly_commons-jelly (Type: Build)
Work ended in a state of : Failed
Elapsed: 1 min 1 sec
Command Line: maven --offline jar 
[Working Directory: /usr/local/gump/public/workspace/commons-jelly]
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/jakarta-commons/cli/target/commons-cli-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/discovery/dist/commons-discovery.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-27092005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-27092005.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/forehead/forehead-1.0-beta-5.jar:/usr/local/gump/public/workspace/jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar:/usr/local/gump/public/workspace/jakarta-taglibs/dist/standard/lib/jstl.jar:/usr/local/gump/packages/jaxen-1.1-beta-6/jaxen-1.1-beta-6.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar
-
[junit] Expected expression: ${s

DO NOT REPLY [Bug 36819] - [configuration] Interpolation with multivalued keys returns nested strings instead of flattend string and interpolate doesn't work with all getters

2005-09-27 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=36819





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 13:24 ---
Then it would be easier to call interpolate() directly inside the
resolveContainerStore() method, which is invoked by all primitive getters.

-- 
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]



DO NOT REPLY [Bug 36819] - [configuration] Interpolation with multivalued keys returns nested strings instead of flattend string and interpolate doesn't work with all getters

2005-09-27 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=36819





--- Additional Comments From [EMAIL PROTECTED]  2005-09-27 12:16 ---
I think Michael has a point regarding getInt("a") throwing an exception in this
example. We could fix this easily before revamping the interpolation system:

return PropertyConverter.toInteger(value);

turns into

return PropertyConverter.toInteger(value instanceof String ?
interpolate((String) value) : value);

for all getters in AbstractConfiguration and DataConfiguration.


-- 
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: [commons-build] Site build problem

2005-09-27 Thread Arnaud HERITIER
>
>
>
> This turned out to be a bug in the site.jsl. A patch has been applied
> to svn and this will be fixed in version 1.10 of the xdoc plugin.
> Here is an example site generated using the patched plugin and
> maven.xdoc.theme=classic
> maven.ui.banner.background=#fff
>
> http://people.apache.org/~psteitz/classic.html
>
> The nav entry "Commons Resources (Unofficial)" is too wide to fit (and
> maven.ui.navcol.width seems to no longer do anything); but otherwise
> this looks OK to me. Others may have different opinions; but if this
> looks good enough I would suggest that we tweak the menus, etc. to
> work with this setup and migrate away from using custom style sheets.
> We could get things working right away by just dropping the
> "type='header'" from the About Us menu.
>
> The big advantage of going this route is that we would then no longer
> need to maintain commons-site.jsl, nor to copy the stylesheets out to
> the distributions.
>
> Phil


Can you open an issue for the problem with "maven.ui.navcol.width" ?
We'll fix it (if possible) for the release 1.10

I think you removed the icons used to show "External Links" and "New
Windows". You should remove the legend.
maven.xdoc.legend=false

cheers,

Arnaud


DO NOT REPLY [Bug 36825] New: - Enhance LockableFileWriter to handle different character endocings.

2005-09-27 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=36825

   Summary: Enhance LockableFileWriter to handle different character
endocings.
   Product: Commons
   Version: 1.1 Final
  Platform: PC
OS/Version: Windows XP
Status: NEW
  Severity: normal
  Priority: P2
 Component: IO
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: [EMAIL PROTECTED]


Hi,

LockableFileWriter needs to be enhanced so that it can support different
character encodings. Below is my attempt at introducing this functionality based
on the existing class:

(Also, should LockableFileWriter be a decoration class?)

Cheers,

Andy

-- START CLASS --

package com.sita.ats.io;

import java.io.*;

import org.apache.commons.lang.StringUtils;

/**
 * FileWriter that will create and honor lock files to allow simple
 * cross thread file lock handling and allow writing to a given encoding.
 * If Writer attributes
 * are unspecified, the default behavior is to overwrite (rather than
 * to iAppend), and to use the value of the system property
 * java.io.tmpdir for the lock file directory.
 *
 * @version $Id: ULockableFileWriter.java,v 1.1 2005/09/27 07:23:33 andyl Exp $
 * @author Andy Lehane
 */
public class ULockableFileWriter extends Writer {

/** The extension for the lock file. */
private static final String LCK = ".lck";
/** The lock file. */
private File iLockFile;   // Initialises to null
/** The write used to write to the file. */
private Writer iWriter;// Initialises to null
/** Should we append to the file or not. */
private boolean iAppend; // Initialises to false
/** The encoding to use. */
private String iEncoding; // Initialises to null 

/**
 * Constructs a LockableFileWriter. If the file exists, it is overwritten.
 * @param fileName file to write to
 * @throws IOException in case of an I/O error
 */
public ULockableFileWriter(final String fileName) throws IOException {
this(fileName, null, false, null);
}

/**
 * Constructs a LockableFileWriter.
 * @param fileName file to write to
 * @param append true if content should be appended (default is to 
overwrite).
 * @throws IOException in case of an I/O error
 */
public ULockableFileWriter(final String fileName, final boolean append)
throws IOException {
this(fileName, null, append, null);
}

/**
 * Constructs a LockableFileWriter.
 * @param fileName file to write to
 * @param append true if content should be appended (default is to 
overwrite).
 * @param lockDir Specifies the directory in which the lock file should be 
held.
 * @throws IOException in case of an I/O error
 */
public ULockableFileWriter(final String fileName, final boolean append,
final String lockDir) throws IOException {
this(new File(fileName), null, append, lockDir);
}

/**
 * Constructs a LockableFileWriter. If the file exists, it is overwritten.
 * @param file file to write to
 * @throws IOException in case of an I/O error
 */
public ULockableFileWriter(final File file) throws IOException {
this(file, null, false, null);
}

/**
 * Constructs a LockableFileWriter.
 * @param file file to write to
 * @param append true if content should be appended (default is to 
overwrite).
 * @throws IOException in case of an I/O error
 */
public ULockableFileWriter(final File file, final boolean append) throws
IOException {
this(file, null, append, null);
}

/**
 * Constructs a LockableFileWriter.
 * @param file file to write to
 * @param append true if content should be appended (default is to 
overwrite).
 * @param lockDir Specifies the directory in which the lock file should be 
held.
 * @throws IOException in case of an I/O error
 */
public ULockableFileWriter(final File file, final boolean append, final
String lockDir) throws IOException {

this(file, null, append, lockDir);
}

/**
 * Constructs a LockableFileWriter. If the file exists, it is overwritten.
 * @param fileName file to write to
 * @param encoding The encoding to use when writing.
 * @throws IOException in case of an I/O error
 */
public ULockableFileWriter(
final String fileName,
final String encoding) throws IOException {
this(fileName, encoding, false, null);
}

/**
 * Constructs a LockableFileWriter.
 * @param fileName file to write to
 * @param encoding The encoding to use when writing.
 * @param append true if content shoul