cvs commit: jakarta-commons-sandbox/chain/xdocs - New directory

2003-10-23 Thread martinc
martinc 2003/10/22 23:06:44

  jakarta-commons-sandbox/chain/xdocs - New directory

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



cvs commit: jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2 PropertyOption.java

2003-10-23 Thread roxspring
roxspring2003/10/23 01:34:45

  Modified:cli/src/test/org/apache/commons/cli2 PropertyOptionTest.java
   cli/src/java/org/apache/commons/cli2 PropertyOption.java
  Log:
  PropertyOptions now process arguments such as -Dmyprop as if they were -Dmyprop=true.
  Tests adjusted accordingly
  
  Revision  ChangesPath
  1.3   +6 -9  
jakarta-commons-sandbox/cli/src/test/org/apache/commons/cli2/PropertyOptionTest.java
  
  Index: PropertyOptionTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/cli/src/test/org/apache/commons/cli2/PropertyOptionTest.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- PropertyOptionTest.java   22 Oct 2003 16:32:14 -  1.2
  +++ PropertyOptionTest.java   23 Oct 2003 08:34:45 -  1.3
  @@ -144,12 +144,9 @@
final CommandLine commandLine = commandLine(option, args);
final ListIterator iterator = args.listIterator();
   
  - try {
  - option.process(commandLine, iterator);
  - fail(No = sign!!);
  - } catch (final BadPropertyException bpe) {
  - assertEquals(option, bpe.getOption());
  - }
  + option.process(commandLine, iterator);
  + 
  +assertEquals(true,commandLine.getProperty(myprop));
}
   
public void testProcess_SetToEmpty() throws OptionException {
  
  
  
  1.2   +12 -8 
jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/PropertyOption.java
  
  Index: PropertyOption.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/PropertyOption.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- PropertyOption.java   18 Oct 2003 22:00:15 -  1.1
  +++ PropertyOption.java   23 Oct 2003 08:34:45 -  1.2
  @@ -123,15 +123,19 @@
if (!canProcess(arg)) {
throw new UnexpectedOptionException(this, arg);
}
  +
final int propertyStart = optionString.length();
final int equalsIndex = arg.indexOf('=', propertyStart);
  - if (equalsIndex  0) {
  - throw new BadPropertyException(this, arg);
  +final String property;
  +final String value;
  +if (equalsIndex  0) {
  +property = arg.substring(propertyStart);
  +value = true;
} else {
  - final String property = arg.substring(propertyStart, 
equalsIndex);
  - final String value = arg.substring(equalsIndex + 1);
  - commandLine.addProperty(property, value);
  + property = arg.substring(propertyStart, equalsIndex);
  + value = arg.substring(equalsIndex + 1);
}
  +commandLine.addProperty(property, value);
}
   
/* (non-Javadoc)
  
  
  

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



DO NOT REPLY [Bug 24036] New: - Interrogation using switch statement

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24036

Interrogation using switch statement

   Summary: Interrogation using switch statement
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
   URL: http://marc.theaimsgroup.com/?l=jakarta-commons-
devm=102763403105912w=2
OS/Version: Other
Status: NEW
  Severity: Normal
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


It should be possible to interrogate options using a simple a switch in a 
loop.  This requires a unique integer id for each option.

(got to keep the features that were available in the original)

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



DO NOT REPLY [Bug 24037] New: - Multiple Option Occurrences

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24037

Multiple Option Occurrences

   Summary: Multiple Option Occurrences
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
   URL: http://marc.theaimsgroup.com/?l=jakarta-commons-
devm=102820668701775w=2
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When the same option occurs multiple times this should be recorded in the 
CommandLine.  For example while -v might mean verbose, -v -v might mean very 
verbose.

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



DO NOT REPLY [Bug 24039] New: - Factored out help for common groups

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24039

Factored out help for common groups

   Summary: Factored out help for common groups
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
   URL: http://marc.theaimsgroup.com/?l=jakarta-commons-
devm=104452882903157w=2
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


If the same group is used within several different options then the help 
system should be able to display the information more consisely.  I.e. the 
common group is printed separately.

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



DO NOT REPLY [Bug 24040] New: - Per option Triggers

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24040

Per option Triggers

   Summary: Per option Triggers
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When an option is processed some custom trigger (ala SQL) could be fired. 
This would allow user defined actions to take place as soon as the relevant 
option is processed.

http://marc.theaimsgroup.com/?l=jakarta-commons-devm=101230300911853w=2

http://marc.theaimsgroup.com/?l=jakarta-commons-devm=104690244101751w=2

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



DO NOT REPLY [Bug 24041] New: - RegularExpressionValidator

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24041

RegularExpressionValidator

   Summary: RegularExpressionValidator
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
   URL: http://marc.theaimsgroup.com/?l=jakarta-commons-
devm=103951380212779w=2
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


A validator should be supplied allowing values to be checked against regular 
expressions.

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



DO NOT REPLY [Bug 24042] New: - Default Values at Definition Stage

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24042

Default Values at Definition Stage

   Summary: Default Values at Definition Stage
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
   URL: http://marc.theaimsgroup.com/?l=jakarta-commons-
devm=101027884006565w=2
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When creating Arguments the default value(s) are often already known.  It 
might make sense to allow default's to be supplied when building the Argument 
instance.

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



DO NOT REPLY [Bug 24044] New: - Default Values from Properties object

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24044

Default Values from Properties object

   Summary: Default Values from Properties object
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
   URL: http://marc.theaimsgroup.com/?l=jakarta-commons-
devm=101027884006565w=2
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


When processing a command line it would be useful to be able to take default 
values from a properties object.  This way user/project/system preferences 
could be applied automatically.

Should be an abstract solution with impls for particular forms (e.g. props, 
prefs etc).

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



DO NOT REPLY [Bug 24045] New: - CommandLine state can be written to Properties

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24045

CommandLine state can be written to Properties

   Summary: CommandLine state can be written to Properties
   Product: Commons
   Version: 2.0 Alpha 1
  Platform: Other
   URL: http://marc.theaimsgroup.com/?l=jakarta-commons-
devm=103731591230259w=2
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: CLI
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


This would allow command line defaults to be saved for the next invocation
(see Default Values from Properties object).

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



RE: HiveMind and Tapestry

2003-10-23 Thread Howard M. Lewis Ship
That's the original point of HiveMInd, and much of the HiveMind code is adapted from 
Tapestry code.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com

 -Original Message-
 From: Sean Zhong [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, October 22, 2003 9:29 PM
 To: [EMAIL PROTECTED]
 Subject: HiveMind and Tapestry
 
 
 Hi Howard,
 
 After attending your wonderful presentation last night, I was 
 thinking if  it makes sense to base the Tapestry on HiveMind, 
 i.e. the engine of Tapestry be HiveMind based engine and the 
 components and pages be services. Will it provide any benefit 
 or will it be a trouble maker? How do you think?
 
 Best Wish
 Sean Zhong
 
 


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



[Fwd: [ANNOUNCEMENT] Commons DBCP 1.1 released]

2003-10-23 Thread Glenn Nielsen
Thanks for all your hard work Dirk to resolve reported bugs and get
this release out.
Regards,

GLenn

 Original Message 
Subject: [ANNOUNCEMENT] Commons DBCP 1.1 released
Date: Wed, 22 Oct 2003 15:29:59 -0700 (PDT)
From: Dirk Verbeeck [EMAIL PROTECTED]
Reply-To: Jakarta Commons Developers List [EMAIL PROTECTED]
To: [EMAIL PROTECTED], [EMAIL PROTECTED],   [EMAIL PROTECTED]
The Jakarta Commons team is pleased to announce the release of version 1.1
of the Jakarta Commons DBCP component.
Commons-DBCP provides database connection pooling services. Together with
Commons-Pool it is the default JNDI datasource provider for Tomcat.
More info: http://jakarta.apache.org/commons/dbcp/
There were a lot changes since the 1.0 release on 12 Aug 2002.
* All existing features can now be configured by JNDI Context
  providers (Tomcat).
* The double close() of a pooled connection is more effectively
  blocked.
* Prepared statement pooling is now implemented in BasicDataSource.
* Access to the underlying connection is blocked by default.
* New minIdle parameter for a minimum number of idle connections ready
  for use.
* New connection default properties:
  defaultCatalog  defaultTransactionIsolation.
* Missing driverClassName will now give the following error
  No suitable driver.
* Bad validationQuery will produce a meaningful SQLException.
* UML Class  sequence diagrams, configuration documentation.
* This release contains bug fixes to all known issues.
The latest binary release is always available on the Jakarta Binary
Downloads page, its source is available from Jakarta Source Downloads
page.
-- Dirk Verbeeck

-
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 24056] New: - Documentation error in StringUtils.replace

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24056

Documentation error in StringUtils.replace

   Summary: Documentation error in StringUtils.replace
   Product: Commons
   Version: 2.0 Final
  Platform: Other
OS/Version: All
Status: NEW
  Severity: Normal
  Priority: Other
 Component: Lang
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The following example from the javadoc is incorrect.

StringUtils.replace(aba, a, )= aba

it should be:

StringUtils.replace(aba, a, )= b

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



DO NOT REPLY [Bug 24057] New: - The borrowed object isn't destroyed if the number of maxActive objects is 0.

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24057

The borrowed object isn't destroyed if the number of maxActive objects is 0.

   Summary: The borrowed object isn't destroyed if the number of
maxActive objects is 0.
   Product: Commons
   Version: 1.1 Final
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Major
  Priority: Other
 Component: Pool
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


The borrowed object isn't destroyed if the number of maxActive objects is 0. 

I am applying two 2 parches that fix this bug. 
The first one is related to GenericObjectPool.returnObject(Object obj). This 
method doesn't check the value of maxActive when determine should be destroyed 
the returned object.

The second one is related to TestGenericObjectPool.testZeroMaxActive(). The 
unit test doesn't check the number of idle objects after returned the borrowed 
object.

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



DO NOT REPLY [Bug 24057] - The borrowed object isn't destroyed if the number of maxActive objects is 0.

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24057

The borrowed object isn't destroyed if the number of maxActive objects is 0.





--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 13:25 ---
Created an attachment (id=8688)
patch for class GenericObjectPool

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



DO NOT REPLY [Bug 24057] - The borrowed object isn't destroyed if the number of maxActive objects is 0.

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24057

The borrowed object isn't destroyed if the number of maxActive objects is 0.





--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 13:26 ---
Created an attachment (id=8689)
a patch to class TestGenericObjectPool.java

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



cvs commit: jakarta-commons/daemon/src/native/nt/procrun procrun.rc

2003-10-23 Thread mturk
mturk   2003/10/23 07:06:58

  Modified:daemon/src/native/nt/procrun procrun.rc
  Log:
  Fix the non-MSVC resource compilation.
  The procrun can now be build using mingw.
  
  Revision  ChangesPath
  1.6   +7 -39 jakarta-commons/daemon/src/native/nt/procrun/procrun.rc
  
  Index: procrun.rc
  ===
  RCS file: /home/cvs/jakarta-commons/daemon/src/native/nt/procrun/procrun.rc,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- procrun.rc2 Oct 2003 07:22:16 -   1.5
  +++ procrun.rc23 Oct 2003 14:06:58 -  1.6
  @@ -59,6 +59,7 @@
   #include procrun.h
   #include windows.h
   
  +#ifndef PROCRUN_CONSOLE
   #if !defined(EXT_ICOCONWRAP)
   IDI_ICOCONWRAP ICONproctry.ico
   #endif
  @@ -71,18 +72,15 @@
   
   IDR_RTFLIC RTF License.rtf
   
  -#ifdef _MSC_VER
   #if !defined(EXT_BMPSPLASH)
  -IDB_BMPSPLASH  BITMAP   DISCARDABLEsplash.bmp
  -#endif
  +BMPSPLASH  BITMAP  splash.bmp
   #endif
   
   IDI_ICOI   ICONicoi.ico
   IDI_ICOS   ICONicos.ico
   IDI_ICOW   ICONicow.ico
   
  -#ifdef _MSC_VER
  -IDB_BMPJAKARTA BITMAP   DISCARDABLEjakarta-banner.bmp
  +BMPJAKARTA BITMAP  jakarta-banner.bmp
   IDR_CMENU MENUEX DISCARDABLE 
   BEGIN
   POPUP Process,65535,MFT_STRING,MFS_ENABLED
  @@ -98,23 +96,6 @@
   MENUITEM About,  IDM_MENU_ABOUT
   END
   END
  -#else
  -IDR_CMENU MENU DISCARDABLE 
  -BEGIN
  -POPUP Process
  -BEGIN
  -MENUITEM Shutdown,   IDM_MENU_EXIT
  -END
  -POPUP Edit
  -BEGIN
  -MENUITEM Copy,   IDM_MENU_EDIT
  -END
  -POPUP Help
  -BEGIN
  -MENUITEM About,  IDM_MENU_ABOUT
  -END
  -END
  -#endif
   
   IDD_DLGCONSOLE DIALOGEX 0, 0, 480, 240
   STYLE DS_3DLOOK | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | WS_CAPTION | 
  @@ -129,7 +110,6 @@
   WS_VSCROLL | WS_HSCROLL | WS_TABSTOP,WS_EX_CLIENTEDGE
   END
   
  -#ifdef _MSC_VER
   IDD_ABOUTBOX DIALOGEX 0, 0, 337, 167
   STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
   CAPTION About Apache Process Runner
  @@ -138,21 +118,9 @@
   DEFPUSHBUTTON   OK,IDOK,285,150,50,14
   CONTROL ,IDC_RICHEDIT21,RichEdit20A,ES_MULTILINE | 
   ES_READONLY | WS_BORDER | WS_VSCROLL,0,31,335,115
  -CONTROL 117,IDC_STATIC,Static,SS_BITMAP,0,0,337,30
  +CONTROL BMPJAKARTA,IDC_STATIC,Static,SS_BITMAP,0,0,337,30
   LTEXT   Apache Process Runner ver. 1.1.0,IDC_STATIC,2,150,270,12
   END
  -#else
  -IDD_ABOUTBOX DIALOGEX 0, 0, 337, 167
  -STYLE DS_SETFONT | DS_MODALFRAME | WS_CAPTION | WS_SYSMENU
  -CAPTION About Apache Process Runner
  -FONT 8, Microsoft Sans Serif, 400, 0, 0x0
  -BEGIN
  -DEFPUSHBUTTON   OK,IDOK,285,150,50,14
  -CONTROL ,IDC_RICHEDIT21,RichEdit20A,ES_MULTILINE | 
  -ES_READONLY | WS_BORDER | WS_VSCROLL,0,0,335,145
  -LTEXT   Apache Process Runner 1.1.0,IDC_STATIC,8,150,270,12
  -END
  -#endif
   
   RC_DLG_SRVOPT DIALOGEX 0, 0, 337, 186
   STYLE DS_SETFONT | DS_FIXEDSYS | WS_CHILD | WS_VISIBLE | WS_BORDER
  @@ -223,11 +191,11 @@
   BEGIN
   LISTBOX IDL_INFO,7,126,217,9, LBS_NOINTEGRALHEIGHT | 
   LBS_NOSEL | NOT WS_BORDER | NOT LBS_USETABSTOPS
  -#ifdef _MSC_VER
  -CONTROL IDB_BMPSPLASH,IDC_STATIC,Static,SS_BITMAP |
  +CONTROL BMPSPLASH,IDC_STATIC,Static,SS_BITMAP |
   SS_CENTERIMAGE,0,0,322,151
  -#endif
   END 
  +
  +#endif
   
   1 VERSIONINFO
FILEVERSION 2,1,1,0
  
  
  

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



DO NOT REPLY [Bug 24057] - The borrowed object isn't destroyed if the number of maxActive objects is 0.

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24057

The borrowed object isn't destroyed if the number of maxActive objects is 0.

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID



--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 15:08 ---
The bug that I have submited is not valid.
Sorry for my mistake(I didn't understand very well the purpose of properties 
maxActive and maxIdle).

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



[Vote] Promote Math project to Commons Proper..

2003-10-23 Thread Mark R. Diggory
I've read through the release documentation at:

http://nagoya.apache.org/wiki/apachewiki.cgi?MovingFromSandboxToProper

We would like to propose moving out of the sandbox for the following 
reasons.

1.) Project Maturity: We are at a point of stability and have the 
ability to now do an intial release.

2.) Project Contribution: Much of our developer base is contributors who 
are beginning to seek some recognition for thier efforts. In the 
sandbox, we don't have the capability to allocate the commit rights for 
the project.

3.) Usability Testing: A strong aspect of the development process is 
User feedback, without a release we are limited in the feedback we can 
get from users. With a release, others will be able to begin building 
dependencies on our project, and provide us with a means to complete the 
development cycle.

thank you,
Mark Diggory
--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu


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


Re: [Vote] Promote Math project to Commons Proper..

2003-10-23 Thread __matthewHawthorne
+1

Mark R. Diggory wrote:

I've read through the release documentation at:

http://nagoya.apache.org/wiki/apachewiki.cgi?MovingFromSandboxToProper

We would like to propose moving out of the sandbox for the following 
reasons.

1.) Project Maturity: We are at a point of stability and have the 
ability to now do an intial release.

2.) Project Contribution: Much of our developer base is contributors who 
are beginning to seek some recognition for thier efforts. In the 
sandbox, we don't have the capability to allocate the commit rights for 
the project.

3.) Usability Testing: A strong aspect of the development process is 
User feedback, without a release we are limited in the feedback we can 
get from users. With a release, others will be able to begin building 
dependencies on our project, and provide us with a means to complete the 
development cycle.

thank you,
Mark Diggory


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


RE: [Vote] Promote Math project to Commons Proper..

2003-10-23 Thread Shapira, Yoav

Howdy,

I've read through the release documentation at:

http://nagoya.apache.org/wiki/apachewiki.cgi?MovingFromSandboxToProper

jumpingUpAndDown
Somebody read it!  Glad someone else found it useful ;)
/jumpUpAndDown

+1 for promotion, I agree with your reasoning.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: [lang] [PATCH] StringUtils.getLevenshteinDistance() fix for OutOfMemoryError when used with LONG strings

2003-10-23 Thread Arun Thomas
Might be worth including as a separate subclass of testcase then - anyone looking for 
quick runs can take it out of the test suite temporarily.  

-AMT

-Original Message-
From: Chas Emerick [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 22, 2003 3:52 PM
To: Jakarta Commons Developers List
Subject: Re: [lang] [PATCH] StringUtils.getLevenshteinDistance() fix for 
OutOfMemoryError when used with LONG strings


Sure...although there's not much I can add with regard to the simpler  
test cases, I could use RandomStringUtils to generate some long strings  
to test behaviour that the patch addresses.  The downside is that the  
algorithm is fundamentally quadratic, so doing such a test would  
significantly extend the time required to complete the java-lang tests  
(i.e. ~7 minutes to calculate the character-level edit distance of two  
strings of 50K each).  If you think that's OK, I'll submit a patch to  
the test class.

Chas Emerick   |   [EMAIL PROTECTED]

http://www.snowtide.com
Snowtide Informatics Systems, Inc.


On Wednesday, October 22, 2003, at 04:53 PM, Henri Yandell wrote:


 Cool. Sounds good and I'll have a go at applying your patch.

 Any chance of you submitting your other unit tests for the class?

 Hen

 On Wed, 22 Oct 2003, Chas Emerick wrote:

 I've never submitted a patch for an open-source project before (never 
 got around to it lo these many years I guess), so I apologize for any 
 errors in form or convention that I commit.

 I was planning on using the
 StringUtils.getLevenshteinDistance(String,String) method in a 
 particular circumstance where I needed to get the edit distance
 between
 two large strings (anywhere between 10K - 500K characters each).
 However, I found that calling that method (as of v2.0 of commons-lang)
 would result in an OutOfMemoryError when strings of such lengths were
 provided.

 A quick look at the source revealed that the current implementation 
 (which uses the sample impl. at http://www.merriampark.com/ld.htm)
 creates a matrix with dimensions corresponding to the lengths of the 
 two strings provided.  Clearly, a 100K x 100K int[] is problematic.

 Therefore, I've (mostly) rewritten the method using a two int arrays
 of
 the size of the first string's length, and the method now works
 properly with larger strings (beastly slow, but that's quadratic
 algorithms for you) .  I've tested the new implementation against the
 ten or so testcases mentioned in the javadocs, as well as another
 half-dozen of my own, and everything looks good.

 If my mail client botches the patch diff, you can get it at 
 http://www.snowtide.com/commons-lang-LDpatch.txt

 Chas Emerick   |   [EMAIL PROTECTED]

 http://www.snowtide.com
 Snowtide Informatics Systems, Inc.

 =
 =
 ==
 ==
 --- StringUtils.java.oldWed Oct 22 12:58:04 2003
 +++ StringUtils.javaWed Oct 22 13:51:36 2003
 @@ -4255,8 +4255,8 @@
* another, where each change is a single character 
 modification (deletion,
* insertion or substitution)./p
*
 - * pThis implementation of the Levenshtein distance algorithm
 - * is from a
 href=http://www.merriampark.com/ld.htm;http://www.merriampark.com/
 ld.
 htm/a/p
 + * pThis implementation of the Levenshtein distance algorithm
 was originally based
 upon the one
 + * presented at a
 href=http://www.merriampark.com/ld.htm;http://www.merriampark.co
 m/ld.htm/a/p
*
* pre
* StringUtils.getLevenshteinDistance(null, *) =
 IllegalArgumentException
 @@ -4281,76 +4281,64 @@
   if (s == null || t == null) {
   throw new IllegalArgumentException(Strings must not be 
 null);
   }
 -int d[][]; // matrix
 -int n; // length of s
 -int m; // length of t
 -int i; // iterates through s
 -int j; // iterates through t
 -char s_i; // ith character of s
 -char t_j; // jth character of t
 -int cost; // cost
 -
 -// Step 1
 -n = s.length();
 -m = t.length();
 +
 +   /*
 +   The difference between this impl. and the previous is
 that, rather than cr
 eating and retaining a matrix of size
 +   s.length()+1 by t.length()+1, we maintain two
 single-dimensional arrays of
   length s.length()+1.  The first, d,
 +   is the 'current working' distance array that 
 + maintains
 the newest distance
   cost counts as we iterate through
 +   the characters of String s.  Each time we increment
 the
 index of String t
 we are comparing, d is copied to p,
 +   the second int[].  Doing so allows us to retain the
 previous cost counts a
 s required by the algorithm
 +   (taking the minimum of the cost count to the left, up
 one, and diagonally
 up and to the left of the current
 +   cost count being calculated).  (Note that the arrays
 aren't 

Jakarta Commons SQL

2003-10-23 Thread Wroblewski, David A


I was looking at the SQL project and have a few questions.

*   What is the best way to create a Database instance without the XML
representation?  Can I use a DatabaseWriter followed by a DatabaseReader?
*   I see the method JDBCTransformTask.generateXML and would like to see
a method to generate a Database instance from a DatabaseMetaData instance.
The code within the JDBCTransformTask could be extracted to support
generating a Database object from a MetaData object.  The Database object
could be used to generate the XML.  Does this make sense?
*   Is there continued development on the project?
*   Are there any plans to enhance the model to address additional table
elements such as indexes and grants?

Thanks,

David A Wroblewski




_ 
IMPORTANT NOTICES: 
  This message is intended only for the addressee. Please notify the
sender by e-mail if you are not the intended recipient. If you are not the
intended recipient, you may not copy, disclose, or distribute this message
or its contents to any other person and any such actions may be unlawful.

 Banc of America Securities LLC(BAS) does not accept time
sensitive, action-oriented messages or transaction orders, including orders
to purchase or sell securities, via e-mail.

 BAS reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or from this
e-mail address may be stored on the BAS e-mail system.



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



cvs commit: jakarta-commons-sandbox/hivemind project.properties maven.xml

2003-10-23 Thread hlship
hlship  2003/10/23 12:28:35

  Modified:hivemind/xdocs index.xml ioc.xml
   hivemind project.properties maven.xml
  Log:
  Add new support for build the distributions and installing them to the temporary 
distribution directory.
  
  Revision  ChangesPath
  1.19  +7 -6  jakarta-commons-sandbox/hivemind/xdocs/index.xml
  
  Index: index.xml
  ===
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/xdocs/index.xml,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- index.xml 21 Oct 2003 15:14:29 -  1.18
  +++ index.xml 23 Oct 2003 19:28:35 -  1.19
  @@ -56,8 +56,10 @@
/p

p
  - The project has been reorganized as a Maven multiproject; expect a few 
teething pains -- especially
  - in terms of pre-packaged distributions.  Just download Maven 1.0-rc-1 and 
build it yourself! 
  + The project has been reorganized as a   
  + a href=http://maven.apache.org;Maven/a 
  + multiproject; expect a few teething pains -- especially
  + in terms of pre-packaged distributions.  Use Maven to build it yourself! 
Currently there are two sub-projects; for the framework proper, and for the 
standard library.
A third sub-project, for contributed code and services, will be created soon.
/p
  @@ -70,9 +72,8 @@
/p

p
  - As an early adopter, you should be ready to download and install 
  - a href=http://maven.apache.org;Maven/a, and get
  - the HiveMind source via anonymous CVS.  
  + As an early adopter, you should be ready to build the latest snapshot of Maven 
and 
  + use that to build the HiveMind source. We'll try to keep the pre-built 
distributions up-to date.
/p
/section

  
  
  
  1.18  +6 -5  jakarta-commons-sandbox/hivemind/xdocs/ioc.xml
  
  Index: ioc.xml
  ===
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/xdocs/ioc.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- ioc.xml   21 Oct 2003 15:14:29 -  1.17
  +++ ioc.xml   23 Oct 2003 19:28:35 -  1.18
  @@ -35,22 +35,23 @@
   table
tr
tdtype-1/td 
  - tdServices are provided with an object from which they can look up 
dependencies (other services). This 
  + tdServices need to implement a dedicated interface through which 
they are provided with
  + an object from which they can look up dependencies (other 
services). This 
is the pattern used by Avalon./td
/tr   
tr
tdtype-2/td 
td
  - Dependent services are assigned via JavaBeans properties.
  + Services dependent upon are assigned via JavaBeans properties 
(setter methods).
The a href=http://www.springframework.org/;Spring/a   
  framework uses this approach.
/td
/tr
tr
tdtype-3/td 
td
  - Dependent services are provided using a constructor and are 
not exposed as JavaBeans properties.
  + Services dependent upon are provided as constructor parameters 
and are not exposed as JavaBeans properties.
This is favored by
  - a href=http://www.springframework.org/;Picocontainer/a.
  + a href=http://www.picocontainer.org/;PicoContainer/a.
/td
/tr
   /table
  
  
  
  1.6   +11 -2 jakarta-commons-sandbox/hivemind/project.properties
  
  Index: project.properties
  ===
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/project.properties,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- project.properties20 Sep 2003 12:48:19 -  1.5
  +++ project.properties23 Oct 2003 19:28:35 -  1.6
  @@ -6,4 +6,13 @@
   maven.jar.index=true
   
   maven.multiproject.aggregateDir=
  -maven.xdoc.version=${pom.currentVersion}
  \ No newline at end of file
  +maven.xdoc.version=${pom.currentVersion}
  +
  +# The SCP qualified directory for distributions
  +# You must use ssh-agent to start a shell, and ssh-add to authenticate
  +# before executing the dist-release or dist-release-all Maven targets.
  +
  +hivemind.dist.user=hlship
  +hivemind.dist.host=jakarta.apache.org
  +hivemind.dist.dir=public_html/hivemind
  +
  
  
  
  1.11  +33 -1 jakarta-commons-sandbox/hivemind/maven.xml
  
  Index: maven.xml
  ===
  RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/maven.xml,v
  retrieving revision 1.10
  retrieving revision 

DO NOT REPLY [Bug 24078] New: - [PATCH] Add support for XHDR NNTP command

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24078

[PATCH] Add support for XHDR NNTP command

   Summary: [PATCH] Add support for XHDR NNTP command
   Product: Commons
   Version: 1.1.0
  Platform: Other
OS/Version: Other
Status: NEW
  Severity: Enhancement
  Priority: Other
 Component: Net
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


Index: net/src/java/org/apache/commons/net/nntp/NNTP.java
===
RCS file:
/home/cvspublic/jakarta-commons/net/src/java/org/apache/commons/net/nntp/NNTP.java,v
retrieving revision 1.7
diff -u -p -r1.7 NNTP.java
--- net/src/java/org/apache/commons/net/nntp/NNTP.java  4 Sep 2003 20:32:43 -  
 1.7
+++ net/src/java/org/apache/commons/net/nntp/NNTP.java  23 Oct 2003 19:37:57 -
@@ -110,9 +110,11 @@ import org.apache.commons.net.SocketClie
  * p
  * p
  * @author Daniel F. Savarese
+ * @author Ted Wise
  * @see NNTPClient
  * @see NNTPConnectionClosedException
  * @see org.apache.commons.net.MalformedServerReplyException
+ * @version $Id$
  ***/
 
 public class NNTP extends SocketClient
@@ -998,6 +1000,35 @@ public class NNTP extends SocketClient
  ***/
 public int xover(String selectedArticles) throws IOException {
 return sendCommand(NNTPCommand.XOVER, selectedArticles);
+}
+   
+/***
+ * A convenience method to send the NNTP XHDR command to the server,
+ * receive the reply, and return the reply code.
+ * p
+ * @param header a String naming a header line (e.g., subject).  See 
+ * RFC-1036 for a list of valid header lines.
+ * @param selectedArticles a String representation of the range of
+ * article headers required. This may be an article number, or a
+ * range of article numbers in the form -, where 
+ * and  are valid article numbers in the current group.  It
+ * also may be of the form XXX-, meaning return XXX and all
+ * following articles In this revision, the last format is not
+ * possible (yet).
+ * @return The reply code received from the server.
+ * @exception NNTPConnectionClosedException
+ *  If the NNTP server prematurely closes the connection as a result
+ *  of the client being idle or some other reason causing the server
+ *  to send NNTP reply code 400.  This exception may be caught either
+ *  as an IOException or independently as itself.
+ * @exception IOException  If an I/O error occurs while either sending the
+ *  command or receiving the server reply.
+ ***/
+public int xhdr(String header, String selectedArticles) throws IOException {
+StringBuffer command = new StringBuffer(header);
+   command.append( );
+   command.append(selectedArticles);
+return sendCommand(NNTPCommand.XHDR, command.toString());
 }

 /**
Index: net/src/java/org/apache/commons/net/nntp/NNTPClient.java
===
RCS file:
/home/cvspublic/jakarta-commons/net/src/java/org/apache/commons/net/nntp/NNTPClient.java,v
retrieving revision 1.5
diff -u -p -r1.5 NNTPClient.java
--- net/src/java/org/apache/commons/net/nntp/NNTPClient.java4 Sep 2003
20:32:43 -  1.5
+++ net/src/java/org/apache/commons/net/nntp/NNTPClient.java23 Oct 2003
19:37:58 -
@@ -116,9 +116,11 @@ import org.apache.commons.net.MalformedS
  * p
  * p
  * @author Daniel F. Savarese
+ * @author Ted Wise
  * @see NNTP
  * @see NNTPConnectionClosedException
  * @see org.apache.commons.net.MalformedServerReplyException
+ * @version $Id$
  ***/
 
 public class NNTPClient extends NNTP
@@ -1245,6 +1247,59 @@ public class NNTPClient extends NNTP
 {
 return
 __retrieveArticleInfo(new String(lowArticleNumber + - + 
+ highArticleNumber));
+}
+
+/***
+ * Private implementation of XHDR functionality.  
+ * 
+ * See a href=org.apache.commons.nntp.NNTP.html#xhdr
+ * for legal agument formats. Alternatively, read RFC 1036. 
+ * p
+ * @param header
+ * @param articleRange
+ * @return Returns a DotTerminatedMessageReader if successful, null
+ * otherwise
+ * @exception IOException
+ */
+private Reader __retrieveHeader(String header, String articleRange)
+throws IOException 
+{
+if (!NNTPReply.isPositiveCompletion(xhdr(header, articleRange)))
+return null;
+
+return new DotTerminatedMessageReader(_reader_);
+}
+   
+/**
+ * Return an 

[HiveMind] 1.0-alpha-3 released

2003-10-23 Thread Howard M. Lewis Ship
I've tagged CVS as release-1-0-alpha-3 and created a release, complete with 
pre-compiled
distributions.

--
Howard M. Lewis Ship
Creator, Tapestry: Java Web Components
http://jakarta.apache.org/tapestry
http://jakarta.apache.org/commons/sandbox/hivemind/
http://javatapestry.blogspot.com


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



Re: sandbox 'article'

2003-10-23 Thread J.Pietschmann
Hm, the problem with graph2 is that the important interfaces
aren't documented or demonstrated by comprehensble examples.
They use some tricks which should be explained in some sort
of design documents before the code could be unleashed onto
unsuspecting users.
I also suspect that generic graph code has always to fight with
the problem that has to parallel data structures containing the
real user data, and that DFS is pretty easy to code, especially
if some knowledge about the data can be hold up.
Well if someone would bother to add reading and writing GML
and adding graph layout, that would be a killer...
J.Pietschmann



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


cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester/xmlrules DigesterRuleParser.java digester-rules.dtd

2003-10-23 Thread rdonkin
rdonkin 2003/10/23 13:06:09

  Modified:digester/src/java/org/apache/commons/digester/xmlrules
DigesterRuleParser.java digester-rules.dtd
  Log:
  Added support for ObjectParamRule to xmlrules. Patch contributed by Anton Maslovsky.
  
  Revision  ChangesPath
  1.20  +50 -4 
jakarta-commons/digester/src/java/org/apache/commons/digester/xmlrules/DigesterRuleParser.java
  
  Index: DigesterRuleParser.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/xmlrules/DigesterRuleParser.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- DigesterRuleParser.java   9 Oct 2003 21:09:48 -   1.19
  +++ DigesterRuleParser.java   23 Oct 2003 20:06:09 -  1.20
  @@ -1,4 +1,4 @@
  -/*
  +  /*
* $Header$
* $Revision$
* $Date$
  @@ -72,7 +72,10 @@
   import java.util.Set;
   import java.util.StringTokenizer;
   
  +import org.apache.commons.beanutils.ConvertUtils;
  +
   import org.apache.commons.collections.ArrayStack;
  +
   import org.apache.commons.digester.AbstractObjectCreationFactory;
   import org.apache.commons.digester.BeanPropertySetterRule;
   import org.apache.commons.digester.CallMethodRule;
  @@ -87,6 +90,8 @@
   import org.apache.commons.digester.SetPropertiesRule;
   import org.apache.commons.digester.SetPropertyRule;
   import org.apache.commons.digester.SetTopRule;
  +import org.apache.commons.digester.ObjectParamRule;
  +
   import org.xml.sax.Attributes;
   import org.xml.sax.SAXException;
   
  @@ -248,6 +253,10 @@
   digester.addFactoryCreate(*/call-method-rule, new 
CallMethodRuleFactory());
   digester.addRule(*/call-method-rule, new PatternRule(pattern));
   digester.addSetNext(*/call-method-rule, add, ruleClassName);
  +
  +digester.addFactoryCreate(*/object-param-rule, new 
ObjectParamRuleFactory());
  +digester.addRule(*/object-param-rule, new PatternRule(pattern));
  +digester.addSetNext(*/object-param-rule, add, ruleClassName);
   
   digester.addFactoryCreate(*/call-param-rule, new CallParamRuleFactory());
   digester.addRule(*/call-param-rule, new PatternRule(pattern));
  @@ -602,6 +611,43 @@
   return callParamRule;
   }
   }
  +
  +/**
  + * Factory for creating a ObjectParamRule
  + */
  +protected class ObjectParamRuleFactory extends AbstractObjectCreationFactory {
  +public Object createObject(Attributes attributes) throws Exception {
  +// create callparamrule
  +int paramIndex = Integer.parseInt(attributes.getValue(paramnumber));
  +String attributeName = attributes.getValue(attrname);
  +String type = attributes.getValue(type);
  +String value = attributes.getValue(value);
  +
  +Rule objectParamRule = null;
  +
  +// type name is requried
  +if (type == null) {
  +throw new RuntimeException(Attribute 'type' is required.);
  +}
  +
  +// create object instance
  +Object param = null;
  +Class clazz = Class.forName(type);
  +if (value == null) {
  +param = clazz.newInstance();
  +} else {
  +param = ConvertUtils.convert(value, clazz);
  +}
  +
  +if (attributeName == null) {
  +objectParamRule = new ObjectParamRule(paramIndex, param);
  +} else {
  +objectParamRule = new ObjectParamRule(paramIndex, attributeName, 
param);
  +}
  +return objectParamRule;
  +}
  + }
  +
   
   /**
* Factory for creating a FactoryCreateRule
  
  
  
  1.10  +26 -3 
jakarta-commons/digester/src/java/org/apache/commons/digester/xmlrules/digester-rules.dtd
  
  Index: digester-rules.dtd
  ===
  RCS file: 
/home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/xmlrules/digester-rules.dtd,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- digester-rules.dtd7 Jul 2003 20:52:12 -   1.9
  +++ digester-rules.dtd23 Oct 2003 20:06:09 -  1.10
  @@ -10,13 +10,14 @@
Digester is a framework for pattern-matching-based parsing of XML into
Java objects. See http://jakarta.apache.org/commons/digester.html.  --
   
  -!ENTITY % rule-elements bean-property-setter-rule | call-method-rule | 
call-param-rule |
  +!ENTITY % rule-elements bean-property-setter-rule | call-method-rule |
  +   call-param-rule | object-param-rule |
  factory-create-rule | object-create-rule |
  set-properties-rule | set-property-rule | set-top-rule |
 

cvs commit: jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules DigesterLoaderRulesTest.java

2003-10-23 Thread rdonkin
rdonkin 2003/10/23 13:06:43

  Added:   digester/src/test/org/apache/commons/digester/xmlrules
DigesterLoaderRulesTest.java
  Log:
  Added support for ObjectParamRule to xmlrules. Patch contributed by Anton Maslovsky.
  
  Revision  ChangesPath
  1.1  
jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules/DigesterLoaderRulesTest.java
  
  Index: DigesterLoaderRulesTest.java
  ===
  /*
   * $Header: 
/home/cvs/jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules/DigesterLoaderRulesTest.java,v
 1.1 2003/10/23 20:06:43 rdonkin Exp $
   * $Revision: 1.1 $
   * $Date: 2003/10/23 20:06:43 $
   *
   * 
   * 
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2001-2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *notice, this list of conditions and the following disclaimer. 
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *notice, this list of conditions and the following disclaimer in
   *the documentation and/or other materials provided with the
   *distribution.
   *
   * 3. The end-user documentation included with the redistribution,
   *if any, must include the following acknowledgement:  
   *   This product includes software developed by the 
   *Apache Software Foundation (http://www.apache.org/).
   *Alternately, this acknowledgement may appear in the software itself,
   *if and wherever such third-party acknowledgements normally appear.
   *
   * 4. The names Apache, The Jakarta Project, Commons, and Apache Software
   *Foundation must not be used to endorse or promote products derived
   *from this software without prior written permission. For written 
   *permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called Apache,
   *Apache nor may Apache appear in their names without prior 
   *written permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * http://www.apache.org/.
   *
   */ 
  package org.apache.commons.digester.xmlrules;
  
  import java.io.StringReader;
  
  import junit.framework.TestCase;
  
  import org.xml.sax.InputSource;
  
  import org.apache.commons.digester.Digester;
  
  /**
   * Tests for digester loader rule implementations,
   *
   * @author Robert Burrell Donkin
   */
  
  public class DigesterLoaderRulesTest extends TestCase {
  
  public DigesterLoaderRulesTest(java.lang.String testName) {
  super(testName);
  }
  
  /** Basic test for object param rule */
  public void testObjectParamRule() throws Exception {
  String xmlRules = 
  ?xml version='1.0'? +
  digester-rules + 
pattern value='root' +
   pattern value='foo' +
  call-method-rule  +
  methodname='duo'  +
  paramcount='2'  +
  paramtypes='java.lang.String,java.lang.String'/ +
  pattern value='bar' +
 object-param-rule paramnumber='0' type='java.lang.String' 
/ +
  /pattern +
  pattern value='rab' +
 object-param-rule paramnumber='1' type='java.lang.String' 
value='tester.test' / +
  /pattern +
   /pattern +
 /pattern +
  /digester-rules;
  
  String xml 

cvs commit: jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules CallParamTestObject.java DigesterLoaderTestSuite.java

2003-10-23 Thread rdonkin
rdonkin 2003/10/23 13:07:02

  Modified:digester/src/test/org/apache/commons/digester/xmlrules
CallParamTestObject.java
DigesterLoaderTestSuite.java
  Log:
  Added support for ObjectParamRule to xmlrules. Patch contributed by Anton Maslovsky.
  
  Revision  ChangesPath
  1.5   +12 -5 
jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules/CallParamTestObject.java
  
  Index: CallParamTestObject.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules/CallParamTestObject.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- CallParamTestObject.java  9 Oct 2003 21:09:50 -   1.4
  +++ CallParamTestObject.java  23 Oct 2003 20:07:02 -  1.5
  @@ -63,7 +63,6 @@
   
   
   
  -
   /**
* Object for use with testing call param rules.
*
  @@ -80,7 +79,12 @@
   this.right = right;
   this.middle = middle;
   }
  -
  +   
  +public void duo(String left, String right) {
  +this.left = left;
  +this.right = right;
  +}
  +  
   public String getLeft() {
   return left;
   }
  @@ -92,6 +96,9 @@
   public String getMiddle() {
   return middle;
   }
  +
  +
  +
   
   public String toString() {
   return LEFT:  + left +  MIDDLE: + middle +  RIGHT: + right;
  
  
  
  1.6   +4 -3  
jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules/DigesterLoaderTestSuite.java
  
  Index: DigesterLoaderTestSuite.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/digester/src/test/org/apache/commons/digester/xmlrules/DigesterLoaderTestSuite.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DigesterLoaderTestSuite.java  9 Oct 2003 21:09:50 -   1.5
  +++ DigesterLoaderTestSuite.java  23 Oct 2003 20:07:02 -  1.6
  @@ -87,6 +87,7 @@
   TestSuite suite = new TestSuite();
   suite.addTestSuite(DigesterLoaderTest.class);
   suite.addTestSuite(DigesterPatternStackTest.class);
  +suite.addTestSuite(DigesterLoaderRulesTest.class);
   
   return suite;
   }
  
  
  

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



Re: [Digester][PATCH] ObjectParamRule support for XML rules

2003-10-23 Thread robert burrell donkin
patch applied. many thanks.

i had problems with the patch format. please use (cvs) diff -u in future. 
also please consider contributing (as simon requested) a unit test for the 
submitted code.

- robert

On Tuesday, October 7, 2003, at 08:47 AM, Anton Maslovsky wrote:

Hi,

I've added support for the ObjectParamRule in XML rules file for the 
Digester. The syntax is as follows:

!--
   ObjectParamRule
   attrname - an arbitrary Object defined programatically, assigned if 
the element pattern AND specified attribute name are matched
   param - an arbitrary Object defined programatically, assigned when the 
element pattern associated with the Rule is matched
   type - class name for object
   value - initial value for the object
   --
!ELEMENT object-param-rule EMPTY
!ATTLIST object-param-rule
   pattern  CDATA #IMPLIED
   paramnumber CDATA #REQUIRED
   param CDATA #REQUIRED
   attrname CDATA #IMPLIED
   type CDATA #REQUIRED
   value CDATA #IMPLIED

XML example:

object-param-rule paramnumber=0 type=java.lang.String 
value=meter.serial/

Generaly, type attribute can be any Java type. The value can be a string 
representation of any type that stnaddard ConvertUtils classes are 
capable to convert into the corresponding object instance.

Tow files are patched:

DigesterRuleParser.java
digester-rules.dtd
Regards,
Anton
_
The new MSN 8: advanced junk mail protection and 2 months FREE* 
http://join.msn.com/?page=features/junkmail
  -
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] Promote Math project to Commons Proper..

2003-10-23 Thread Mark R. Diggory
One thing that may be missing for the document, What are the number of 
votes requirements for promotion?

Who exactly can vote for promotion (Commons Commiters I suspect)? Do 
contributors votes count in any way?

thanks,
-Mark
Shapira, Yoav wrote:
Howdy,


I've read through the release documentation at:

http://nagoya.apache.org/wiki/apachewiki.cgi?MovingFromSandboxToProper


jumpingUpAndDown
Somebody read it!  Glad someone else found it useful ;)
/jumpUpAndDown
+1 for promotion, I agree with your reasoning.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged.  This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: [Vote] Promote Math project to Commons Proper..

2003-10-23 Thread Shapira, Yoav

Howdy,

One thing that may be missing for the document, What are the number of
votes requirements for promotion?

Who exactly can vote for promotion (Commons Commiters I suspect)? Do
contributors votes count in any way?

That's part of the commons charter ;)  You need a majority of the
commons committers who vote to agree (not -1) the promotion.

Yoav Shapira


thanks,
-Mark

Shapira, Yoav wrote:
 Howdy,


I've read through the release documentation at:

http://nagoya.apache.org/wiki/apachewiki.cgi?MovingFromSandboxToPrope
r


 jumpingUpAndDown
 Somebody read it!  Glad someone else found it useful ;)
 /jumpUpAndDown

 +1 for promotion, I agree with your reasoning.

 Yoav Shapira



 This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended
recipient, please immediately delete this e-mail from your computer
system
and notify the sender.  Thank you.


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


--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu


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




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: [Vote] Promote Math project to Commons Proper..

2003-10-23 Thread David Graham

--- Shapira, Yoav [EMAIL PROTECTED] wrote:
 
 Howdy,
 
 One thing that may be missing for the document, What are the number of
 votes requirements for promotion?
 
 Who exactly can vote for promotion (Commons Commiters I suspect)? Do
 contributors votes count in any way?
 
 That's part of the commons charter ;)  You need a majority of the
 commons committers who vote to agree (not -1) the promotion.

Specifically, you need at least 3 +1 votes and more +1s than -1s.

David

 
 Yoav Shapira
 
 
 thanks,
 -Mark
 
 Shapira, Yoav wrote:
  Howdy,
 
 
 I've read through the release documentation at:
 
 http://nagoya.apache.org/wiki/apachewiki.cgi?MovingFromSandboxToPrope
 r
 
 
  jumpingUpAndDown
  Somebody read it!  Glad someone else found it useful ;)
  /jumpUpAndDown
 
  +1 for promotion, I agree with your reasoning.
 
  Yoav Shapira
 
 
 
  This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended
 recipient, please immediately delete this e-mail from your computer
 system
 and notify the sender.  Thank you.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 --
 Mark Diggory
 Software Developer
 Harvard MIT Data Center
 http://www.hmdc.harvard.edu
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



Re: [Vote] Promote Math project to Commons Proper..

2003-10-23 Thread Stephen Colebourne
+1


- Original Message - 
From: Mark R. Diggory [EMAIL PROTECTED]
 I've read through the release documentation at:
 
 http://nagoya.apache.org/wiki/apachewiki.cgi?MovingFromSandboxToProper
 
 We would like to propose moving out of the sandbox for the following 
 reasons.
 
 1.) Project Maturity: We are at a point of stability and have the 
 ability to now do an intial release.
 
 2.) Project Contribution: Much of our developer base is contributors who 
 are beginning to seek some recognition for thier efforts. In the 
 sandbox, we don't have the capability to allocate the commit rights for 
 the project.
 
 3.) Usability Testing: A strong aspect of the development process is 
 User feedback, without a release we are limited in the feedback we can 
 get from users. With a release, others will be able to begin building 
 dependencies on our project, and provide us with a means to complete the 
 development cycle.
 
 thank you,
 Mark Diggory
 
 -- 
 Mark Diggory
 Software Developer
 Harvard MIT Data Center
 http://www.hmdc.harvard.edu
 
 
 
 
 -
 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]



cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang StringUtils.java

2003-10-23 Thread scolebourne
scolebourne2003/10/23 13:40:36

  Modified:lang/src/java/org/apache/commons/lang StringUtils.java
  Log:
  Fix javadoc of replace method
  bug 24056, from Russell Dittmar
  
  Revision  ChangesPath
  1.111 +2 -2  
jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java
  
  Index: StringUtils.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java,v
  retrieving revision 1.110
  retrieving revision 1.111
  diff -u -r1.110 -r1.111
  --- StringUtils.java  21 Oct 2003 20:24:22 -  1.110
  +++ StringUtils.java  23 Oct 2003 20:40:36 -  1.111
  @@ -2495,7 +2495,7 @@
* StringUtils.replace(aba, null, null) = aba
* StringUtils.replace(aba, null, null) = aba
* StringUtils.replace(aba, a, null)  = aba
  - * StringUtils.replace(aba, a, )= aba
  + * StringUtils.replace(aba, a, )= b
* StringUtils.replace(aba, a, z)   = zbz
* /pre
* 
  
  
  

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



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

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24056

Documentation error in StringUtils.replace

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 20:46 ---
Well spotted, thanks. Change made.

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



Re: *** HEADS UP *** JIRA MOVING

2003-10-23 Thread John Keyes
Is JIRA seen as a replacement to the current
Bugzilla installation?  Has Scarab been
dismissed as the proposed replacement?  Just
curious.
-John K

On Thursday, Oct 23, 2003, at 21:25 Europe/Dublin, Noel J. Bergman 
wrote:

Guys,

This is just a HEADS UP.  Apache has set up Jira on nagoya.  We are in 
the
process of working with codehaus to migrate all of the ASF projects.

We're currently using a test load from codehaus.  Once we've 
ascertained
that there are no kinks, we'll load the final live data from Bob, at 
which
point he'll freeze the projects on codehaus to prevent updating the old
repository.

	--- Noel

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


cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang StringUtils.java

2003-10-23 Thread scolebourne
scolebourne2003/10/23 13:49:22

  Modified:lang/src/java/org/apache/commons/lang StringUtils.java
  Log:
  Javadoc of method contains
  bug 23430, from Michael Heuer
  
  Revision  ChangesPath
  1.112 +3 -3  
jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java
  
  Index: StringUtils.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/StringUtils.java,v
  retrieving revision 1.111
  retrieving revision 1.112
  diff -u -r1.111 -r1.112
  --- StringUtils.java  23 Oct 2003 20:40:36 -  1.111
  +++ StringUtils.java  23 Oct 2003 20:49:22 -  1.112
  @@ -1059,7 +1059,7 @@
   }
   
   /**
  - * pFind the first index within a String, handling codenull/code.
  + * pChecks if String contains a search String, handling codenull/code.
* This method uses [EMAIL PROTECTED] String#indexOf(int)}./p
*
* pA codenull/code String will return codefalse/code./p
  @@ -1075,7 +1075,7 @@
* 
* @param str  the String to check, may be null
* @param searchStr  the String to find, may be null
  - * @return true if the String contains the search character, 
  + * @return true if the String contains the search String, 
*  false if not or codenull/code string input
* @since 2.0
*/
  
  
  

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



DO NOT REPLY [Bug 23430] - [lang] Minor javadoc fixes for StringUtils.contains(String, String)

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23430

[lang] Minor javadoc fixes for StringUtils.contains(String, String)

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 20:52 ---
Change made. Thanks

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



DO NOT REPLY [Bug 22480] - [lang] Patch for javadocs

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22480

[lang] Patch for javadocs

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 20:55 ---
Closed IIRC

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



cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang ClassUtilsTest.java

2003-10-23 Thread scolebourne
scolebourne2003/10/23 14:03:44

  Modified:lang/src/java/org/apache/commons/lang ClassUtils.java
   lang/src/test/org/apache/commons/lang ClassUtilsTest.java
  Log:
  Add primitiveToWrapper()
  bug 23683, from Norm Deane
  
  Revision  ChangesPath
  1.23  +36 -2 
jakarta-commons/lang/src/java/org/apache/commons/lang/ClassUtils.java
  
  Index: ClassUtils.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/ClassUtils.java,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- ClassUtils.java   7 Sep 2003 14:32:34 -   1.22
  +++ ClassUtils.java   23 Oct 2003 21:03:43 -  1.23
  @@ -54,8 +54,10 @@
   package org.apache.commons.lang;
   
   import java.util.ArrayList;
  +import java.util.HashMap;
   import java.util.Iterator;
   import java.util.List;
  +import java.util.Map;
   /**
* pOperates on classes without using reflection./p
*
  @@ -64,6 +66,7 @@
*
* @author Stephen Colebourne
* @author Gary Gregory
  + * @author Norm Deane
* @since 2.0
* @version $Id$
*/
  @@ -89,6 +92,21 @@
*/
   public static final String INNER_CLASS_SEPARATOR = 
String.valueOf(INNER_CLASS_SEPARATOR_CHAR);
   
  +/** 
  + * Maps primitive codeClass/codees to their corresponding wrapper 
codeClass/code. 
  + */
  +private static Map  primitiveWrapperMap = new HashMap();
  +static {
  + primitiveWrapperMap.put(Boolean.TYPE, Boolean.class);
  + primitiveWrapperMap.put(Byte.TYPE, Byte.class);
  + primitiveWrapperMap.put(Character.TYPE, Character.class);
  + primitiveWrapperMap.put(Short.TYPE, Short.class);
  + primitiveWrapperMap.put(Integer.TYPE, Integer.class);
  + primitiveWrapperMap.put(Long.TYPE, Long.class);
  + primitiveWrapperMap.put(Double.TYPE, Double.class);
  + primitiveWrapperMap.put(Float.TYPE, Float.class);
  +}
  +
   /**
* pClassUtils instances should NOT be constructed in standard programming.
* Instead, the class should be used as
  @@ -514,12 +532,28 @@
   return toClass.isAssignableFrom(cls);
   }
   
  +/**
  + * pConverts the specified primitive Class object to its corresponding
  + * wrapper Class object./p
  + *
  + * @param cls  the class to convert, may be null
  + * @return the wrapper class for codecls/code or codecls/code if
  + * codecls/code is not a primitive. codenull/code if null input.
  + */
  +public static Class primitiveToWrapper(Class cls) {
  +Class convertedClass = cls;
  +if (cls != null  cls.isPrimitive()) {
  +convertedClass = (Class) primitiveWrapperMap.get(cls);
  +}   
  +return convertedClass;
  +}
  +
   // Inner class
   // --
   /**
* pIs the specified class an inner class or static nested class./p
* 
  - * @param cls  the class to check
  + * @param cls  the class to check, may be null
* @return codetrue/code if the class is an inner or static nested class,
*  false if not or codenull/code
*/
  
  
  
  1.7   +33 -1 
jakarta-commons/lang/src/test/org/apache/commons/lang/ClassUtilsTest.java
  
  Index: ClassUtilsTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/ClassUtilsTest.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- ClassUtilsTest.java   18 Aug 2003 02:22:25 -  1.6
  +++ ClassUtilsTest.java   23 Oct 2003 21:03:44 -  1.7
  @@ -379,6 +379,38 @@
   assertEquals(boolean - boolean, true, 
ClassUtils.isAssignable(Boolean.TYPE, Boolean.TYPE));
   }
   
  +public void testPrimitiveToWrapper() {
  +   
  +// test primitive classes
  +assertEquals(boolean - Boolean.class, 
  +Boolean.class, ClassUtils.primitiveToWrapper(Boolean.TYPE));   
  +assertEquals(byte - Byte.class,
  +Byte.class, ClassUtils.primitiveToWrapper(Byte.TYPE));
  +assertEquals(char - Character.class,
  +Character.class, ClassUtils.primitiveToWrapper(Character.TYPE));
  +assertEquals(short - Short.class,
  +Short.class, ClassUtils.primitiveToWrapper(Short.TYPE));
  +assertEquals(int - Integer.class,
  +Integer.class, ClassUtils.primitiveToWrapper(Integer.TYPE));
  +assertEquals(long - Long.class,
  +Long.class, ClassUtils.primitiveToWrapper(Long.TYPE));
  +assertEquals(double - Double.class,
  +Double.class, ClassUtils.primitiveToWrapper(Double.TYPE));
  +assertEquals(float - Float.class,
  +

cvs commit: jakarta-commons/lang project.xml

2003-10-23 Thread scolebourne
scolebourne2003/10/23 14:04:14

  Modified:lang project.xml
  Log:
  More contributers
  
  Revision  ChangesPath
  1.18  +9 -0  jakarta-commons/lang/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons/lang/project.xml,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- project.xml   7 Oct 2003 21:05:03 -   1.17
  +++ project.xml   23 Oct 2003 21:04:14 -  1.18
  @@ -124,9 +124,15 @@
 nameJustin Couch/name
   /contributor
   contributor
  +  nameNorm Deane/name
  +/contributor
  +contributor
 nameRingo De Smet/name
   /contributor
   contributor
  +  nameRussel Dittmar/name
  +/contributor
  +contributor
 nameSteve Downey/name
   /contributor
   contributor
  @@ -140,6 +146,9 @@
   /contributor
   contributor
 nameMatthew Hawthorne/name
  +/contributor
  +contributor
  +  nameMichael Heuer/name
   /contributor
   contributor
 nameMarc Johnson/name
  
  
  

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



RE: *** HEADS UP *** JIRA MOVING

2003-10-23 Thread Noel J. Bergman
 Is JIRA seen as a replacement to the current
 Bugzilla installation?  Has Scarab been
 dismissed as the proposed replacement?  Just
 curious.

Mulitple ASF projects are already using Jira instead of bugzilla.
Apparently, antipathy for bugzilla was high enough that they went
off-structure to codehaus.

Jira can replace bugzilla.  The notice went out, however, only to lists
already using Jira @ codehaus.  There are Jakarta Commons projects that fall
into that category, e.g., Attributes and Jelly.

--- Noel


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



DO NOT REPLY [Bug 23683] - New method for converting a primitive Class to its corresponding wrapper Class

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23683

New method for converting a primitive Class to its corresponding wrapper Class

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 21:07 ---
Method added, thanks

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



DO NOT REPLY [Bug 23755] - Make javadoc crosslinking configurable

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23755

Make javadoc crosslinking configurable

[EMAIL PROTECTED] changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED



--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 21:11 ---
Change made, thanks.

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



Re: [PATCH] Include enhancements for ExtendedProperties

2003-10-23 Thread Stephen Colebourne
This may be of interest. It depends if it breaks the existing tests. Also
some tests for the new functionality would help :-)

Stephen

- Original Message -
From: Tim McCune [EMAIL PROTECTED]
 This patch is against commons-collections 2.1.  It enhances
 ExtendedProperties in 2 ways.  The first is that it tries to process
 includes as URLs first, then falls back to the preexisting file
 processing.  We use this to refer to classpath resources instead of
 files, which is how you normally need to work in the J2EE world.

 The second is that any properties that you explicitly set in your
 properties file overrides duplicate properties in included files.  This
 behaves more like XSLT, and is generally more useful than the previous
 behavior.







 Index: src/java/org/apache/commons/collections/ExtendedProperties.java
 ===
 RCS file:
/home/cvspublic/jakarta-commons/collections/src/java/org/apache/commons/coll
ections/ExtendedProperties.java,v
 retrieving revision 1.7
 diff -u -r1.7 ExtendedProperties.java
 --- src/java/org/apache/commons/collections/ExtendedProperties.java 12 Jun
2002 03:59:15 - 1.7
 +++ src/java/org/apache/commons/collections/ExtendedProperties.java 21 Oct
2003 19:38:05 -
 @@ -1,5 +1,5 @@
  /*
 - * $Header:
/home/cvs/patches/commons-collections/2.1/includeEnhancements.txt,v 1.1
2003/10/21 19:39:30 tmccune Exp $
 + * $Header:
/home/cvs/patches/commons-collections/2.1/includeEnhancements.txt,v 1.1
2003/10/21 19:39:30 tmccune Exp $
   * $Revision: 1.1 $
   * $Date: 2003/10/21 19:39:30 $
   *
 @@ -61,17 +61,19 @@

  package org.apache.commons.collections;

 -import java.io.IOException;
 +import java.io.BufferedInputStream;
  import java.io.File;
  import java.io.FileInputStream;
  import java.io.InputStream;
  import java.io.InputStreamReader;
 +import java.io.IOException;
  import java.io.LineNumberReader;
  import java.io.OutputStream;
  import java.io.PrintWriter;
  import java.io.Reader;
  import java.io.UnsupportedEncodingException;
 -
 +import java.net.MalformedURLException;
 +import java.net.URL;
  import java.util.ArrayList;
  import java.util.Enumeration;
  import java.util.Hashtable;
 @@ -478,6 +480,7 @@
  public synchronized void load(InputStream input, String enc)
  throws IOException
  {
 +ExtendedProperties includedProps = new ExtendedProperties();
  PropertiesReader reader = null;
  if (enc != null)
  {
 @@ -520,39 +523,45 @@
  if (getInclude() != null 
  key.equalsIgnoreCase(getInclude()))
  {
 -/*
 - * Recursively load properties files.
 - */
 -File file = null;
 -
 -if (value.startsWith(fileSeparator))
 -{
 +ExtendedProperties nextInclude = new
ExtendedProperties();
 +try {
 +nextInclude.load(new BufferedInputStream(new
URL(value).openStream()));
 +} catch (MalformedURLException e) {
  /*
 - * We have an absolute path so we'll
 - * use this.
 + * Recursively load properties files.
   */
 -file = new File(value);
 -}
 -else
 -{
 -/*
 - * We have a relative path, and we have
 - * two possible forms here. If we have the
 - * ./ form then just strip that off first
 - * before continuing.
 - */
 -if (value.startsWith(. + fileSeparator))
 +File file = null;
 +
 +if (value.startsWith(fileSeparator))
  {
 -value = value.substring(2);
 +/*
 + * We have an absolute path so we'll
 + * use this.
 + */
 +file = new File(value);
 +}
 +else
 +{
 +/*
 + * We have a relative path, and we have
 + * two possible forms here. If we have
the
 + * ./ form then just strip that off
first
 + * before continuing.
 + */
 + 

Re: [DBCP] Bug with Poolable PreparedStatements and DriverAdapterCPDS

2003-10-23 Thread Dirk Verbeeck
Looks like there is a bug in prepared statement pooling of DriverAdapterCPDS.
You can report this issue in bugzilla against v1.1.
Sort term solution:
Disable the statement pooling, cpds.setPoolPreparedStatements(false)
or switch to BasicDataSource (statement pooling included in v1.1)
But this bug should be fixed of couse.

Regards
Dirk
Dave Oxley wrote:

When setting up my pool like this:
   DriverAdapterCPDS cpds = new DriverAdapterCPDS();
   cpds.setDriver(jdbc_driver_name);
   cpds.setUrl(url);
   cpds.setUser(user);
   cpds.setPassword(pwd);
   cpds.setPoolPreparedStatements(true);
   SharedPoolDataSource tds = new SharedPoolDataSource();
   tds.setConnectionPoolDataSource(cpds);
   tds.setMaxActive(50);
   tds.setMaxWait(-1);
   tds.setMaxIdle(10);
   tds.setDefaultAutoCommit(false);
I get the following exception when calling prepareStatement(sql):

Caused by: java.lang.RuntimeException: java.lang.ClassCastException
   at 
org.apache.commons.dbcp.cpdsadapter.PooledConnectionImpl.makeObject(PooledConnectionImpl.java:324) 

   at 
org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:792) 

   at 
org.apache.commons.dbcp.cpdsadapter.PooledConnectionImpl.prepareStatement(PooledConnectionImpl.java:243) 

   at 
org.apache.commons.dbcp.cpdsadapter.ConnectionImpl.prepareStatement(ConnectionImpl.java:332) 

Dave.



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


cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang SystemUtils.java

2003-10-23 Thread ggregory
ggregory2003/10/23 14:48:28

  Modified:lang/src/java/org/apache/commons/lang SystemUtils.java
  Log:
  Javadoc 1.4.2 fix.
  
  Revision  ChangesPath
  1.26  +3 -3  
jakarta-commons/lang/src/java/org/apache/commons/lang/SystemUtils.java
  
  Index: SystemUtils.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/SystemUtils.java,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- SystemUtils.java  23 Oct 2003 03:55:34 -  1.25
  +++ SystemUtils.java  23 Oct 2003 21:48:28 -  1.26
  @@ -639,8 +639,8 @@
   public static final boolean IS_OS_SUN_OS = getOSMatches(SunOS);
   
   /**
  - * pIs codetrue/code if this is POSIX compilant system,
  - * ie. any of AIX, HP-UX, Irix, Linux, MacOSX, Solaris or SUN OS./p
  + * pIs codetrue/code if this is a POSIX compilant system,
  + * as in any of AIX, HP-UX, Irix, Linux, MacOSX, Solaris or SUN OS./p
*
* pThe field will return codefalse/code if codeOS_NAME/code is
* codenull/code./p
  
  
  

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



RE: [DBCP] Bug with Poolable PreparedStatements and DriverAdapterCPDS

2003-10-23 Thread Noel J. Bergman
 Looks like there is a bug in prepared statement pooling of
DriverAdapterCPDS.
 You can report this issue in bugzilla against v1.1.

Does this mean we'll be having a 1.1.1 soon?  I saw another bug reported
this AM regarding maxActive=0.

--- Noel


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



DO NOT REPLY [Bug 24082] New: - bug in InstanceKeyDataSourceFactory

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24082

bug in InstanceKeyDataSourceFactory

   Summary: bug in InstanceKeyDataSourceFactory
   Product: Commons
   Version: 1.1 Final
  Platform: All
OS/Version: All
Status: NEW
  Severity: Blocker
  Priority: Other
 Component: Dbcp
AssignedTo: [EMAIL PROTECTED]
ReportedBy: [EMAIL PROTECTED]


I took DBCP 1.1 for a spin today (I was going to try CVS today, but for the
release - if only it had been earlier! :)
 
There's a fatal bug in InstanceKeyDataSourceFactory that means you can't
instantiate more than one factory. I'm using this via Tomcat 4.
 
There is this function that is called first:
InstanceKeyDataSourceFactory.getObjectInstance()
...
String key = null;
if (name != null) 
{
key = name.toString();
obj = instanceMap.get(key); 
}
if (obj == null)
{
InstanceKeyDataSource ds = getNewInstance(ref);
setCommonProperties(ref, ds);
obj = ds;
if (key != null) 
{
instanceMap.put(key, ds);
}
}

So, key = something like myDb, which is put into instanceMap.
 
But then there is:
 
synchronized static String registerNewInstance(InstanceKeyDataSource ds) {
int max = 0;
Iterator i = instanceMap.keySet().iterator();
while (i.hasNext()) {
Object obj = i.next();
if (obj instanceof String) 
{
max = Math.max(max, Integer.parseInt((String)obj));
}
}
String instanceKey = String.valueOf(max + 1);
// put a placeholder here for now, so other instances will not
// take our key.  we will replace with a pool when ready.
instanceMap.put(instanceKey, ds);
return instanceKey;
}

The Math.max line throws a NumberFormatException, because the key is assumed to
be an int, but it is myDb.
 
What is the way to resolve this? My feeling is that it just doesn't set max if
the key is not a number, so the first one gets 0, etc. Is that ok? I've done
this and it seems to work, so I'll attach that quick fix as a patch.

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



DO NOT REPLY [Bug 24082] - bug in InstanceKeyDataSourceFactory

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24082

bug in InstanceKeyDataSourceFactory





--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 22:09 ---
Created an attachment (id=8712)
short patch for bug described - seems to work for me

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



cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/builder ReflectionToStringBuilder.java ToStringBuilder.java

2003-10-23 Thread ggregory
ggregory2003/10/23 15:25:16

  Modified:lang/src/java/org/apache/commons/lang/builder
ReflectionToStringBuilder.java ToStringBuilder.java
  Log:
  Add support for static field output.
  
  Main points: 
  
  (1) 
  Deprecate in ReflectionToStringBuilder:
  
  public static String toString(Object object, ToStringStyle style, boolean 
outputTransients, boolean outputStatics)
  
  In favor of:
  
  public static String toString(Object object, ToStringStyle style, boolean 
outputTransients, boolean outputStatics, Class reflectUpToClass)
  
  (2) New convenience methods ReflectionToStringBuilder.toStringWithStatics.
  
  Revision  ChangesPath
  1.12  +238 -20   
jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
  
  Index: ReflectionToStringBuilder.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- ReflectionToStringBuilder.java7 Sep 2003 14:32:34 -   1.11
  +++ ReflectionToStringBuilder.java23 Oct 2003 22:25:16 -  1.12
  @@ -114,9 +114,9 @@
*/
   private static ThreadLocal registry = new ThreadLocal() {
   protected synchronized Object initialValue() {
  -// The HashSet implementation is not synchronized, 
  -// which is just what we need here. 
  -return new HashSet();
  +// The HashSet implementation is not synchronized, 
  +// which is just what we need here. 
  +return new HashSet();
   }
   };
   
  @@ -150,7 +150,7 @@
   static void register(Object value) {
   getRegistry().add(value);
   }
  -
  +
   /**
* pThis method uses reflection to build a suitable
* codetoString/code using the default codeToStringStyle/code.
  @@ -168,7 +168,7 @@
* @throws IllegalArgumentException if the Object is codenull/code
*/
   public static String toString(Object object) {
  -return toString(object, null, false, null);
  +return toString(object, null, false, false, null);
   }
   
   /**
  @@ -194,7 +194,7 @@
*  codeToStringStyle/code is codenull/code
*/
   public static String toString(Object object, ToStringStyle style) {
  -return toString(object, style, false, null);
  +return toString(object, style, false, false, null);
   }
   
   /**
  @@ -224,7 +224,79 @@
* @throws IllegalArgumentException if the Object is codenull/code
*/
   public static String toString(Object object, ToStringStyle style, boolean 
outputTransients) {
  -return toString(object, style, outputTransients, null);
  +return toString(object, style, outputTransients, false, null);
  +}
  +
  +/**
  + * pThis method uses reflection to build a suitable
  + * codetoString/code./p
  + *
  + * pIt uses codeAccessibleObject.setAccessible/code to gain access to 
private
  + * fields. This means that it will throw a security exception if run
  + * under a security manager, if the permissions are not set up correctly.
  + * It is also not as efficient as testing explicitly./p
  + *
  + * pIf the codeoutputTransients/code is codetrue/code,
  + * transient fields will be output, otherwise they are ignored,
  + * as they are likely derived fields, and not part of the value of the
  + * Object./p
  + *
  + * pIf the codeoutputStatics/code is codetrue/code,
  + * static fields will be output, otherwise they are ignored./p
  + *
  + * pStatic fields will not be included. Superclass fields will be 
appended./p
  + *
  + * pIf the style is codenull/code, the default
  + * codeToStringStyle/code is used./p
  + * 
  + * @param object  the Object to be output
  + * @param style  the style of the codetoString/code to create,
  + *  may be codenull/code
  + * @param outputTransients  whether to include transient fields
  + * @param outputStatics  whether to include transient fields
  + * @return the String result
  + * @throws IllegalArgumentException if the Object is codenull/code
  + */
  +public static String toString(Object object, ToStringStyle style, boolean 
outputTransients, boolean outputStatics) {
  +return toString(object, style, outputTransients, outputStatics, null);
  +}
  +
  +/**
  + * pThis method uses reflection to build a suitable
  + * codetoString/code./p
  + *
  + * pIt uses codeAccessibleObject.setAccessible/code to gain access to 
private
  + * fields. This means that it will throw a security exception if run
  + * under a security manager, if the permissions are not set up correctly.
  + * It is also 

cvs commit: jakarta-commons/lang/src/test/org/apache/commons/lang/builder ToStringBuilderTest.java

2003-10-23 Thread ggregory
ggregory2003/10/23 15:26:00

  Modified:lang/src/test/org/apache/commons/lang/builder
ToStringBuilderTest.java
  Log:
  Add support for static field output.
  
  Main points: 
  
  (1) 
  Deprecate in ReflectionToStringBuilder:
  
  public static String toString(Object object, ToStringStyle style, boolean 
outputTransients, boolean outputStatics)
  
  In favor of:
  
  public static String toString(Object object, ToStringStyle style, boolean 
outputTransients, boolean outputStatics, Class reflectUpToClass)
  
  (2) New convenience methods ReflectionToStringBuilder.toStringWithStatics.
  
  Revision  ChangesPath
  1.11  +85 -1 
jakarta-commons/lang/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java
  
  Index: ToStringBuilderTest.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/test/org/apache/commons/lang/builder/ToStringBuilderTest.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ToStringBuilderTest.java  18 Aug 2003 02:22:26 -  1.10
  +++ ToStringBuilderTest.java  23 Oct 2003 22:26:00 -  1.11
  @@ -840,4 +840,88 @@
   assertEquals(baseStr + [null], new 
ToStringBuilder(base).append((Object) array).toString());
   }
   
  +public void testSimpleReflectionStatics() {
  +SimpleReflectionStaticFieldsFixture instance1 = new 
SimpleReflectionStaticFieldsFixture();
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345],
  +ReflectionToStringBuilder.toString(instance1, null, false, true, 
SimpleReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345],
  +ReflectionToStringBuilder.toString(instance1, null, true, true, 
SimpleReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345],
  +ReflectionToStringBuilder.toStringWithStatics(instance1, null, 
SimpleReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345],
  +ReflectionToStringBuilder.toStringWithStatics(instance1, 
SimpleReflectionStaticFieldsFixture.class));
  +}
  +
  +/**
  + * Tests ReflectionToStringBuilder.toString() for statics.
  + */
  +public void testReflectionStatics() {
  +ReflectionStaticFieldsFixture instance1 = new 
ReflectionStaticFieldsFixture();
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345,instanceString=instanceString,instanceInt=67890],
  +ReflectionToStringBuilder.toString(instance1, null, false, true, 
ReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345,staticTransientString=staticTransientString,staticTransientInt=54321,instanceString=instanceString,instanceInt=67890,transientString=transientString,transientInt=98765],
  +ReflectionToStringBuilder.toString(instance1, null, true, true, 
ReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345,instanceString=instanceString,instanceInt=67890],
  +ReflectionToStringBuilder.toStringWithStatics(instance1, null, 
ReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString=staticString,staticInt=12345,instanceString=instanceString,instanceInt=67890],
  +ReflectionToStringBuilder.toStringWithStatics(instance1, 
ReflectionStaticFieldsFixture.class));
  +}
  +
  +/**
  + * Tests ReflectionToStringBuilder.toString() for statics.
  + */
  +public void testInheritedReflectionStatics() {
  +InheritedReflectionStaticFieldsFixture instance1 = new 
InheritedReflectionStaticFieldsFixture();
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString2=staticString2,staticInt2=67890],
  +ReflectionToStringBuilder.toString(instance1, null, false, true, 
InheritedReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString2=staticString2,staticInt2=67890,staticString=staticString,staticInt=12345],
  +ReflectionToStringBuilder.toString(instance1, null, false, true, 
SimpleReflectionStaticFieldsFixture.class));
  +assertEquals(
  +this.toBaseString(instance1) + 
[staticString2=staticString2,staticInt2=67890,staticString=staticString,staticInt=12345],
  +ReflectionToStringBuilder.toStringWithStatics(instance1, null, 

cvs commit: jakarta-commons/lang/src/java/org/apache/commons/lang/builder ReflectionToStringBuilder.java

2003-10-23 Thread ggregory
ggregory2003/10/23 15:27:45

  Modified:lang/src/java/org/apache/commons/lang/builder
ReflectionToStringBuilder.java
  Log:
  Javadoc nits.
  
  Revision  ChangesPath
  1.13  +3 -5  
jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java
  
  Index: ReflectionToStringBuilder.java
  ===
  RCS file: 
/home/cvs/jakarta-commons/lang/src/java/org/apache/commons/lang/builder/ReflectionToStringBuilder.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- ReflectionToStringBuilder.java23 Oct 2003 22:25:16 -  1.12
  +++ ReflectionToStringBuilder.java23 Oct 2003 22:27:45 -  1.13
  @@ -354,8 +354,6 @@
* pThe default codeToStringStyle/code is used./p
* 
* @param object  the Object to be output
  - * @param reflectUpToClass  the superclass to reflect up to (inclusive),
  - *  may be codenull/code
* @return the String result
* @throws IllegalArgumentException if the Object is codenull/code
*/
  @@ -418,8 +416,8 @@
* @return the String result
* @throws IllegalArgumentException if the Object is codenull/code
*/
  -public static Object toStringWithStatics(Object object, ToStringStyle 
toStringStyle, Class reflectUpToClass) {
  -return toString(object, toStringStyle, false, true, reflectUpToClass);
  +public static Object toStringWithStatics(Object object, ToStringStyle style, 
Class reflectUpToClass) {
  +return toString(object, style, false, true, reflectUpToClass);
   }
   
   /**
  
  
  

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



cvs commit: jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/resources - New directory

2003-10-23 Thread jkeyes
jkeyes  2003/10/23 16:09:07

  jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/resources - New 
directory

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



cvs commit: jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/resources ResourceHelper.java

2003-10-23 Thread jkeyes
jkeyes  2003/10/23 16:09:15

  Modified:cli/src/java/org/apache/commons/cli2
BadPropertyException.java
MissingValueException.java
MissingOptionException.java OptionException.java
UnexpectedOptionException.java
UnexpectedValueException.java BurstException.java
  Added:   cli/src/java/org/apache/commons/cli2
MessagesBundle.properties
   cli/src/java/org/apache/commons/cli2/resources
ResourceHelper.java
  Log:
  
- WIP i18n work
  
  Revision  ChangesPath
  1.2   +89 -82
jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/BadPropertyException.java
  
  Index: BadPropertyException.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/cli/src/java/org/apache/commons/cli2/BadPropertyException.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- BadPropertyException.java 18 Oct 2003 22:00:04 -  1.1
  +++ BadPropertyException.java 23 Oct 2003 23:09:15 -  1.2
  @@ -1,82 +1,89 @@
  -/*
  - * $Header$
  - * $Revision$
  - * $Date$
  - *
  - * 
  - *
  - * The Apache Software License, Version 1.1
  - *
  - * Copyright (c) 2003 The Apache Software Foundation.  All rights
  - * reserved.
  - *
  - * Redistribution and use in source and binary forms, with or without
  - * modification, are permitted provided that the following conditions
  - * are met:
  - *
  - * 1. Redistributions of source code must retain the above copyright
  - *notice, this list of conditions and the following disclaimer.
  - *
  - * 2. Redistributions in binary form must reproduce the above copyright
  - *notice, this list of conditions and the following disclaimer in
  - *the documentation and/or other materials provided with the
  - *distribution.
  - *
  - * 3. The end-user documentation included with the redistribution, if
  - *any, must include the following acknowlegement:
  - *   This product includes software developed by the
  - *Apache Software Foundation (http://www.apache.org/).
  - *Alternately, this acknowlegement may appear in the software itself,
  - *if and wherever such third-party acknowlegements normally appear.
  - *
  - * 4. The names The Jakarta Project, Commons, and Apache Software
  - *Foundation must not be used to endorse or promote products derived
  - *from this software without prior written permission. For written
  - *permission, please contact [EMAIL PROTECTED]
  - *
  - * 5. Products derived from this software may not be called Apache
  - *nor may Apache appear in their names without prior written
  - *permission of the Apache GroupImpl.
  - *
  - * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  - * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  - * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
  - * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  - * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  - * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  - * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  - * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  - * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  - * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  - * SUCH DAMAGE.
  - * 
  - *
  - * This software consists of voluntary contributions made by many
  - * individuals on behalf of the Apache Software Foundation.  For more
  - * information on the Apache Software Foundation, please see
  - * http://www.apache.org/.
  - *
  - */
  -package org.apache.commons.cli2;
  -
  -/**
  - * Thrown if a PropertyOption failed to parse a property correctly.
  - * @author Rob Oxspring
  - */
  -public class BadPropertyException extends OptionException {
  - private final String value;
  -
  - public BadPropertyException(final Option option, final String value) {
  - super(option);
  - this.value = value;
  - }
  -
  - public String getMessage() {
  - final StringBuffer buffer = new StringBuffer();
  - buffer.append(Could not understand property: );
  - buffer.append(value);
  - return buffer.toString();
  - }
  -
  -}
  +/*
  + * $Header$
  + * $Revision$
  + * $Date$
  + *
  + * 
  + *
  + * The Apache Software License, Version 1.1
  + *
  + * Copyright (c) 2003 The Apache Software 

Re: Scripting in Java ?

2003-10-23 Thread Mark R. Diggory
I think its important to point out that BSF is really a Generic 
Framework for plugging in other scripting engines (analogous to how 
JAXP is to SAX/DOM or JNDI is to LDAP). As such, there wouldn't be a 
tremendous amount of activity to improve upon it because its primarily a 
set of Front end API's with what amount to Service Providers for each 
scripting engine. Not much needs to go into supporting it because all 
the development activity is actually going into the underlying 
implementations provided by various vendors.

So with this in mind you can actually plug jython, rhino, etc into it 
and use it as a generic api for your java development. It allows you to 
explore different scripting engines to meet your needs without actually 
having to rewrite the Java code that integrates your Java program with 
the scripting environment.

Best overview I've seen to date:
http://www.javaworld.com/javaworld/jw-03-2000/jw-03-beans.html
I think you'll also find BSF hidden inside a number of major projects 
out there:
http://www-3.ibm.com/software/webservers/appserv/doc/v40/ae/infocenter/was/040205.html
http://xml.apache.org/xalan-j/extensions.html#supported-lang
http://struts.sourceforge.net/struts-bsf/

Must have done something right, if this is the case.

Its important to also understand Jython is the next generation of 
JPython or supersedes it. In other words the JPython developers moved 
over to Jython.

-Mark Diggory

Mark Mascolino wrote:
You might consider Jython ( http://www.jython.org/ ) which also has an
interactive console plugin for jEdit.
Mark Mascolino
http://people.etango.com/~markm/
- Original Message - 
From: Simon Kitching [EMAIL PROTECTED]
To: Jakarta Commons Developers List [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 8:40 PM
Subject: Re: Scripting in Java ?



On Fri, 2003-10-24 at 12:34, Robert Simmons wrote:

Greetings,

I am looking for a scripting framework in Java so that users can write
little

programlets inside a java application. I looked briefly into BSF but it
has had

no releases for over a year and seems rather dead. Anoyne have any
ideas?

Ideally the scripting language would be well suited to parsing and
manipulating

text.
You may wish to look at BeanShell. This is basically interpreted Java.
It is used extensively in the jEdit editor (which is a very cool text
editor by the way).
Regards,

Simon



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



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


cvs commit: jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils/driver SqlNullCheckedResultSetTest.java SqlNullCheckedResultSetTestCase.java

2003-10-23 Thread dgraham
dgraham 2003/10/23 20:43:08

  Modified:dbutils/src/test/org/apache/commons/dbutils
BaseTestCase.java
  Added:   dbutils/src/test/org/apache/commons/dbutils/driver
SqlNullCheckedResultSetTest.java
  Removed: dbutils/src/test/org/apache/commons/dbutils/driver
SqlNullCheckedResultSetTestCase.java
  Log:
  Renamed SqlNullCheckedResultSetTestCase to
  SqlNullCheckedResultSetTest to match other tests and
  cleaned up for new proxy system.
  
  Revision  ChangesPath
  1.6   +5 -3  
jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java
  
  Index: BaseTestCase.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils/BaseTestCase.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- BaseTestCase.java 24 Oct 2003 02:26:59 -  1.5
  +++ BaseTestCase.java 24 Oct 2003 03:43:08 -  1.6
  @@ -68,6 +68,7 @@
   import junit.framework.TestCase;
   import junit.framework.TestSuite;
   
  +import org.apache.commons.dbutils.driver.SqlNullCheckedResultSetTest;
   import org.apache.commons.dbutils.driver.StringTrimmedResultSetTest;
   import org.apache.commons.dbutils.handlers.ArrayHandlerTest;
   import org.apache.commons.dbutils.handlers.ArrayListHandlerTest;
  @@ -145,6 +146,7 @@
   suite.addTestSuite(ScalarHandlerTest.class);
   
   suite.addTestSuite(StringTrimmedResultSetTest.class);
  +suite.addTestSuite(SqlNullCheckedResultSetTest.class);
   
return suite;
}
  
  
  
  1.1  
jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils/driver/SqlNullCheckedResultSetTest.java
  
  Index: SqlNullCheckedResultSetTest.java
  ===
  /*
   * $Header: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/test/org/apache/commons/dbutils/driver/SqlNullCheckedResultSetTest.java,v
 1.1 2003/10/24 03:43:08 dgraham Exp $
   * $Revision: 1.1 $
   * $Date: 2003/10/24 03:43:08 $
   * 
   * 
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *notice, this list of conditions and the following disclaimer in
   *the documentation and/or other materials provided with the
   *distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *any, must include the following acknowledgement:
   *   This product includes software developed by the
   *Apache Software Foundation (http://www.apache.org/).
   *Alternately, this acknowledgement may appear in the software itself,
   *if and wherever such third-party acknowledgements normally appear.
   *
   * 4. The names The Jakarta Project, Commons, and Apache Software
   *Foundation must not be used to endorse or promote products derived
   *from this software without prior written permission. For written
   *permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called Apache
   *nor may Apache appear in their names without prior written
   *permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * http://www.apache.org/.
   *
   */
  
  package 

cvs commit: jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils ProxyFactory.java DbUtils.java

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:01:52

  Modified:dbutils/src/java/org/apache/commons/dbutils/handlers
MapHandler.java BeanListHandler.java
BeanHandler.java MapListHandler.java
ScalarHandler.java ArrayListHandler.java
ArrayHandler.java
   dbutils/src/java/org/apache/commons/dbutils
ProxyFactory.java DbUtils.java
  Log:
  Added thread safety javadoc notes.
  
  Revision  ChangesPath
  1.3   +5 -4  
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/MapHandler.java
  
  Index: MapHandler.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/MapHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MapHandler.java   22 Oct 2003 23:33:25 -  1.2
  +++ MapHandler.java   24 Oct 2003 04:01:52 -  1.3
  @@ -70,7 +70,8 @@
   
   /**
* codeResultSetHandler/code implementation that converts the first
  - * codeResultSet/code row into a codeMap/code.
  + * codeResultSet/code row into a codeMap/code. This class is thread 
  + * safe.
* 
* @see ResultSetHandler
* @author Juozas Baliuka
  
  
  
  1.3   +5 -4  
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java
  
  Index: BeanListHandler.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/BeanListHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BeanListHandler.java  22 Oct 2003 23:33:25 -  1.2
  +++ BeanListHandler.java  24 Oct 2003 04:01:52 -  1.3
  @@ -70,7 +70,8 @@
   
   /**
* codeResultSetHandler/code implementation that converts a
  - * codeResultSet/code into a codeList/code of beans.
  + * codeResultSet/code into a codeList/code of beans. This class is 
  + * thread safe.
* 
* @see ResultSetHandler
* 
  
  
  
  1.3   +4 -4  
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/BeanHandler.java
  
  Index: BeanHandler.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/BeanHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BeanHandler.java  22 Oct 2003 23:33:25 -  1.2
  +++ BeanHandler.java  24 Oct 2003 04:01:52 -  1.3
  @@ -69,7 +69,7 @@
   
   /**
* codeResultSetHandler/code implementation that converts the first 
  - * codeResultSet/code row into a JavaBean.
  + * codeResultSet/code row into a JavaBean. This class is thread safe.
* 
* @see ResultSetHandler
* 
  
  
  
  1.3   +4 -3  
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/MapListHandler.java
  
  Index: MapListHandler.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/MapListHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MapListHandler.java   22 Oct 2003 23:33:25 -  1.2
  +++ MapListHandler.java   24 Oct 2003 04:01:52 -  1.3
  @@ -73,6 +73,7 @@
   /**
* codeResultSetHandler/code implementation that converts a
* codeResultSet/code into a codeList/code of codeMap/codes.
  + * This class is thread safe.
* 
* @see ResultSetHandler
* 
  
  
  
  1.3   +4 -4  
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/ScalarHandler.java
  
  Index: ScalarHandler.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/ScalarHandler.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- ScalarHandler.java22 Oct 2003 23:33:25 -  1.2
  +++ ScalarHandler.java24 Oct 2003 04:01:52 -  1.3
  @@ -68,7 +68,7 @@
   
   /**
* codeResultSetHandler/code implementation that converts one
  - * codeResultSet/code column into an Object.
  + * codeResultSet/code column into an Object. This class is thread safe.
* 
* @see ResultSetHandler
* @author Juozas Baliuka
  
  
  
  1.3   +4 -3  
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/ArrayListHandler.java
  
  Index: ArrayListHandler.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/handlers/ArrayListHandler.java,v
  

cvs commit: jakarta-commons-sandbox/dbutils/xdocs index.xml

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:03:09

  Modified:dbutils/xdocs index.xml
  Log:
  Fixed bad XML.
  
  Revision  ChangesPath
  1.2   +3 -1  jakarta-commons-sandbox/dbutils/xdocs/index.xml
  
  Index: index.xml
  ===
  RCS file: /home/cvs/jakarta-commons-sandbox/dbutils/xdocs/index.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- index.xml 23 Oct 2003 03:41:14 -  1.1
  +++ index.xml 24 Oct 2003 04:03:09 -  1.2
  @@ -26,7 +26,7 @@
li
No possibility for resource leaks.  Correct JDBC coding isn't 
difficult but it is time-consuming and tedious.  This often 
  - leads to connection leaks that maybe difficult to track down.
  + leads to connection leaks that may be difficult to track down.
/li
li
Cleaner, clearer persistence code.  The amount of code needed 
  @@ -121,6 +121,8 @@
   liJava 1.2 (or later)/li
   liJDBC 1.2 (or later)/li
   /ul
  +/section
  +
   /section
   
   /body
  
  
  

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



cvs commit: jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils QueryRunner.java

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:10:21

  Modified:dbutils/src/java/org/apache/commons/dbutils QueryRunner.java
  Log:
  Removed javadoc reference to ResultSetMetaDataHandler.
  
  Revision  ChangesPath
  1.11  +3 -4  
jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/QueryRunner.java
  
  Index: QueryRunner.java
  ===
  RCS file: 
/home/cvs/jakarta-commons-sandbox/dbutils/src/java/org/apache/commons/dbutils/QueryRunner.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- QueryRunner.java  23 Oct 2003 00:28:38 -  1.10
  +++ QueryRunner.java  24 Oct 2003 04:10:21 -  1.11
  @@ -75,7 +75,6 @@
* codeResultSet/codes.  This class is thread safe.
* 
* @see ResultSetHandler
  - * @see ResultSetMetaDataHandler
* 
* @author Henri Yandell
* @author Juozas Baliuka
  
  
  

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



cvs commit: jakarta-commons-sandbox/dbutils LICENSE.txt

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:21:07

  Added:   dbutils  LICENSE.txt
  Log:
  Renamed LICENSE to LICENSE.txt so Maven would
  be quiet.
  
  Revision  ChangesPath
  1.1  jakarta-commons-sandbox/dbutils/LICENSE.txt
  
  Index: LICENSE.txt
  ===
  /* 
   * 
   *
   * The Apache Software License, Version 1.1
   *
   * Copyright (c) 2002-2003 The Apache Software Foundation.  All rights
   * reserved.
   *
   * Redistribution and use in source and binary forms, with or without
   * modification, are permitted provided that the following conditions
   * are met:
   *
   * 1. Redistributions of source code must retain the above copyright
   *notice, this list of conditions and the following disclaimer.
   *
   * 2. Redistributions in binary form must reproduce the above copyright
   *notice, this list of conditions and the following disclaimer in
   *the documentation and/or other materials provided with the
   *distribution.
   *
   * 3. The end-user documentation included with the redistribution, if
   *any, must include the following acknowledgement:
   *   This product includes software developed by the
   *Apache Software Foundation (http://www.apache.org/).
   *Alternately, this acknowledgement may appear in the software itself,
   *if and wherever such third-party acknowledgements normally appear.
   *
   * 4. The names The Jakarta Project, Commons, and Apache Software
   *Foundation must not be used to endorse or promote products derived
   *from this software without prior written permission. For written
   *permission, please contact [EMAIL PROTECTED]
   *
   * 5. Products derived from this software may not be called Apache
   *nor may Apache appear in their names without prior written
   *permission of the Apache Software Foundation.
   *
   * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
   * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
   * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
   * DISCLAIMED.  IN NO EVENT SHALL THE APACHE SOFTWARE FOUNDATION OR
   * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
   * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
   * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
   * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
   * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
   * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
   * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
   * SUCH DAMAGE.
   * 
   *
   * This software consists of voluntary contributions made by many
   * individuals on behalf of the Apache Software Foundation.  For more
   * information on the Apache Software Foundation, please see
   * http://www.apache.org/.
   *
   */
  
  

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



cvs commit: jakarta-commons-sandbox/dbutils LICENSE

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:21:29

  Removed: dbutils  LICENSE
  Log:
  Renamed LICENSE to LICENSE.txt so Maven would
  be quiet.

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



cvs commit: jakarta-commons-sandbox/dbutils project.xml

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:28:45

  Modified:dbutils  project.xml
  Log:
  Fixed version, logo, and test case class.
  
  Revision  ChangesPath
  1.6   +7 -8  jakarta-commons-sandbox/dbutils/project.xml
  
  Index: project.xml
  ===
  RCS file: /home/cvs/jakarta-commons-sandbox/dbutils/project.xml,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- project.xml   20 Oct 2003 02:25:44 -  1.5
  +++ project.xml   24 Oct 2003 04:28:45 -  1.6
  @@ -4,14 +4,14 @@
 version3/version
 namecommons-dbutils/name
 idcommons-dbutils/id
  -  currentVersionSNAPSHOT/currentVersion
  +  currentVersion1.0-dev/currentVersion
   
 organization
   nameApache Software Foundation/name
  -urlhttp://www.apache.org/url
  -logo/images/jakarta-logo-blue.gif/logo
  +urlhttp://www.apache.org//url
  +logohttp://jakarta.apache.org/images/jakarta-logo-blue.gif/logo
 /organization
  -  logo/images/logo.jpg/logo
  +  !--logo/images/logo.jpg/logo--
   
 inceptionYear2002/inceptionYear
 packageorg.apache.commons.dbutils/package
  @@ -22,9 +22,8 @@
 gumpRepositoryIdjakarta-dbutils/gumpRepositoryId
   
 description
  -Commons DbUtils is a package of Java utility classes for their 
  -classes that are in java.sql's hierarchy, or are considered to be 
  -so standard and of such high reuse as to justify existence in java.sql.
  +Commons DbUtils is a package of Java utility classes for easing
  +JDBC development tasks.
 /description
   
 urlhttp://jakarta.apache.org/commons/dbutils//url
  @@ -120,7 +119,7 @@
   !-- Unit test classes --
   unitTest
 includes
  -include**/Test*.java/include
  +include**/BaseTestCase.java/include
 /includes
   /unitTest
   
  
  
  

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



cvs commit: jakarta-commons-sandbox/dbutils build.properties.sample

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:33:07

  Removed: dbutils  build.properties.sample
  Log:
  Fixed version, logo, and test case class.

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



cvs commit: jakarta-commons-sandbox/dbutils build.xml

2003-10-23 Thread dgraham
dgraham 2003/10/23 21:33:14

  Removed: dbutils  build.xml
  Log:
  Fixed version, logo, and test case class.

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



[dbutils] Status Update

2003-10-23 Thread David Graham
A lot has happened in DbUtils recently so here's a quick status update:

The API has been cleaned up.  I added a Proxy based solution to the JDBC
API incompatibilities.  We need to validate that this works the way we
want.

We have pretty good test coverage

The Maven build is successfully running

The website is up at:
http://jakarta.apache.org/commons/sandbox/dbutils/index.html

So, I'm going to start using DbUtils in some of my database apps to give
it some real world testing.  It would be nice if others did this as well. 
A test build is available at:

http://jakarta.apache.org/~dgraham/commons-dbutils-1.0-dev.jar

I think we're pretty close to being able to move into Commons proper.

David

__
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com

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



cvs commit: jakarta-commons/xdocs/stylesheets/menus sandbox.xml

2003-10-23 Thread martinc
martinc 2003/10/23 22:17:23

  Modified:docs beanutils.html charter.html collections.html
commons.html components.html contributors.html
dbcp.html digester.html directory.html
discovery.html el.html index.html jexl.html
lang.html license.html logging.html modeler.html
patches.html pool.html releases.html sandbox.html
versioning.html volunteering.html
   docs/releases index.html mirror.html prepare.html
release.html
   xdocscomponents.xml
   xdocs/stylesheets/menus sandbox.xml
  Log:
  Add visibility for the Chain component.
  
  Revision  ChangesPath
  1.90  +2 -0  jakarta-commons/docs/beanutils.html
  
  Index: beanutils.html
  ===
  RCS file: /home/cvs/jakarta-commons/docs/beanutils.html,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- beanutils.html21 Oct 2003 21:36:42 -  1.89
  +++ beanutils.html24 Oct 2003 05:17:22 -  1.90
  @@ -146,6 +146,8 @@
   /li
   lia 
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache/;Cache/a
   /li
  +lia 
href=http://jakarta.apache.org/commons/sandbox/chain/;Chain/a
  +/li
   lia 
href=http://jakarta.apache.org/commons/sandbox/clazz/;Clazz/a
   /li
   lia 
href=http://jakarta.apache.org/commons/sandbox/configuration/index.html;Configuration/a
  
  
  
  1.86  +2 -0  jakarta-commons/docs/charter.html
  
  Index: charter.html
  ===
  RCS file: /home/cvs/jakarta-commons/docs/charter.html,v
  retrieving revision 1.85
  retrieving revision 1.86
  diff -u -r1.85 -r1.86
  --- charter.html  21 Oct 2003 21:36:42 -  1.85
  +++ charter.html  24 Oct 2003 05:17:22 -  1.86
  @@ -146,6 +146,8 @@
   /li
   lia 
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache/;Cache/a
   /li
  +lia 
href=http://jakarta.apache.org/commons/sandbox/chain/;Chain/a
  +/li
   lia 
href=http://jakarta.apache.org/commons/sandbox/clazz/;Clazz/a
   /li
   lia 
href=http://jakarta.apache.org/commons/sandbox/configuration/index.html;Configuration/a
  
  
  
  1.76  +2 -0  jakarta-commons/docs/collections.html
  
  Index: collections.html
  ===
  RCS file: /home/cvs/jakarta-commons/docs/collections.html,v
  retrieving revision 1.75
  retrieving revision 1.76
  diff -u -r1.75 -r1.76
  --- collections.html  21 Oct 2003 21:36:42 -  1.75
  +++ collections.html  24 Oct 2003 05:17:22 -  1.76
  @@ -146,6 +146,8 @@
   /li
   lia 
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache/;Cache/a
   /li
  +lia 
href=http://jakarta.apache.org/commons/sandbox/chain/;Chain/a
  +/li
   lia 
href=http://jakarta.apache.org/commons/sandbox/clazz/;Clazz/a
   /li
   lia 
href=http://jakarta.apache.org/commons/sandbox/configuration/index.html;Configuration/a
  
  
  
  1.90  +2 -0  jakarta-commons/docs/commons.html
  
  Index: commons.html
  ===
  RCS file: /home/cvs/jakarta-commons/docs/commons.html,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- commons.html  21 Oct 2003 21:36:42 -  1.89
  +++ commons.html  24 Oct 2003 05:17:22 -  1.90
  @@ -146,6 +146,8 @@
   /li
   lia 
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache/;Cache/a
   /li
  +lia 
href=http://jakarta.apache.org/commons/sandbox/chain/;Chain/a
  +/li
   lia 
href=http://jakarta.apache.org/commons/sandbox/clazz/;Clazz/a
   /li
   lia 
href=http://jakarta.apache.org/commons/sandbox/configuration/index.html;Configuration/a
  
  
  
  1.125 +9 -0  jakarta-commons/docs/components.html
  
  Index: components.html
  ===
  RCS file: /home/cvs/jakarta-commons/docs/components.html,v
  retrieving revision 1.124
  retrieving revision 1.125
  diff -u -r1.124 -r1.125
  --- components.html   22 Oct 2003 21:28:38 -  1.124
  +++ components.html   24 Oct 2003 05:17:22 -  1.125
  @@ -146,6 +146,8 @@
   /li
   lia 
href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/cache/;Cache/a
   /li
  +lia 
href=http://jakarta.apache.org/commons/sandbox/chain/;Chain/a
  +/li

*** HEADS UP *** JIRA MOVING

2003-10-23 Thread Noel J. Bergman
Guys,

This is just a HEADS UP.  Apache has set up Jira on nagoya.  We are in the
process of working with codehaus to migrate all of the ASF projects.

We're currently using a test load from codehaus.  Once we've ascertained
that there are no kinks, we'll load the final live data from Bob, at which
point he'll freeze the projects on codehaus to prevent updating the old
repository.

--- Noel


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



DO NOT REPLY [Bug 24012] - Ability to ignore (reject) cookies altogether

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24012

Ability to ignore (reject) cookies altogether





--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 06:22 ---
I wonder whether cookie policy is the right place to address this
particular issue. I'm using the HTTP Client as an implementation
of RFC 2616 (HTTP 1.1), and cookies are specified in RFC 2965.
I'd prefer a way to switch off cookie parsing altogether, like I
can switch off automatic authentication or redirect handling.
Preferably with the cookie parsing logic exposed to the programmer,
for cases when the application decides to parse some or all cookies
anyway.
Currently, I'm using a derived HttpState implementation that overrides
all setters to no-ops. The primary reason for this is that my HttpState
object becomes read-only and the same object can be used by various
threads simultaneously without interferences.
But I guess that's 3.0 talk. For 2.1, the 'reject-all-damn-cookies'
policy sounds like an appropriate solution that can be implemented
with little effort.

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



Re: NTLM Question

2003-10-23 Thread Adrian Sutton
On 23/10/03 2:29 PM, Thamm, Russell [EMAIL PROTECTED]
wrote:

 Hi,
 
 I am interested in using NTLM for authentication on my Apache based webdav
 server. 
 I am using the Slide client (based on httpclient)
 
 I understand that HttpClient supports NTLM but requires me to supply the user
 credentials.
 
 I want to obtain the user's logon credentials from the OS and avoid requiring
 the
 user to reenter his userid and password.
 
 Any ideas on how I do that under java.

You can't.  You will have to write native code to do this as it's inherently
platform specific.  Having said that, Java 1.4.2_02 released recently does
include support for NTLM authentication without prompting the user for their
password so if you can work out how they did that and find a way to take
advantage of it with pure Java it would make a superb addition to the
contrib package.

Personally, I haven't revisited the problem since 1.4.2 came out so I can't
shed too much light on it.

 
 thanks
 Russell Thamm


Regards,

Adrian Sutton.
--
Intencha tomorrow's technology today
Ph: 38478913 0422236329
Suite 8/29 Oatland Crescent
Holland Park West 4121
Australia QLD
www.intencha.com


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



Re: NTLM Question

2003-10-23 Thread Roland Weber
Hello Russell,

the functionality to retrieve the logon credentials from the
operating system is very specific to Windows. On Linux,
some projects (Samba client?) implement an extra PAM
(Pluggable Authentication Module) to mimic this behavio.
It's not good style for the OS itself to remember credentials
longer than absolutely required.
In short, you will have to use OS (Windows) specific code,
which will probably have to be plugged in via JNI, the Java
Native Interface.

regards,
  Roland






Thamm, Russell [EMAIL PROTECTED]
23.10.2003 06:29
Please respond to Commons HttpClient Project
 
To: Commons HttpClient Project 
[EMAIL PROTECTED]
cc: 
Subject:NTLM Question


Hi,

I am interested in using NTLM for authentication on my Apache based webdav 
server. 
I am using the Slide client (based on httpclient)

I understand that HttpClient supports NTLM but requires me to supply the 
user
credentials.

I want to obtain the user's logon credentials from the OS and avoid 
requiring the
user to reenter his userid and password.

Any ideas on how I do that under java.

thanks
Russell Thamm



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




Problem maintaining sessions through HTTPS

2003-10-23 Thread a . r . dikhoff
Hello,

We're trying to connect to an OC4J server through HTTPS. We already got it
working on HTTP, but it seems the client 'forgets' the session state when we
connect to the same server in  HTTPS. The first request goes fine, but after
that it seems the state is lost.

The method we use to maintain session on the client side is by retaining the
HttpState object throughout subsequent calls.

Is this a known bug or am I doing something wrong? Or is something wrong
with the server? I searched bugzilla but I couldn't find anything similar.

Can anyone shed a light on this?


Thanks,

Arjan Dikhoff

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



DO NOT REPLY [Bug 24012] - Ability to ignore (reject) cookies altogether

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24012

Ability to ignore (reject) cookies altogether





--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 07:36 ---
It's certainly a feature that should be provided by the stock implementation.
Every web browser has this feature, so I think we should provide it too.

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



RE: Java 1.1.8 Status

2003-10-23 Thread Kalnichevski, Oleg
 Was there any significant overhead in using the 1.1 counterparts?  

I did not do any performance measurements. Anyways, running on JVM 1.1 one can expect 
quite a bit of a performance degradation compared to newer JVMs.

 Vector and  Hashtable are both synchronized which might be a performance 
 problem if they're used often.  I don't know the internals of 
 HttpClient, so I can't say how often they're used. 

They are used a lot. Synchronized access will undoubtedly will have an impact.

  The com.sun classes 
 are no issue for us, as we ship with them anyway... but I agree that a 
 generic Java 1.1 HttpClient should probably not have the reliance. 

If we ever decide to make the JRE 1.1 port publicly available, we should make a 
reasonable effort not to make it SUN specific. 

Oleg

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



RE: Java 1.1.8 Status

2003-10-23 Thread Kalnichevski, Oleg
Sam,

 Is the source for the existing 1.1 port available anywhere?  

I passed the source onto David (David.Cowan at apcc.com). For my project I had to add 
a few features specific to our particular requirements, which rendered it incompatible 
with HttpClient 2.0. Unfortunately I no longer have the 'pure' port. David is now its 
sole keeper.

 Thanks for your help.  The only part of the conversion I'm actually 
 concerned about is the MultiThreadedHttpConnectionManager -- it's easy 
 enough to just ditch the rest of the missing methods/classes.  Hopefully 
 the basic spirit behind the MultiThreaded manager can remain.

I ended up ditching MultiThreadedHttpConnectionManager altogether along with NTLM  
DIGEST authentication schemes and SSL support. If one needs all these goodies, she 
should seriously consider upgrading to Java 1.2. Choosing between simplicity  
portability versus feature completeness when considering various trade-offs I opted 
for the former.

Cheers

Oleg


Sam Berlin wrote:

 Was there any significant overhead in using the 1.1 counterparts?  
 Vector and  Hashtable are both synchronized which might be a 
 performance problem if they're used often.  I don't know the internals 
 of HttpClient, so I can't say how often they're used.  The com.sun 
 classes are no issue for us, as we ship with them anyway... but I 
 agree that a generic Java 1.1 HttpClient should probably not have the 
 reliance.
 Thanks,
 Sam

 Kalnichevski, Oleg wrote:

 Sam,
 I thought that reliance on com.sun.* classes was a fairly bad idea. 
 So I opted to replace Java 1.2 collection classes with their Java 1.1 
 counterparts. That can make maintenance of a patch against HEAD or 
 2.0 branch difficult.
 I did not add any new methods or classes but I could not resist the 
 temptation of removing all of the deprecated legacy code in HttpClient.

 Oleg

 -Original Message-
 From: Sam Berlin [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, October 22, 2003 16:57
 To: Commons HttpClient Project
 Cc: [EMAIL PROTECTED]
 Subject: Re: Java 1.1.8 Status


 Thanks for the reply, Oleg.

 Was the prior port mainly an exercise in converting 
 java.util.[CollectionClasses] to 
 com.sun.java.util.[CollectionClasses]?  If that's the case (and 
 perhaps with a few new methods sprinkled in) maintaining a patch 
 against the head would probably be the best and easiest way to go.  
 Although I do not quite have the time to keep the JRE 1.1 port 
 completely up to date, I can help keep it relevant, if needed.

 Thanks,
 Sam

 Oleg Kalnichevski wrote:

  

 Hi Sam,

 The fate of the JRE 1.1 port is currently not quite certain. We would
 love the JRE 1.1 port to remain in the public domain (under Apache or
 Apache compatible license), provided the it would be supported and kept
 in sync with our official 2.0 branch. There is a pretty high likelihood
 of JRE 1.1 compatibility requirement to be dropped next year as far as
 my project is concerned (the one that pays my bills, I mean). None of
 HttpClient regulars seems to have any bandwidth left for the JRE 1.1
 port either. 
 I passed the JRE 1.1 port onto David Cowan (David.Cowan at apcc.com) 
 who
 expressed his willingness to help maintain the port. But we still have
 to decide on the details of how exactly the port is supposed be 
 managed.
 I suggest that we invite David to join the discussion. There are a few
 options to consider, ranging from starting a separate SourceSafe 
 project
 to maintaining a patch against the official 2.0 branch. I am personally
 fine with any approach as long as our (rather scarce) resources do not
 end up spread too thin. We already have two branches to maintain
 (2.0-stable  2.1-development) with 3.0 branch coming some time next
 year. All I want to see is that new people would step in to maintain 
 the
 JRE 1.1 port.

 Cheers

 Oleg





 We would love to make the JRE 1.1 available for .



 On Tue, 2003-10-21 at 22:23, Sam Berlin wrote:


   

 Hello everyone,

 Before inquiring as to the Java 1.1.8 status, let me introduce 
 myself.  My name is Sam Berlin, and I'm a developer for LimeWire 
 (www.limewire.org).  We are in the process of adding more generic 
 HTTP handling to LimeWire, and have run into one of the many 
 problems with Sun's HttpUrlConnection -- mainly, the fact that it 
 hangs if a socket is closed before any input is read.  It is 
 possible to wrap all HttpUrlConnection openings around another 
 class and have some watchdog thread kill them off as they hang, but 
 ideally we wouldn't have to do that.  The quandry brought us to 
 looking at other http managers, and ultimately Jakarta's HttpClient.

 I have succesfully (and very easily!) managed to convert some 
 places in our code to using HttpClient, but we must allow backwards 
 compability with Java 1.1.8, as we have many MacOS 9 (and below) 
 users.  (We still receive 10,000+ downloads a week from Mac Classic 
 users.)  We would very much like to use HttpClient, as it seems to 
 have 

Client Certificate Authentication Question

2003-10-23 Thread Dan Tran
Hello, I need to use httpclient rc2 to communiate with a untrusted server (self sign). 
 The server also requires the client to send a client certificate.

Handling untrusted connection over https is straight forward
according to the example in EasySSLProtocolSocketFactory. 

The question here is how to I configure EasySSLProtocolSocketFactory to handle client 
certificate?
Given the fact that I do have client certificate at the httpclient side.

Please advice and many thanks

-Dan


RE: Problem maintaining sessions through HTTPS

2003-10-23 Thread Kalnichevski, Oleg
 We've been examining the headers, but the server doesn't seem to send any
 cookies (in http it does, but not in https). I was assuming this was
 supposed to be done through some under-water process (I'm not very familiar
 with https), but the HttpState object does not contain any cookies in its
 cookie collection after the first request (in http it does). Is this normal?

Some application servers (IBM Websphere 4.0.x for instance) can use SSL session ID 
instead of a session cookie to lookup HTTP session data on the server side. This 
certainly makes things more secure, as many exploits based on stealing or faking  the 
session cookie are rendered impossible.

Oleg

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



DO NOT REPLY [Bug 24081] - Manually set 'Cookie' 'Authorization' headers get discarded

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24081

Manually set 'Cookie'  'Authorization' headers get discarded





--- Additional Comments From [EMAIL PROTECTED]  2003-10-23 21:52 ---
Created an attachment (id=8711)
Patch (take 1)

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



Adding Cookies to a request manually

2003-10-23 Thread Mark R. Diggory
I'm trying to start using the HttpClient (I've always been instantiating 
my own HttpConnections and Methods). I want to manually set a cookie to 
be sent in the HttpRequest I am making, I can build the cookie myself, 
setting the proper domain information. But its unclear to me what the 
proper way to add it to the request is now, setRequestHeader (The old 
method I was using) seems to get cleared out when I use 
HttpClient.execute(HttpMethod method) to execute the request.

any tips would be helpfull, thanks

--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Adding Cookies to a request manually

2003-10-23 Thread Michael Becke
Hi Mark,

You will want to add the cookies to the HttpClient's HttpState.  Please  
take a look at the following for an example:

http://cvs.apache.org/viewcvs.cgi/jakarta-commons/httpclient/src/ 
examples/CookieDemoApp.java?rev=1.12content-type=text/vnd.viewcvs- 
markup

Oleg has also recently created a patch that will keep HttpClient from  
overwriting manually set Cookie/Authentication headers.  This or  
something like it will eventually be applied to HEAD.

 http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24081

Enjoy,

Mike

On Thursday, October 23, 2003, at 07:23 PM, Mark R. Diggory wrote:

I'm trying to start using the HttpClient (I've always been  
instantiating my own HttpConnections and Methods). I want to manually  
set a cookie to be sent in the HttpRequest I am making, I can build  
the cookie myself, setting the proper domain information. But its  
unclear to me what the proper way to add it to the request is now,  
setRequestHeader (The old method I was using) seems to get cleared out  
when I use HttpClient.execute(HttpMethod method) to execute the  
request.

any tips would be helpfull, thanks

--
Mark Diggory
Software Developer
Harvard MIT Data Center
http://www.hmdc.harvard.edu
-
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 15435] - New Preferences Architecture

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

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15435

New Preferences Architecture





--- Additional Comments From [EMAIL PROTECTED]  2003-10-24 02:03 ---
Oleg,

A few comments:

- I think the connectionManagerTimeout should be left on the HttpClient.  The value is 
used by 
HttpClient/HttpMethodDirector when retrieving connections and not directly by the 
connection 
managers.  In fact this seems to be causing a compile error in HttpMethodDirector, 
which was 
initially undetected by Eclipse for some reason.
- What happened to the soTimeout option?

I agree MultiThreadedHttpConnectionManager maxHostConnections and maxTotalConnections 
should be moved to preferences and deprecated.

Mike

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