svn commit: r232587 - /jakarta/commons/proper/math/trunk/project.xml
Author: psteitz Date: Sat Aug 13 23:46:15 2005 New Revision: 232587 URL: http://svn.apache.org/viewcvs?rev=232587view=rev Log: Changed version to 1.2-dev, added Xiaogang Zhang to contributors. Modified: jakarta/commons/proper/math/trunk/project.xml Modified: jakarta/commons/proper/math/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/project.xml?rev=232587r1=232586r2=232587view=diff == --- jakarta/commons/proper/math/trunk/project.xml (original) +++ jakarta/commons/proper/math/trunk/project.xml Sat Aug 13 23:46:15 2005 @@ -21,7 +21,7 @@ pomVersion3/pomVersion nameMath/name idcommons-math/id - currentVersion1.1-RC2/currentVersion + currentVersion1.2-dev/currentVersion inceptionYear2003/inceptionYear shortDescriptionJakarta Commons Math/shortDescription descriptionThe Math project is a library of lightweight, self-contained mathematics and statistics components addressing the most common practical problems not immediately available in the Java programming language or commons-lang./description @@ -146,6 +146,9 @@ /contributor contributor nameJörg Weimar/name +/contributor +contributor + nameXiaogang Zhang/name /contributor /contributors dependencies - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232588 - in /jakarta/commons/proper/math/trunk: src/java/org/apache/commons/math/analysis/ src/test/org/apache/commons/math/analysis/ xdocs/
Author: psteitz Date: Sat Aug 13 23:52:31 2005 New Revision: 232588 URL: http://svn.apache.org/viewcvs?rev=232588view=rev Log: Added numerical integration classes contributed by Xiaogang Zhang. Added: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/RombergIntegrator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/SimpsonIntegrator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/TrapezoidIntegrator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/UnivariateRealIntegrator.java jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/UnivariateRealIntegratorImpl.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/RombergIntegratorTest.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/SimpsonIntegratorTest.java jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/analysis/TrapezoidIntegratorTest.java Modified: jakarta/commons/proper/math/trunk/xdocs/changes.xml Added: jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/RombergIntegrator.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/RombergIntegrator.java?rev=232588view=auto == --- jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/RombergIntegrator.java (added) +++ jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/analysis/RombergIntegrator.java Sat Aug 13 23:52:31 2005 @@ -0,0 +1,108 @@ +/* + * Copyright 2003-2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.math.analysis; + +import org.apache.commons.math.ConvergenceException; +import org.apache.commons.math.FunctionEvaluationException; + +/** + * Implements the a href=http://mathworld.wolfram.com/RombergIntegration.html; + * Romberg Algorithm/a for integrating of real univariate functions. For + * reference, see bIntroduction to Numerical Analysis/b, ISBN 038795452X, + * chapter 3. + * p + * Romberg integration employs k successvie refinements of the trapezoid + * rule to remove error terms less than order O(N^(-2k)). Simpson's rule + * is a special case of k = 2. + * + * @version $Revision$ $Date$ + */ +public class RombergIntegrator extends UnivariateRealIntegratorImpl { + +/** serializable version identifier */ +static final long serialVersionUID = -1058849527738180243L; + +/** + * Construct an integrator for the given function. + * + * @param f function to solve + */ +public RombergIntegrator(UnivariateRealFunction f) { +super(f, 32); +} + +/** + * Integrate the function in the given interval. + * + * @param min the lower bound for the interval + * @param max the upper bound for the interval + * @return the value of integral + * @throws ConvergenceException if the maximum iteration count is exceeded + * or the integrator detects convergence problems otherwise + * @throws FunctionEvaluationException if an error occurs evaluating the + * function + * @throws IllegalArgumentException if any parameters are invalid + */ +public double integrate(double min, double max) throws ConvergenceException, +FunctionEvaluationException, IllegalArgumentException { + +int i = 1, j, m = maximalIterationCount + 1; +// Array strcture here can be improved for better space +// efficiency because only the lower triangle is used. +double r, t[][] = new double[m][m], s, olds; + +clearResult(); +verifyInterval(min, max); +verifyIterationCount(); + +TrapezoidIntegrator qtrap = new TrapezoidIntegrator(this.f); +t[0][0] = qtrap.stage(min, max, 0); +olds = t[0][0]; +while (i = maximalIterationCount) { +t[i][0] = qtrap.stage(min, max, i); +for (j = 1; j = i; j++) { +// Richardson extrapolation coefficient +r = (1L (2 * j)) -1; +t[i][j] = t[i][j-1] + (t[i][j-1] - t[i-1][j-1]) / r; +} +s = t[i][i]; +
DO NOT REPLY [Bug 36060] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36060. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36060 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:53 --- *** This bug has been marked as a duplicate of 36148 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36148] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36148. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36148 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:53 --- *** Bug 36060 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36148] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36148. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36148 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:54 --- *** Bug 35950 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35950] - [math][patch] Add UnivariateRealIntegratorImpl.java
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35950. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35950 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:54 --- *** This bug has been marked as a duplicate of 36148 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35949] - [math][patch] Add UnivariateRealIntegrator.java
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35949. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35949 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:54 --- *** This bug has been marked as a duplicate of 36148 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36148] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36148. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36148 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:54 --- *** Bug 35949 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36066] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36066. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36066 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:55 --- *** This bug has been marked as a duplicate of 36148 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36148] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36148. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36148 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:55 --- *** Bug 36066 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36132] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36132. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36132 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:55 --- *** This bug has been marked as a duplicate of 36148 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36148] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36148. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36148 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:55 --- *** Bug 36132 has been marked as a duplicate of this bug. *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36148] - [math][patch] Integration Source Files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36148. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36148 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 08:56 --- Patches applied with one small change - copyright dates all fixed to be 2005. Thanks! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[math] Houskeeping - committers, contributors please read
Today I created a MATH_1_1 branch that should be close to taggable for the 1.1 release. The only thing remaining is a full resolution to BZ 36105. We should make the changes for this bug there and port them to the trunk as well. Once we have resolution to this, I will roll a final RC and we can vote to release. I also committed the first batch of Xiaogang Zhang's SOC contributions to trunk. This stuff looks very good to me. Thanks, Xiaogang! More eyeballs are always a good thing, though, so all pls review. The analysis package is getting too large, so we should be thinking about how to split it up. For now, I am committing the integration, and interpolation (which I am reviewing now) from Xiaogang into the main analysis package. An obvious breakout would be solver, integration, interpolation. Pls weigh in with ideas. We will need to address this soon. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DO NOT REPLY [Bug 36060] New: - [math][patch] Integration Source Files
On 8/13/05, J.Pietschmann [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Add TrapezoidIntegrator.java Add TrapezoidIntegratorTest.java Update UnivariateRealIntegrator.java Update UnivariateRealIntegratorImpl.java Ok, I had a look at the files. It looks good, except that some style issues which look like being copied from C source should be fixed. Phil, Brent, Al: I've been inactive for a while now but I can take care of integgrating the integration files. I'll create a branch if this interferes with releasing 1.1 Great!! I created a release branch for 1.1 and updated the POM in trunk to 1.2, so there will be no contention with the release. I also committed the sources in what I think is the latest version to trunk. Pls check out and make any changes you see fit. Zhang: you don't have to create a new bugzilla entry for every update, you can just create new attachments to an existing entry. I'd also prefer an attachment for each source file rather than a zip archive. All: What's the opinion about piling up implementations of text book integration algorithms? The holy grail is completely automatic intgration, so that the user doesn't have to know anything about the integrated function. Last time I checked adaptive higher order Gauss integration was en vogue for this purpose. I think one could argue for including both kinds of things, similiar to other places in [math]. Provide users with the choice to select an algorithm or use a default or adaptive selection. I think the basic interface setup that Xiaogang has is sound - though I am open to alternatives - and we could (and should) easily add factory support. J.Pietschmann - 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]
[EMAIL PROTECTED]: Project commons-configuration (in module jakarta-commons) failed
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at [EMAIL PROTECTED] Project commons-configuration has an issue affecting its community integration. This issue affects 18 projects, and has been outstanding for 45 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-configuration : Jakarta commons - commons-jelly-tags-ojb : Commons Jelly - db-ojb : ObjectRelationalBridge - db-ojb-from-packages : ObjectRelationalBridge - db-torque : Persistence Layer - fulcrum-configuration-impl : Services Framework - fulcrum-intake : Services Framework - fulcrum-parser : Services Framework - fulcrum-security-adapter-turbine : Services Framework - fulcrum-security-memory : Services Framework - fulcrum-security-nt : Services Framework - fulcrum-template : Services Framework - jakarta-jetspeed : Enterprise Information Portal - jakarta-turbine-2 : A servlet based framework. - jakarta-turbine-3 : A servlet based framework. - jakarta-turbine-jcs : Cache - scarab : Issue Tracking Built for the Ages - test-ojb : ObjectRelationalBridge Full details are available at: http://vmgump.apache.org/gump/public/jakarta-commons/commons-configuration/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Sole output [commons-configuration-14082005.jar] identifier set to project name -INFO- Failed with reason build failed -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/jakarta-commons/commons-configuration/gump_work/build_jakarta-commons_commons-configuration.html Work Name: build_jakarta-commons_commons-configuration (Type: Build) Work ended in a state of : Failed Elapsed: 3 secs Command Line: java -Djava.awt.headless=true -Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/java/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only -Dmaven.final.name=commons-configuration-14082005 -f build-gump.xml jar [Working Directory: /usr/local/gump/public/workspace/jakarta-commons/configuration] CLASSPATH: /opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/target/classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-14082005.jar:/usr/local/gump/public/workspace/jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar:/usr/local/gump/packages/dom4j-1.4/dom4j-full.jar - Buildfile: build-gump.xml jar: [mkdir] Created dir: /x1/gump/public/workspace/jakarta-commons/configuration/target/classes [javac] Compiling 52 source files to /x1/gump/public/workspace/jakarta-commons/configuration/target/classes [javac] /x1/gump/public/workspace/jakarta-commons/configuration/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java:29: package org.apache.commons.codec.binary does not exist [javac] import org.apache.commons.codec.binary.Hex; [javac]^ [javac] /x1/gump/public/workspace/jakarta-commons/configuration/src/java/org/apache/commons/configuration/plist/PropertyListParser.java:11: package org.apache.commons.codec.binary does not exist [javac] import org.apache.commons.codec.binary.Hex; [javac]^ [javac]
[EMAIL PROTECTED]: Project commons-configuration (in module jakarta-commons) failed
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at [EMAIL PROTECTED] Project commons-configuration has an issue affecting its community integration. This issue affects 18 projects, and has been outstanding for 45 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-configuration : Jakarta commons - commons-jelly-tags-ojb : Commons Jelly - db-ojb : ObjectRelationalBridge - db-ojb-from-packages : ObjectRelationalBridge - db-torque : Persistence Layer - fulcrum-configuration-impl : Services Framework - fulcrum-intake : Services Framework - fulcrum-parser : Services Framework - fulcrum-security-adapter-turbine : Services Framework - fulcrum-security-memory : Services Framework - fulcrum-security-nt : Services Framework - fulcrum-template : Services Framework - jakarta-jetspeed : Enterprise Information Portal - jakarta-turbine-2 : A servlet based framework. - jakarta-turbine-3 : A servlet based framework. - jakarta-turbine-jcs : Cache - scarab : Issue Tracking Built for the Ages - test-ojb : ObjectRelationalBridge Full details are available at: http://vmgump.apache.org/gump/public/jakarta-commons/commons-configuration/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Sole output [commons-configuration-14082005.jar] identifier set to project name -INFO- Failed with reason build failed -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/jakarta-commons/commons-configuration/gump_work/build_jakarta-commons_commons-configuration.html Work Name: build_jakarta-commons_commons-configuration (Type: Build) Work ended in a state of : Failed Elapsed: 3 secs Command Line: java -Djava.awt.headless=true -Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/java/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only -Dmaven.final.name=commons-configuration-14082005 -f build-gump.xml jar [Working Directory: /usr/local/gump/public/workspace/jakarta-commons/configuration] CLASSPATH: /opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/target/classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-14082005.jar:/usr/local/gump/public/workspace/jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar:/usr/local/gump/packages/dom4j-1.4/dom4j-full.jar - Buildfile: build-gump.xml jar: [mkdir] Created dir: /x1/gump/public/workspace/jakarta-commons/configuration/target/classes [javac] Compiling 52 source files to /x1/gump/public/workspace/jakarta-commons/configuration/target/classes [javac] /x1/gump/public/workspace/jakarta-commons/configuration/src/java/org/apache/commons/configuration/plist/PropertyListConfiguration.java:29: package org.apache.commons.codec.binary does not exist [javac] import org.apache.commons.codec.binary.Hex; [javac]^ [javac] /x1/gump/public/workspace/jakarta-commons/configuration/src/java/org/apache/commons/configuration/plist/PropertyListParser.java:11: package org.apache.commons.codec.binary does not exist [javac] import org.apache.commons.codec.binary.Hex; [javac]^ [javac]
[EMAIL PROTECTED]: Project commons-betwixt (in module jakarta-commons) failed
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at [EMAIL PROTECTED] Project commons-betwixt has an issue affecting its community integration. This issue affects 4 projects, and has been outstanding for 10 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-betwixt : Commons Betwixt Package - commons-jelly-tags-betwixt : Commons Jelly - commons-sql : Basic Services Architecture - maven-bootstrap : Project Management Tools Full details are available at: http://vmgump.apache.org/gump/public/jakarta-commons/commons-betwixt/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Sole output [commons-betwixt-14082005.jar] identifier set to project name -INFO- Failed with reason build failed -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/jakarta-commons/commons-betwixt/gump_work/build_jakarta-commons_commons-betwixt.html Work Name: build_jakarta-commons_commons-betwixt (Type: Build) Work ended in a state of : Failed Elapsed: 1 min 52 secs Command Line: java -Djava.awt.headless=true -Dant.build.clonevm=true -Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/java/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only -Dfinal.name=commons-betwixt-14082005 -Dresourcedir=/usr/local/gump/public/workspace/jakarta-commons/betwixt jar [Working Directory: /usr/local/gump/public/workspace/jakarta-commons/betwixt] CLASSPATH: /opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/betwixt/target/classes:/usr/local/gump/public/workspace/jakarta-commons/betwixt/target/test-classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-14082005.jar - [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.digester.Digester peek [junit] WARNING: Empty stack (returning null) [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.digester.Digester peek [junit] WARNING: Empty stack (returning null) [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] - --- [junit] Testcase: testCapitalizeNameMapper took 0.532 sec [junit] Testcase:
[EMAIL PROTECTED]: Project commons-betwixt (in module jakarta-commons) failed
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at [EMAIL PROTECTED] Project commons-betwixt has an issue affecting its community integration. This issue affects 4 projects, and has been outstanding for 10 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-betwixt : Commons Betwixt Package - commons-jelly-tags-betwixt : Commons Jelly - commons-sql : Basic Services Architecture - maven-bootstrap : Project Management Tools Full details are available at: http://vmgump.apache.org/gump/public/jakarta-commons/commons-betwixt/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Sole output [commons-betwixt-14082005.jar] identifier set to project name -INFO- Failed with reason build failed -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/jakarta-commons/commons-betwixt/gump_work/build_jakarta-commons_commons-betwixt.html Work Name: build_jakarta-commons_commons-betwixt (Type: Build) Work ended in a state of : Failed Elapsed: 1 min 52 secs Command Line: java -Djava.awt.headless=true -Dant.build.clonevm=true -Xbootclasspath/p:/usr/local/gump/public/workspace/xml-xerces2/java/build/xercesImpl.jar:/usr/local/gump/public/workspace/xml-commons/java/external/build/xml-apis.jar org.apache.tools.ant.Main -Dgump.merge=/x1/gump/public/gump/work/merge.xml -Dbuild.sysclasspath=only -Dfinal.name=commons-betwixt-14082005 -Dresourcedir=/usr/local/gump/public/workspace/jakarta-commons/betwixt jar [Working Directory: /usr/local/gump/public/workspace/jakarta-commons/betwixt] CLASSPATH: /opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/betwixt/target/classes:/usr/local/gump/public/workspace/jakarta-commons/betwixt/target/test-classes:/usr/local/gump/public/workspace/ant/dist/lib/ant-jmf.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-swing.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-apache-resolver.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-trax.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-junit.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant-nodeps.jar:/usr/local/gump/public/workspace/ant/dist/lib/ant.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar:/usr/local/gump/public/workspace/xml-commons/java/build/resolver.jar:/usr/local/gump/public/workspace/jakarta-commons/digester/dist/commons-digester.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-14082005.jar - [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.digester.Digester peek [junit] WARNING: Empty stack (returning null) [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.digester.Digester peek [junit] WARNING: Empty stack (returning null) [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] Aug 14, 2005 3:00:44 AM org.apache.commons.betwixt.expression.Context popOptions [junit] INFO: Cannot pop options off empty stack [junit] - --- [junit] Testcase: testCapitalizeNameMapper took 0.532 sec [junit] Testcase:
[EMAIL PROTECTED]: Project commons-jelly (in module commons-jelly) failed
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at [EMAIL PROTECTED] Project commons-jelly has an issue affecting its community integration. This issue affects 38 projects, and has been outstanding for 97 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-jelly : Commons Jelly - commons-jelly-tags-ant : Commons Jelly - commons-jelly-tags-antlr : Commons Jelly - commons-jelly-tags-avalon : Commons Jelly - commons-jelly-tags-bean : Commons Jelly - commons-jelly-tags-beanshell : Commons Jelly - commons-jelly-tags-bsf : Commons Jelly - commons-jelly-tags-define : Commons Jelly - commons-jelly-tags-dynabean : Commons Jelly - commons-jelly-tags-email : Commons Jelly - commons-jelly-tags-fmt : Commons Jelly - commons-jelly-tags-html : Commons Jelly - commons-jelly-tags-http : Commons Jelly - commons-jelly-tags-interaction : Commons Jelly - commons-jelly-tags-jaxme : Commons Jelly - commons-jelly-tags-jetty : Commons Jelly - commons-jelly-tags-jface : Commons Jelly - commons-jelly-tags-jms : Commons Jelly - commons-jelly-tags-jmx : Commons Jelly - commons-jelly-tags-jsl : Commons Jelly - commons-jelly-tags-junit : Commons Jelly - commons-jelly-tags-log : Commons Jelly - commons-jelly-tags-memory : Commons Jelly - commons-jelly-tags-quartz : Commons Jelly - commons-jelly-tags-regexp : Commons Jelly - commons-jelly-tags-soap : Commons Jelly - commons-jelly-tags-sql : Commons Jelly - commons-jelly-tags-swing : Commons Jelly - commons-jelly-tags-swt : Commons Jelly - commons-jelly-tags-threads : Commons Jelly - commons-jelly-tags-util : Commons Jelly - commons-jelly-tags-validate : Commons Jelly - commons-jelly-tags-velocity : Commons Jelly - commons-jelly-tags-xml : Commons Jelly - commons-jelly-tags-xmlunit : Commons Jelly - commons-latka : Functional Testing Suite - geronimo : Apache Geronimo, the J2EE server project of the Apache Softw... - maven : Project Management Tools Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Sole output [commons-jelly-14082005.jar] identifier set to project name -DEBUG- Dependency on jakarta-servletapi-5-servlet exists, no need to add for property maven.jar.servletapi. -DEBUG- Dependency on jakarta-taglibs-standard exists, no need to add for property maven.jar.jstl. -DEBUG- Dependency on xml-xerces exists, no need to add for property maven.jar.xerces. -DEBUG- (Gump generated) Maven Properties in: /usr/local/gump/public/workspace/commons-jelly/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/target/test-reports -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/gump_work/build_commons-jelly_commons-jelly.html Work Name: build_commons-jelly_commons-jelly (Type: Build) Work ended in a state of : Failed Elapsed: 60 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly] CLASSPATH: /opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/discovery/dist/commons-discovery.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-14082005.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/forehead/forehead-1.0-beta-5.jar:/usr/local/gump/public/workspace/jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar:/usr/local/gump/public/workspace/jakarta-taglibs/dist/standard/lib/jstl.jar:/usr/local/gump/packages/jaxen-1.1-beta-6/jaxen-1.1-beta-6.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar
[EMAIL PROTECTED]: Project commons-jelly (in module commons-jelly) failed
To whom it may engage... This is an automated request, but not an unsolicited one. For more information please visit http://gump.apache.org/nagged.html, and/or contact the folk at [EMAIL PROTECTED] Project commons-jelly has an issue affecting its community integration. This issue affects 38 projects, and has been outstanding for 97 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-jelly : Commons Jelly - commons-jelly-tags-ant : Commons Jelly - commons-jelly-tags-antlr : Commons Jelly - commons-jelly-tags-avalon : Commons Jelly - commons-jelly-tags-bean : Commons Jelly - commons-jelly-tags-beanshell : Commons Jelly - commons-jelly-tags-bsf : Commons Jelly - commons-jelly-tags-define : Commons Jelly - commons-jelly-tags-dynabean : Commons Jelly - commons-jelly-tags-email : Commons Jelly - commons-jelly-tags-fmt : Commons Jelly - commons-jelly-tags-html : Commons Jelly - commons-jelly-tags-http : Commons Jelly - commons-jelly-tags-interaction : Commons Jelly - commons-jelly-tags-jaxme : Commons Jelly - commons-jelly-tags-jetty : Commons Jelly - commons-jelly-tags-jface : Commons Jelly - commons-jelly-tags-jms : Commons Jelly - commons-jelly-tags-jmx : Commons Jelly - commons-jelly-tags-jsl : Commons Jelly - commons-jelly-tags-junit : Commons Jelly - commons-jelly-tags-log : Commons Jelly - commons-jelly-tags-memory : Commons Jelly - commons-jelly-tags-quartz : Commons Jelly - commons-jelly-tags-regexp : Commons Jelly - commons-jelly-tags-soap : Commons Jelly - commons-jelly-tags-sql : Commons Jelly - commons-jelly-tags-swing : Commons Jelly - commons-jelly-tags-swt : Commons Jelly - commons-jelly-tags-threads : Commons Jelly - commons-jelly-tags-util : Commons Jelly - commons-jelly-tags-validate : Commons Jelly - commons-jelly-tags-velocity : Commons Jelly - commons-jelly-tags-xml : Commons Jelly - commons-jelly-tags-xmlunit : Commons Jelly - commons-latka : Functional Testing Suite - geronimo : Apache Geronimo, the J2EE server project of the Apache Softw... - maven : Project Management Tools Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Sole output [commons-jelly-14082005.jar] identifier set to project name -DEBUG- Dependency on jakarta-servletapi-5-servlet exists, no need to add for property maven.jar.servletapi. -DEBUG- Dependency on jakarta-taglibs-standard exists, no need to add for property maven.jar.jstl. -DEBUG- Dependency on xml-xerces exists, no need to add for property maven.jar.xerces. -DEBUG- (Gump generated) Maven Properties in: /usr/local/gump/public/workspace/commons-jelly/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/target/test-reports -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly/gump_work/build_commons-jelly_commons-jelly.html Work Name: build_commons-jelly_commons-jelly (Type: Build) Work ended in a state of : Failed Elapsed: 60 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly] CLASSPATH: /opt/jdk1.4/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local/gump/public/workspace/jakarta-commons/cli/target/commons-cli-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/discovery/dist/commons-discovery.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-14082005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api-14082005.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/packages/forehead/forehead-1.0-beta-5.jar:/usr/local/gump/public/workspace/jakarta-servletapi-5/jsr154/dist/lib/servlet-api.jar:/usr/local/gump/public/workspace/jakarta-taglibs/dist/standard/lib/jstl.jar:/usr/local/gump/packages/jaxen-1.1-beta-6/jaxen-1.1-beta-6.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar
svn commit: r232615 - in /jakarta/commons/sandbox/jci/trunk: ./ src/test/org/apache/commons/jci/ src/test/org/apache/commons/jci/monitor/ src/test/org/apache/commons/jci/readers/ src/test/org/apache/c
Author: tcurdt Date: Sun Aug 14 08:07:48 2005 New Revision: 232615 URL: http://svn.apache.org/viewcvs?rev=232615view=rev Log: more testcases Added: jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/readers/ jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/readers/FileResourceReaderTestCase.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/stores/TransactinonalResourceStoreTestCase.java Modified: jakarta/commons/sandbox/jci/trunk/TODO jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/CompilingClassLoaderTestCase.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/ReloadingClassLoaderTestCase.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/monitor/FilesystemAlterationMonitorTestCase.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/stores/FileResourceStoreTestCase.java Modified: jakarta/commons/sandbox/jci/trunk/TODO URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/TODO?rev=232615r1=232614r2=232615view=diff == --- jakarta/commons/sandbox/jci/trunk/TODO (original) +++ jakarta/commons/sandbox/jci/trunk/TODO Sun Aug 14 08:07:48 2005 @@ -1,8 +1,10 @@ o integrate just4log into the build system -o subscribing to compiler events -o monitor multiple repositories o compiler factory o compiler implementations o groovy o embedded java compiler o javac + o jikes +o transformation pipelines +o make suffixes matching (*.java, *.class) configurable +o documentation Modified: jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/CompilingClassLoaderTestCase.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/CompilingClassLoaderTestCase.java?rev=232615r1=232614r2=232615view=diff == --- jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/CompilingClassLoaderTestCase.java (original) +++ jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/CompilingClassLoaderTestCase.java Sun Aug 14 08:07:48 2005 @@ -152,6 +152,7 @@ } protected void tearDown() throws Exception { +cl.removeListener(listener); cl.stop(); super.tearDown(); } Modified: jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/ReloadingClassLoaderTestCase.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/ReloadingClassLoaderTestCase.java?rev=232615r1=232614r2=232615view=diff == --- jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/ReloadingClassLoaderTestCase.java (original) +++ jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/ReloadingClassLoaderTestCase.java Sun Aug 14 08:07:48 2005 @@ -16,29 +16,137 @@ package org.apache.commons.jci; import java.io.File; -import junit.framework.TestCase; +import org.apache.commons.jci.compilers.Programs; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; -public final class ReloadingClassLoaderTestCase extends TestCase { +public final class ReloadingClassLoaderTestCase extends AbstractTestCase { + +private final static Log log = LogFactory.getLog(ReloadingClassLoaderTestCase.class); + +private final Signal reload = new Signal(); private ReloadingClassLoader cl; -private File repository; +private ReloadingClassLoaderListener listener; protected void setUp() throws Exception { +super.setUp(); + +listener = new ReloadingClassLoaderListener() { +public void reload() { +synchronized(reload) { +reload.triggered = true; +reload.notify(); +} +} +}; + +cl = new ReloadingClassLoader(this.getClass().getClassLoader(), directory); +cl.addListener(listener); +cl.start(); +} + +private void initialCompile() throws Exception { +delay(); + +// writeFile +// compile file + +waitForSignal(reload); + +writeFile(jci/Simple.class, +Programs.simple +); + +waitForSignal(reload); +} + + +public void testCreate() throws Exception { +initialCompile(); + +Object o; + +o = cl.loadClass(jci.Simple).newInstance(); +assertTrue(Simple.equals(o.toString())); } +public void testChange() throws Exception { +initialCompile(); -public void testCreate() { +Object o; + +o = cl.loadClass(jci.Simple).newInstance(); +
svn commit: r232616 - /jakarta/commons/proper/configuration/trunk/gump.xml
Author: oheger Date: Sun Aug 14 08:23:00 2005 New Revision: 232616 URL: http://svn.apache.org/viewcvs?rev=232616view=rev Log: Added new dependency to commons-codec to gump.xml Modified: jakarta/commons/proper/configuration/trunk/gump.xml Modified: jakarta/commons/proper/configuration/trunk/gump.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/gump.xml?rev=232616r1=232615r2=232616view=diff == --- jakarta/commons/proper/configuration/trunk/gump.xml (original) +++ jakarta/commons/proper/configuration/trunk/gump.xml Sun Aug 14 08:23:00 2005 @@ -22,6 +22,8 @@ /depend depend project=commons-logging /depend +depend project=commons-codec +/depend depend project=dom4j /depend depend project=jakarta-ant - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232623 - in /jakarta/commons/proper/validator/trunk/src: share/org/apache/commons/validator/EmailValidator.java test/org/apache/commons/validator/EmailTest.java
Author: mrdon Date: Sun Aug 14 10:29:04 2005 New Revision: 232623 URL: http://svn.apache.org/viewcvs?rev=232623view=rev Log: Added check for the ' character in a domain name PR: 29541 Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java?rev=232623r1=232622r2=232623view=diff == --- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java (original) +++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java Sun Aug 14 10:29:04 2005 @@ -41,11 +41,11 @@ */ public class EmailValidator { -private static final String SPECIAL_CHARS = \\(\\)@,;:\.\\[\\]; +private static final String SPECIAL_CHARS = \\(\\)@,;:'\.\\[\\]; private static final String VALID_CHARS = [^\\s + SPECIAL_CHARS + ]; private static final String QUOTED_USER = (\[^\]*\); private static final String ATOM = VALID_CHARS + '+'; -private static final String WORD = ( + ATOM + | + QUOTED_USER + ); +private static final String WORD = (( + VALID_CHARS + |')+| + QUOTED_USER + ); // Each pattern must be surrounded by / private static final String LEGAL_ASCII_PATTERN = /^[\\000-\\177]+$/; Modified: jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java?rev=232623r1=232622r2=232623view=diff == --- jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java (original) +++ jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java Sun Aug 14 10:29:04 2005 @@ -174,9 +174,13 @@ info.setValue([EMAIL PROTECTED]); valueTest(info, false); -// The ' character is valid in an email address. +// The ' character is valid in an email username. info.setValue(andy.o'[EMAIL PROTECTED]); valueTest(info, true); + +// But not in the domain name. +info.setValue([EMAIL PROTECTED]'reilly.data-workshop.com); +valueTest(info, false); info.setValue([EMAIL PROTECTED]); valueTest(info, true); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 29541] - [validator] EmailValidator allows apostrophes in domain name
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=29541. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=29541 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 19:29 --- Fixed in changeset [232623] Thanks for the patch! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232626 - /jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/
Author: mrdon Date: Sun Aug 14 10:45:34 2005 New Revision: 232626 URL: http://svn.apache.org/viewcvs?rev=232626view=rev Log: Changing the strategy for locating form name/id, now use a common utility function which works in both IE and Firefox PR: 35127 and 32760 Modified: jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateByte.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateDate.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateEmail.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloat.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloatRange.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateIntRange.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateInteger.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateMask.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateMaxLength.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateMinLength.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateRequired.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateShort.js jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateUtilities.js Modified: jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateByte.js URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateByte.js?rev=232626r1=232625r2=232626view=diff == --- jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateByte.js (original) +++ jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateByte.js Sun Aug 14 10:45:34 2005 @@ -11,11 +11,8 @@ var focusField = null; var i = 0; var fields = new Array(); -var formName = form.getAttributeNode(name); -if (formName == null) { -formName = form.getAttributeNode(id); -} -oByte = eval('new ' + formName.value + '_ByteValidations()'); + +oByte = eval('new ' + retrieveFormName(form) + '_ByteValidations()'); for (x in oByte) { var field = form[oByte[x][0]]; Modified: jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js?rev=232626r1=232625r2=232626view=diff == --- jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js (original) +++ jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateCreditCard.js Sun Aug 14 10:45:34 2005 @@ -11,12 +11,8 @@ var focusField = null; var i = 0; var fields = new Array(); -var formName = form.getAttributeNode(name); -if (formName == null) { -formName = form.getAttributeNode(id); -} -oCreditCard = eval('new ' + formName.value + '_creditCard()'); +oCreditCard = eval('new ' + retrieveFormName(form) + '_creditCard()'); for (x in oCreditCard) { if ((form[oCreditCard[x][0]].type == 'text' || Modified: jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateDate.js URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateDate.js?rev=232626r1=232625r2=232626view=diff == --- jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateDate.js (original) +++ jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateDate.js Sun Aug 14 10:45:34 2005 @@ -11,12 +11,8 @@ var focusField = null; var i = 0; var fields =
DO NOT REPLY [Bug 35294] - [validator] All validation fails when name attribute in form not specified
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35294. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35294 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 19:46 --- Fixed in changeset [232636] Thanks for the patch! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232628 - in /jakarta/commons/proper/validator/trunk/src: share/org/apache/commons/validator/UrlValidator.java test/org/apache/commons/validator/UrlTest.java
Author: mrdon Date: Sun Aug 14 11:30:40 2005 New Revision: 232628 URL: http://svn.apache.org/viewcvs?rev=232628view=rev Log: Changing url validator to accept empty paths and those with a trailing slash PR: 30686 Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/UrlTest.java Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java?rev=232628r1=232627r2=232628view=diff == --- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java (original) +++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/UrlValidator.java Sun Aug 14 11:30:40 2005 @@ -148,7 +148,7 @@ */ private static final int PARSE_AUTHORITY_EXTRA = 3; -private static final String PATH_PATTERN = /^(/[-\\w:@?=+,.!/~*'%$]*)$/; +private static final String PATH_PATTERN = /^(/[-\\w:@?=+,.!/~*'%$]*)?$/; private static final String QUERY_PATTERN = /^(.*)$/; @@ -420,10 +420,6 @@ Perl5Util pathMatcher = new Perl5Util(); if (!pathMatcher.match(PATH_PATTERN, path)) { -return false; -} - -if (path.endsWith(/)) { return false; } Modified: jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/UrlTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/UrlTest.java?rev=232628r1=232627r2=232628view=diff == --- jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/UrlTest.java (original) +++ jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/UrlTest.java Sun Aug 14 11:30:40 2005 @@ -95,6 +95,8 @@ */ public void testIsValid(Object[] testObjects, int options) { UrlValidator urlVal = new UrlValidator(null, options); + assertTrue(urlVal.isValid(http://www.google.com;)); + assertTrue(urlVal.isValid(http://www.google.com/;)); int statusPerLine = 60; int printed = 0; if (printIndex) { @@ -237,8 +239,8 @@ new TestPair(/$23, true), new TestPair(/.., false), new TestPair(/../, false), - new TestPair(/test1/, false), - new TestPair(, false), + new TestPair(/test1/, true), + new TestPair(, true), new TestPair(/test1/file, true), new TestPair(/..//file, false), new TestPair(/test1//file, false) @@ -249,9 +251,9 @@ new TestPair(/$23, true), new TestPair(/.., false), new TestPair(/../, false), -new TestPair(/test1/, false), +new TestPair(/test1/, true), new TestPair(/#, false), -new TestPair(, false), +new TestPair(, true), new TestPair(/test1/file, true), new TestPair(/t123/file, true), new TestPair(/$23/file, true), - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 30686] - [validator] UrlValidator fails http://www.google.com
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30686. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30686 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 20:31 --- Fixed in changeset [232628]. Thanks for the patch! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 30872] - [validator] More generic handling of form field values
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=30872. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=30872 [EMAIL PROTECTED] changed: What|Removed |Added Severity|normal |enhancement Summary|[validator] Client Side |[validator] More generic |required field validation |handling of form field |fails for SELECT lists and |values |checkboxes | --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 20:37 --- Since this problem is admittedly fixed, I'm marking it as an enhancement as further functionality is desired. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31534] - [validator] validateRequired.js uses unsupported DOM method for validation.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31534. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31534 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 20:52 --- This has been fixed in response to bug #35294. Thanks for the patch though! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232632 - in /jakarta/commons/proper/validator/trunk/src: share/org/apache/commons/validator/EmailValidator.java test/org/apache/commons/validator/EmailTest.java
Author: mrdon Date: Sun Aug 14 12:42:37 2005 New Revision: 232632 URL: http://svn.apache.org/viewcvs?rev=232632view=rev Log: Changed email validation on the tld: - Requires alphabetic character, so no dashes - Must be 2 or more characters, but no upper limit In the future, a list of TLD's should be able to be passed to the validator, or be configurable in some other way. PR: 33409 and 31644 Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java?rev=232632r1=232631r2=232632view=diff == --- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java (original) +++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/EmailValidator.java Sun Aug 14 12:42:37 2005 @@ -34,8 +34,8 @@ * /p * p * This implementation is not guaranteed to catch all possible errors in an email address. - * For example, an address like [EMAIL PROTECTED] will pass validator, even though there - * is no TLD d- + * For example, an address like [EMAIL PROTECTED] will pass validator, even though there + * is no TLD somedog * /p. * @since Validator 1.1 */ @@ -52,7 +52,8 @@ private static final String EMAIL_PATTERN = /^(.+)@(.+)$/; private static final String IP_DOMAIN_PATTERN = /^\\[(\\d{1,3})[.](\\d{1,3})[.](\\d{1,3})[.](\\d{1,3})\\]$/; - +private static final String TLD_PATTERN = /^([a-zA-Z]+)$/; + private static final String USER_PATTERN = /^\\s* + WORD + (\\. + WORD + )*\\s*$/; private static final String DOMAIN_PATTERN = /^\\s* + ATOM + (\\. + ATOM + )*\\s*$/; private static final String ATOM_PATTERN = /( + ATOM + )/; @@ -206,14 +207,21 @@ } int len = i; -if (domainSegment[len - 1].length() 2 -|| domainSegment[len - 1].length() 4) { - -return false; -} - + // Make sure there's a host name preceding the domain. if (len 2) { +return false; +} + +// TODO: the tld should be checked against some sort of configurable +// list +String tld = domainSegment[len - 1]; +if (tld.length() 1) { +Perl5Util matchTldPat = new Perl5Util(); +if (!matchTldPat.match(TLD_PATTERN, tld)) { +return false; +} +} else { return false; } Modified: jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java?rev=232632r1=232631r2=232632view=diff == --- jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java (original) +++ jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/EmailTest.java Sun Aug 14 12:42:37 2005 @@ -119,14 +119,17 @@ info.setValue([EMAIL PROTECTED]); valueTest(info, true); -info.setValue([EMAIL PROTECTED]); -valueTest(info, false); - info.setValue([EMAIL PROTECTED]); valueTest(info, false); info.setValue([EMAIL PROTECTED]); valueTest(info, false); + +info.setValue([EMAIL PROTECTED]); +valueTest(info, true); + +info.setValue([EMAIL PROTECTED]); +valueTest(info, false); } /** @@ -141,11 +144,11 @@ valueTest(info, true); info.setValue([EMAIL PROTECTED]); - valueTest(info, true); + valueTest(info, false); info.setValue([EMAIL PROTECTED]); - valueTest(info,true); + valueTest(info,false); info.setValue([EMAIL PROTECTED]); - valueTest(info, true); + valueTest(info, false); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31644] - [validator] JavaScript email validation doesn't accept 4 letter TLDs (.info,.name)
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31644. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31644 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 21:43 --- Fixed, however, the javascript already accepted 4 character tld's anyways. Thanks for patch regardless! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33409] - [validator] Email: inexisting dashes and TLD erroneously accepted
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33409. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33409 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 21:44 --- Fixed now by requiring the TLD to be a alphabetic character and 2 or more characters. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31950] - [validator] Validator 1.1.3 Logging causes Unparseable Date Exception
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=31950. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=31950 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 21:49 --- This is probably a problem with your log4j configuration. commons-validator has no control over how log.warn is handled by your logging implementation. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232633 - /jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloat.js
Author: mrdon Date: Sun Aug 14 12:54:13 2005 New Revision: 232633 URL: http://svn.apache.org/viewcvs?rev=232633view=rev Log: Adding check for float value with multiple '.' characters PR: 32351 Modified: jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloat.js Modified: jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloat.js URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloat.js?rev=232633r1=232632r2=232633view=diff == --- jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloat.js (original) +++ jakarta/commons/proper/validator/trunk/src/javascript/org/apache/commons/validator/javascript/validateFloat.js Sun Aug 14 12:54:13 2005 @@ -45,7 +45,7 @@ } var noZeroString = joinedString.substring(zeroIndex,joinedString.length); -if (!isAllDigits(noZeroString)) { +if (!isAllDigits(noZeroString) || tempArray.length 2) { bValid = false; if (i == 0) { focusField = field; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 32351] - [validator] Float validator can't validate the string with several dot
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=32351. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32351 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 21:54 --- Fixed. Thanks for the patch! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 32978] - [validator] Validating Arrays of simple Objects
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=32978. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32978 [EMAIL PROTECTED] changed: What|Removed |Added Severity|normal |enhancement -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33415] - [validator] Getting Validator defitions from other resource types
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33415. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33415 [EMAIL PROTECTED] changed: What|Removed |Added Severity|normal |enhancement -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33436] - [validator] DateValidation doesn't allow dates
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=33436. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33436 [EMAIL PROTECTED] changed: What|Removed |Added Severity|normal |enhancement -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34324] - [email] Valid email does not pass the check
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34324. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34324 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 21:59 --- This has been fixed. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jci] initial compiling
Hello, I have a problem with loading a class immediately after the setup of the CompilingClassLoader. With a setup like in the TestCases using a signal object it does not work (I get ClassNotFoundException), because the CCL does release a reload() event immediately after setup - before my files have been compiled. Removing the reload() from the last line of start() in the CCL seems to be the correct way. The CCL is waiting for the CompilingListener then and does release a reload() event after compiling is finished. The problem seems to be an initial empty directory, because in this case the CompilingListener does not release the reload() event. But with the two reload()s I can not distinct between the events (just wait for the second reload() sounds not really reliable). So I need either access to the CompilingListener to get informed about the finished compiling or the reload() must send information about the type of event (like the ActionListeners in AWT). But IMO this should be fixed in the CompilingListener without the reload() in CCL as there is no difference in starting with an empty directory or later emptying a directory. Do I have missed something? WDYT? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35146] - [validator] validateFloat fail when field is already format with comma
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35146. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35146 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||DUPLICATE --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 22:14 --- The validateFloat is actually validating whether the value is a valid Java float string, not a valid, localized float. I'm assigning this as a duplicate of bug #16249 which requests localized float validations. *** This bug has been marked as a duplicate of 16249 *** -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36181] New: - [exec][patch]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36181. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36181 Summary: [exec][patch] Product: Commons Version: unspecified Platform: Other OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Sandbox AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] get-deps doesn't work if dest directory doesn't exist (ant 1.6.5, Linux) This one-liner patch fixes it for me. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36181] - [exec][patch]
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36181. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36181 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 23:03 --- Created an attachment (id=16043) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=16043action=view) Simple fix. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36181] - [exec][patch] ant get-deps target fails to download dependency
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36181. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36181 [EMAIL PROTECTED] changed: What|Removed |Added Summary|[exec][patch] |[exec][patch] ant get-deps ||target fails to download ||dependency -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug report for Commons [2005/08/14]
+---+ | Bugzilla Bug ID | | +-+ | | Status: UNC=Unconfirmed NEW=New ASS=Assigned| | | OPN=ReopenedVER=Verified(Skipped Closed/Resolved) | | | +-+ | | | Severity: BLK=Blocker CRI=CriticalMAJ=Major | | | | MIN=Minor NOR=Normal ENH=Enhancement | | | | +-+ | | | | Date Posted | | | | | +--+ | | | | | Description | | | | | | | | 6508|Ass|Enh|2002-02-17|[lakta] HttpClient now supports proxyHost and prox| | 6826|Ass|Enh|2002-03-04|[lakta] Need to have xml files validated against D| | 6829|Ass|Enh|2002-03-04|[lakta] Allow easier way of user specified tests | | 7069|Ass|Enh|2002-03-13|[lakta] DTD and DOM Validators| | 7135|Opn|Enh|2002-03-14|[beanutils] Misleading error message when beaninfo| | 7226|Opn|Enh|2002-03-19|[beanutils] Nested Bean Collection| | 7367|New|Nor|2002-03-22|[services] ServiceManager not actually serializabl| | 7465|New|Nor|2002-03-25|[lakta] Need better 'dist' build | | 7981|Ver|Nor|2002-04-11|[codec][PATCH] add 2 new methods for encoding stri| |10319|New|Enh|2002-06-28|[beanutils] Instantiate property if null in form b| |12807|New|Nor|2002-09-19|[lakta][PATCH] Update build.xml to use commons-log| |13390|New|Nor|2002-10-07|[lakta] ResponseHeaderHandler and ResponseHeaderVa| |13426|New|Enh|2002-10-08|[lakta][PATCH] xml-reference.xml responseHeader ad| |13743|Opn|Enh|2002-10-17|[beanutils] Need getPropertyType(Class theClass, S| |14394|Ver|Nor|2002-11-08|[beanutils] Excessive exceptions log under securit| |14471|Inf|Nor|2002-11-12|[validator] validator-rules.xml JavaScript fails w| |14667|Ver|Maj|2002-11-19|[beanutils] PropertyUtils.copyProperties does not | |15451|Opn|Enh|2002-12-17|[beanutils] Multiple mapped properties not possibl| |15519|Ver|Maj|2002-12-19|[beanutils] PropertyUtils.getPropertyType() for ja| |15744|New|Nor|2002-12-31|[scaffold] Scaffold ResultSet used after statement| |16038|Opn|Enh|2003-01-13|[beanutils] LocaleBeanUtils.copyProperties() does | |16249|Opn|Enh|2003-01-20|[validator] localized float validation| |16394|New|Enh|2003-01-24|[validator] Enhance the IndexedListProperty to han| |16525|Opn|Enh|2003-01-29|[beanutils] BeanUtils.setProperty is over-zealous | |16600|New|Nor|2003-01-30|[lakta] JUnitTestAdapter throws SAXException becau| |16634|New|Enh|2003-01-31|[validator] reuiredif ignores missing property| |16873|New|Enh|2003-02-07|[lakta] Specifying a different latka.properties fi| |16920|Opn|Enh|2003-02-10|[validator] Declaration of Locale (language/countr| |17002|New|Enh|2003-02-12|[beanutils] Problem with index property | |17102|New|Enh|2003-02-15|[lakta] Can't embed characters in paramValue | |17306|Opn|Enh|2003-02-22|[validator] Extend field tag with forward attr| |17501|New|Enh|2003-02-27|[beanutils] Add dynamic discovery of mapped proper| |17662|New|Nor|2003-03-05|[cli] Unknown options are ignored instead of throw| |17663|New|Nor|2003-03-05|[beanutils] getArrayProperty does not use ConvertU| |17682|New|Nor|2003-03-05|[cli] HelpFormatter does not wrap lines correctly | |17769|New|Blk|2003-03-07|[scaffold] pre-mature closing of Statement and Pre| |17957|New|Cri|2003-03-13|[launcher] - on OutOfMemoryError no message | |18087|New|Enh|2003-03-18|[beanutils] Add BeanFactory class for dynamic fact| |18773|New|Enh|2003-04-07|[reflect] Can add a method cache in MethodUtils | |18811|New|Min|2003-04-08|[beanutils] Misleading error message in Converting| |18942|New|Enh|2003-04-11|[beanutils] Add t/f to BooleanConverter | |19781|New|Nor|2003-05-08|[beanutils] PropertyUtils.copyProperties throws ex| |19857|New|Enh|2003-05-12|[beanutils] Methods ConvertUtilsBean.convert could| |20015|Ass|Nor|2003-05-18|[lang] Make Entities public and unit test | |20027|New|Enh|2003-05-19|[beanutils] ConvertUtils enhancements | |20057|New|Nor|2003-05-20|[lakta] Difficulty to download sample Latka test| |20067|New|Nor|2003-05-20|[lakta] sample Latka test suite SUITE FAILED - c| |20449|New|Enh|2003-06-03|[validator] Define flag for validating current pag| |20520|New|Enh|2003-06-05|[beanutils] MethodUtils: Need easy way to invoke s| |20523|New|Enh|2003-06-05|[fileupload] Model FileUpload model to mimic javax| |20549|New|Enh|2003-06-06|[beanutils] Handling of exceptions thrown during B|
svn commit: r232645 - in /jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator: DateTest.java TestTypeValidator.java ValidatorTestSuite.java validator-date.xml validator-type.x
Author: mrdon Date: Sun Aug 14 14:11:48 2005 New Revision: 232645 URL: http://svn.apache.org/viewcvs?rev=232645view=rev Log: Added unit tests for date validation Added: jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/DateTest.java jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/validator-date.xml Modified: jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/TestTypeValidator.java jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/ValidatorTestSuite.java jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/validator-type.xml Added: jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/DateTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/DateTest.java?rev=232645view=auto == --- jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/DateTest.java (added) +++ jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/DateTest.java Sun Aug 14 14:11:48 2005 @@ -0,0 +1,138 @@ +/* + * $Id: DateTest.java 155434 2005-02-26 13:16:41Z dirkv $ + * $Rev: 155434 $ + * $Date: 2005-02-26 05:16:41 -0800 (Sat, 26 Feb 2005) $ + * + * + * Copyright 2001-2005 The Apache Software Foundation + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.commons.validator; + +import java.io.IOException; +import java.util.*; + +import junit.framework.Test; +import junit.framework.TestSuite; + +import org.xml.sax.SAXException; + +/** + * Abstracts date unit tests methods. + */ +public class DateTest extends TestCommon { + +/** + * The key used to retrieve the set of validation + * rules from the xml file. + */ +protected String FORM_KEY = dateForm; + +/** + * The key used to retrieve the validator action. + */ +protected String ACTION = date; + + +public DateTest(String name) { +super(name); +} + +/** + * Start the tests. + * + * @param theArgs the arguments. Not used + */ +public static void main(String[] theArgs) { +junit.awtui.TestRunner.main(new String[]{DateTest.class.getName()}); +} + +/** + * Load codeValidatorResources/code from + * validator-numeric.xml. + */ +protected void setUp() throws IOException, SAXException { +// Load resources +loadResources(validator-date.xml); +} + +protected void tearDown() { +} + +/** + * @return a test suite (codeTestSuite/code) that includes all methods + * starting with test + */ +public static Test suite() { +// All methods starting with test will be executed in the test suite. +return new TestSuite(DateTest.class); +} + +/** + * Tests the date validation. + */ +public void testValidDate() throws ValidatorException { +// Create bean to run test on. +ValueBean info = new ValueBean(); +info.setValue(12/01/2005); +valueTest(info, true); +} + +/** + * Tests the date validation. + */ +public void testInvalidDate() throws ValidatorException { +// Create bean to run test on. +ValueBean info = new ValueBean(); +info.setValue(12/01as/2005); +valueTest(info, false); +} + + +/** + * Utlity class to run a test on a value. + * + * @param infoValue to run test on. + * @param passed Whether or not the test is expected to pass. + */ +protected void valueTest(Object info, boolean passed) throws ValidatorException { +// Construct validator based on the loaded resources +// and the form key +Validator validator = new Validator(resources, FORM_KEY); +// add the name bean to the validator as a resource +// for the validations to be performed on. +validator.setParameter(Validator.BEAN_PARAM, info); +validator.setParameter(Validator.LOCALE_PARAM, Locale.US); + +// Get results of the validation. +ValidatorResults results = null;
DO NOT REPLY [Bug 35459] - [validator] validateDate cannot handle exception
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35459. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35459 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||WORKSFORME --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 23:13 --- I'm unable to duplicate your problem. Please modify src/test/org/apache/commons/validator/DateTest.java to show the bug. I'm marking as WORKSFORME until I hear more. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35508] - [validator] Field::validate() cannot be invoked from user-defined code
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35508. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35508 [EMAIL PROTECTED] changed: What|Removed |Added Severity|normal |enhancement -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232646 - in /jakarta/commons/proper/validator/trunk/src: share/org/apache/commons/validator/CreditCardValidator.java test/org/apache/commons/validator/CreditCardValidatorTest.java
Author: mrdon Date: Sun Aug 14 14:19:39 2005 New Revision: 232646 URL: http://svn.apache.org/viewcvs?rev=232646view=rev Log: Adding support for the Visa Carte Blue used in France to the credit card validator PR: 35926 Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/CreditCardValidator.java jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/CreditCardValidatorTest.java Modified: jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/CreditCardValidator.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/CreditCardValidator.java?rev=232646r1=232645r2=232646view=diff == --- jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/CreditCardValidator.java (original) +++ jakarta/commons/proper/validator/trunk/src/share/org/apache/commons/validator/CreditCardValidator.java Sun Aug 14 14:19:39 2005 @@ -205,15 +205,19 @@ } +/** + * Augmented to support Visa Carte Blue used in France + */ private class Visa implements CreditCardType { -private static final String PREFIX = 4; +private static final String PREFIX = 4,5,; public boolean matches(String card) { -return ( -card.substring(0, 1).equals(PREFIX) - (card.length() == 13 || card.length() == 16)); + +String prefix2 = card.substring(0, 1) + ,; +return ((PREFIX.indexOf(prefix2) != -1) + (card.length() == 13 || card.length() == 16)); } -} - +} + private class Amex implements CreditCardType { private static final String PREFIX = 34,37,; public boolean matches(String card) { Modified: jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/CreditCardValidatorTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/CreditCardValidatorTest.java?rev=232646r1=232645r2=232646view=diff == --- jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/CreditCardValidatorTest.java (original) +++ jakarta/commons/proper/validator/trunk/src/test/org/apache/commons/validator/CreditCardValidatorTest.java Sun Aug 14 14:19:39 2005 @@ -29,6 +29,7 @@ public class CreditCardValidatorTest extends TestCase { private static final String VALID_VISA = 4417123456789113; +private static final String VALID_VISA_OTHER = 5817550003933609; private static final String VALID_SHORT_VISA = 4; private static final String VALID_AMEX = 378282246310005; private static final String VALID_MASTERCARD = 5105105105105100; @@ -52,6 +53,7 @@ assertFalse(ccv.isValid(4417123456789112)); assertFalse(ccv.isValid(4417q23456w89113)); assertTrue(ccv.isValid(VALID_VISA)); +assertTrue(ccv.isValid(VALID_VISA_OTHER)); assertTrue(ccv.isValid(VALID_SHORT_VISA)); assertTrue(ccv.isValid(VALID_AMEX)); assertTrue(ccv.isValid(VALID_MASTERCARD)); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35926] - [validator] CreditValidator does not handle Visa correctly
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35926. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35926 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||FIXED --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 23:20 --- Fixed in changeset [232646]. Thanks for the patch! -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36182] New: - [exec][patch] ExecTest fails due to improperly formatted src/test/scripts/test.sh
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36182. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36182 Summary: [exec][patch] ExecTest fails due to improperly formatted src/test/scripts/test.sh Product: Commons Version: unspecified Platform: All OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: Sandbox AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] On Linux, the following script invoked with the BAR argument will result in FOO BAR The unit test expects FOO BAR -- #!/bin/sh echo FOO $TEST_ENV_VAR $1 -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36182] - [exec][patch] ExecTest fails due to improperly formatted src/test/scripts/test.sh
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36182. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36182 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 23:25 --- Created an attachment (id=16044) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=16044action=view) fix -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 32306] - [validator] Broken link to Javascript javadoc in Validator home page
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=32306. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32306 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 23:26 --- I can't figure out what this link _should_ point to. Anyone? -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 35207] - [validator] 1.1.4 JavaDoc does not match 1.1.4 jar for GenericValidator
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=35207. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=35207 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||INVALID --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 23:28 --- The javadocs are probably generated from the latest source code from trunk, 1.2-dev, and you probably downloaded a 1.1.x release that doesn't contain the new methods. Feel free to join in and help us get 1.2 out the door! :) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36183] New: - [exec][patch] make ant stores junit test reports in correct directory
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36183. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36183 Summary: [exec][patch] make ant stores junit test reports in correct directory Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: trivial Priority: P2 Component: Sandbox AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36183] - [exec][patch] make ant stores junit test reports in correct directory
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36183. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36183 --- Additional Comments From [EMAIL PROTECTED] 2005-08-14 23:37 --- Created an attachment (id=16045) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=16045action=view) specify todir in batchtest -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232651 - in /jakarta/commons/sandbox/jci/trunk/src: java/org/apache/commons/jci/ java/org/apache/commons/jci/listeners/ java/org/apache/commons/jci/monitor/ java/org/apache/commons/jci/st
Author: tcurdt Date: Sun Aug 14 14:43:53 2005 New Revision: 232651 URL: http://svn.apache.org/viewcvs?rev=232651view=rev Log: more testcases, waiting on the reloading listener needs to be fixed Added: jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/CompilerUtils.java Modified: jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoader.java jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoaderListener.java jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/CompilingListener.java jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/ReloadingListener.java jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/monitor/FilesystemAlterationMonitor.java jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/stores/MemoryResourceStore.java jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/stores/ResourceStoreClassLoader.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/AbstractTestCase.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/CompilingClassLoaderTestCase.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/ReloadingClassLoaderTestCase.java jakarta/commons/sandbox/jci/trunk/src/test/org/apache/commons/jci/problems/CompilationProblemTestCase.java Modified: jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoader.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoader.java?rev=232651r1=232650r2=232651view=diff == --- jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoader.java (original) +++ jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoader.java Sun Aug 14 14:43:53 2005 @@ -70,6 +70,7 @@ fam = new FilesystemAlterationMonitor(); fam.addListener(new ReloadingListener(store) { public void reload() { +super.reload(); ReloadingClassLoader.this.reload(); } }, repository); @@ -102,10 +103,11 @@ protected void reload() { log.debug(reloading); delegate = new ResourceStoreClassLoader(parent, store); + synchronized (reloadingListeners) { for (final Iterator it = reloadingListeners.iterator(); it.hasNext();) { final ReloadingClassLoaderListener listener = (ReloadingClassLoaderListener) it.next(); -listener.reload(); +listener.hasReloaded(); } } } @@ -113,9 +115,10 @@ public static String clazzName( final File base, final File file ) { final int rootLength = base.getAbsolutePath().length(); final String absFileName = file.getAbsolutePath(); +final int p = absFileName.lastIndexOf('.'); final String relFileName = absFileName.substring( rootLength + 1, -absFileName.length() - .java.length() +p ); final String clazzName = relFileName.replace(File.separatorChar,'.'); return clazzName; Modified: jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoaderListener.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoaderListener.java?rev=232651r1=232650r2=232651view=diff == --- jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoaderListener.java (original) +++ jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/ReloadingClassLoaderListener.java Sun Aug 14 14:43:53 2005 @@ -20,5 +20,5 @@ * @author tcurdt */ public interface ReloadingClassLoaderListener { -void reload(); +void hasReloaded(); } Modified: jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/CompilingListener.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/CompilingListener.java?rev=232651r1=232650r2=232651view=diff == --- jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/CompilingListener.java (original) +++ jakarta/commons/sandbox/jci/trunk/src/java/org/apache/commons/jci/listeners/CompilingListener.java Sun Aug 14 14:43:53 2005 @@ -87,7 +87,7 @@ int i = 0; for (Iterator it = compileables.iterator(); it.hasNext();) { final File file = (File) it.next(); -clazzes[i] =
[validator] Towards a release
I'd like to get a release of commons-validator out the door, as Struts 1.3 would like to use some of its new bug fixes and features. I'm pretty new to validator, so I'm not familar with its history. Any reason we haven't released 1.2? In the past when I fixed bugs, folks backported them to the 1.1.x branch; why not just roll 1.2 or at least roll it in addition to a bug fix release for 1.1.x? There are a couple more validator open bugs that I can sew up, if I saw a release as a near-term possibility. LMK, thanks, Don - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r232652 [3/3] - in /jakarta/commons/proper/lang/trunk/src: java/org/apache/commons/lang/text/ test/org/apache/commons/lang/text/
Added: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrMatcherTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrMatcherTest.java?rev=232652view=auto == --- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrMatcherTest.java (added) +++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrMatcherTest.java Sun Aug 14 14:45:47 2005 @@ -0,0 +1,227 @@ +/* + * Copyright 2005 The Apache Software Foundation. + * + * Licensed under the Apache License, Version 2.0 (the License); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an AS IS BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.commons.lang.text; + +import junit.framework.Test; +import junit.framework.TestCase; +import junit.framework.TestSuite; +import junit.textui.TestRunner; + +/** + * Unit tests for [EMAIL PROTECTED] org.apache.commons.lang.text.StrMatcher}. + * + * @version $Id$ + */ +public class StrMatcherTest extends TestCase { + +private static final char[] BUFFER1 = 0,1\t2 3\n\r\f\u'\.toCharArray(); + +private static final char[] BUFFER2 = abcdef.toCharArray(); + +/** + * Main method. + * + * @param args command line arguments, ignored + */ +public static void main(String[] args) { +TestRunner.run(suite()); +} + +/** + * Return a new test suite containing this test case. + * + * @return a new test suite containing this test case + */ +public static Test suite() { +TestSuite suite = new TestSuite(StrMatcherTest.class); +suite.setName(StrMatcher Tests); +return suite; +} + +/** + * Create a new test case with the specified name. + * + * @param name the name + */ +public StrMatcherTest(String name) { +super(name); +} + +//--- +public void testCommaMatcher() { +StrMatcher matcher = StrMatcher.commaMatcher(); +assertSame(matcher, StrMatcher.commaMatcher()); +assertEquals(0, matcher.isMatch(BUFFER1, 0, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 1, 0, BUFFER1.length)); +assertEquals(0, matcher.isMatch(BUFFER1, 2, 0, BUFFER1.length)); +} + +//--- +public void testTabMatcher() { +StrMatcher matcher = StrMatcher.tabMatcher(); +assertSame(matcher, StrMatcher.tabMatcher()); +assertEquals(0, matcher.isMatch(BUFFER1, 2, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 3, 0, BUFFER1.length)); +assertEquals(0, matcher.isMatch(BUFFER1, 4, 0, BUFFER1.length)); +} + +//--- +public void testSpaceMatcher() { +StrMatcher matcher = StrMatcher.spaceMatcher(); +assertSame(matcher, StrMatcher.spaceMatcher()); +assertEquals(0, matcher.isMatch(BUFFER1, 4, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 5, 0, BUFFER1.length)); +assertEquals(0, matcher.isMatch(BUFFER1, 6, 0, BUFFER1.length)); +} + +//--- +public void testSplitMatcher() { +StrMatcher matcher = StrMatcher.splitMatcher(); +assertSame(matcher, StrMatcher.splitMatcher()); +assertEquals(0, matcher.isMatch(BUFFER1, 2, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 3, 0, BUFFER1.length)); +assertEquals(0, matcher.isMatch(BUFFER1, 4, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 5, 0, BUFFER1.length)); +assertEquals(0, matcher.isMatch(BUFFER1, 6, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 7, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 8, 0, BUFFER1.length)); +assertEquals(1, matcher.isMatch(BUFFER1, 9, 0, BUFFER1.length)); +assertEquals(0, matcher.isMatch(BUFFER1, 10, 0, BUFFER1.length)); +} + +//--- +public void testTrimMatcher() { +StrMatcher matcher = StrMatcher.trimMatcher(); +assertSame(matcher, StrMatcher.trimMatcher()); +assertEquals(0, matcher.isMatch(BUFFER1, 2, 0, BUFFER1.length)); +
svn commit: r232656 - in /jakarta/commons/proper/lang/trunk/src: java/org/apache/commons/lang/text/StrBuilder.java test/org/apache/commons/lang/text/StrBuilderTest.java
Author: scolebourne Date: Sun Aug 14 14:55:58 2005 New Revision: 232656 URL: http://svn.apache.org/viewcvs?rev=232656view=rev Log: Increase the number of methods that can chain Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java?rev=232656r1=232655r2=232656view=diff == --- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java (original) +++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/text/StrBuilder.java Sun Aug 14 14:55:58 2005 @@ -125,12 +125,14 @@ * Sets the text to be appended when null is added. * * @param str the null text, null means no append + * @return this, to enable chaining */ -public void setNullText(String str) { +public StrBuilder setNullText(String str) { if (str != null str.length() == 0) { str = null; } nullText = str; +return this; } //--- @@ -148,9 +150,10 @@ * or adding filler of unicode zero. * * @param length the length to set to, must be zero or positive + * @return this, to enable chaining * @throws IndexOutOfBoundsException if the length is negative */ -public void setLength(int length) { +public StrBuilder setLength(int length) { if (length 0) { throw new StringIndexOutOfBoundsException(length); } @@ -165,6 +168,7 @@ buffer[i] = '\0'; } } +return this; } //--- @@ -181,24 +185,29 @@ * Checks the capacity and ensures that it is at least the size specified. * * @param capacity the capacity to ensure + * @return this, to enable chaining */ -public void ensureCapacity(int capacity) { +public StrBuilder ensureCapacity(int capacity) { if (capacity buffer.length) { char[] old = buffer; buffer = new char[capacity]; System.arraycopy(old, 0, buffer, 0, size); } +return this; } /** * Minimizes the capacity to the actual length of the string. + * + * @return this, to enable chaining */ -public void minimizeCapacity() { +public StrBuilder minimizeCapacity() { if (buffer.length length()) { char[] old = buffer; buffer = new char[length()]; System.arraycopy(old, 0, buffer, 0, size); } +return this; } //--- @@ -219,6 +228,7 @@ * p * This method is the same as checking [EMAIL PROTECTED] #length()} and is provided to match the * API of Collections. + * * @return codetrue/code if the size is code0/code. */ public boolean isEmpty() { @@ -231,11 +241,14 @@ * This method does not reduce the size of the internal character buffer. * To do that, call codeclear()/code followed by [EMAIL PROTECTED] #minimizeCapacity()}. * p - * This method is the same as [EMAIL PROTECTED] #setLength(int)} and is provided to match the - * API of Collections. + * This method is the same as [EMAIL PROTECTED] #setLength(int)} called with zero + * and is provided to match the API of Collections. + * + * @return this, to enable chaining */ -public void clear() { +public StrBuilder clear() { size = 0; +return this; } //--- @@ -262,13 +275,15 @@ * @see #deleteCharAt(int) * @param index the index to set * @param ch the new character + * @return this, to enable chaining * @throws IndexOutOfBoundsException if the index is invalid */ -public void setCharAt(int index, char ch) { +public StrBuilder setCharAt(int index, char ch) { if (index 0 || index = length()) { throw new StringIndexOutOfBoundsException(index); } buffer[index] = ch; +return this; } /** Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/text/StrBuilderTest.java?rev=232656r1=232655r2=232656view=diff ==
[lang] StrMatcher in text subpackage
I have now performed the first step in unifying the disparate text subpackage, creating a top-level StrMatcher class. StrMatcher is extracted from StrTokenizer and tidied up. It provides a way of searching a character buffer for a match. Basic matchers do nothing interesting, but user-written subclasses could. So far, it's only used in StrBuilder, where indexOf, lastIndexOf, contains, delete and replace all have variants that take a StrMatcher now. The next step, unless there are objections, is to refactor StrTokenizer to use the new StrMatcher class (rather than the old one still inside it). Then methods can be added to StrBuilder such as split() and tokenizer(). Stephen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [math] Houskeeping - committers, contributors please read
Thanks. I'll try to get the rest of items on MathWishList to work ASAP. Since this is a SOC project for me, it has a dealine on Sep 1. Hopefully I can finish the basic coding/testing before that and have some time left for improvement and optimization. Xiaogang Zhang Date: Sun, 14 Aug 2005 00:06:19 -0700 From: Phil Steitz [EMAIL PROTECTED] To: Jakarta Commons Developers List commons-dev@jakarta.apache.org Subject: [math] Houskeeping - committers, contributors please read Today I created a MATH_1_1 branch that should be close to taggable for the 1.1 release. The only thing remaining is a full resolution to BZ 36105. We should make the changes for this bug there and port them to the trunk as well. Once we have resolution to this, I will roll a final RC and we can vote to release. I also committed the first batch of Xiaogang Zhang's SOC contributions to trunk. This stuff looks very good to me. Thanks, Xiaogang! More eyeballs are always a good thing, though, so all pls review. The analysis package is getting too large, so we should be thinking about how to split it up. For now, I am committing the integration, and interpolation (which I am reviewing now) from Xiaogang into the main analysis package. An obvious breakout would be solver, integration, interpolation. Pls weigh in with ideas. We will need to address this soon. Phil Start your day with Yahoo! - make it your home page http://www.yahoo.com/r/hs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[el] modifiy function invocation to support lookup
Hi, i am currently using EL in a validation framework, and am looking to generalise the function invocation bit, preferrably in a way that doesn't invalidate the grammar to the EL spec. I was thinking something like ${... JNDI:JNDI Object Name.function on object to invoke...} also ( importantly) to provide static class fucntion access, something like: ${...STATIC:qualified java class name.function to invoke ...} I can handle the former with some BCEL code gen (i generate a class with a static method that invokes the call), bu the latter seems to be obstrcuted by the current parser grammar - whenever there is a dot in the localname part of the function invocation, it gets picked up as an attribute or skipped, so i am wondering, is there something in the spec i am missing, or is something like ${... STATIC:com.mycomany.MyClass.myMethod() ...} illegal? If not, would anyone be able to help to point out how to modify to support this? I am gathering the QualifiedName () : function in Parser.jj is what i need update, but being a bit hopless with Javacc (trying to learn tho..) i can't seem to get it right... (this is sort the last hitch in getting a useable release which allows access to business functions from the validation rules, fyi, this http://www.jglue.com/lv/ViewPage.action?siteNodeId=6contentId=53 is the incomplete stuff so far...) thanks David
RE: [jelly] 1.0-final problem wrt tag caching
Yes, you're running into a fundamental problem: there's no difference between the cache and the mechanism that tags use to look up their parents. The interface solution will be a partial fix, because tags that are never looked up by their children, never need caching. -Original Message- From: Paul Libbrecht [mailto:[EMAIL PROTECTED] Sent: Saturday, August 13, 2005 6:31 PM To: Jakarta Commons Developers List Subject: Re: [jelly] 1.0-final problem wrt tag caching Indeed... it is running by me as well but I am fully puzzled. I had added, after your commit, in my version the following which I believed was innocent... it wasn't: In TagScript.java, replace Tag tag = (Tag) threadLocalTagCache.get(t); with Tag tag = null; if(context.isCacheTags()) tag = (Tag) threadLocalTagCache.get(t); Indeed, otherwise, the tag is only cleared at the start of next run. Well, precisely this change made everything fail by me. I'll have to evaluate further for more tags-that-wish-caching but for now... fine! paul Le 13 août 05, à 18:25, peter royal a écrit : On Aug 10, 2005, at 6:14 PM, Paul Libbrecht wrote: I'm annoyed... I don't obtain the same results as you do. With the default cacheTags value as false, I obtain only your test failing. With the default cacheTags value as true, I obtain many failed tests. Did you not say that with your commit, all jelly-core tests were passing ? If not then we really need to push the NeedCaching and RefusesCaching interfaces. Right ? yes, with the change I made, all the tests in jelly-core were passing. can you give an example or two of a test that's failing for you? -pete -- peter royal - 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 32306] - [validator] Broken link to Javascript javadoc in Validator home page
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=32306. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=32306 --- Additional Comments From [EMAIL PROTECTED] 2005-08-15 05:22 --- There's some stuff in the build.xml that runs a Perl script to generate docs for the JavaScript code. It seems to assume that both bash and perl are available, which doesn't so great. I haven't tried running it myself, though. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 34942] - [VFS] no vfs_cache cleanup after ant task completed
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=34942. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=34942 --- Additional Comments From [EMAIL PROTECTED] 2005-08-15 06:02 --- Hate to be a bother, but could the antlib.xml get into commons-vfs sooner than later? I'd hate to see a 1.0 release get made without this! I just saw RC3 get released and I got a bit nervous thinking this would be left out of 1.0. See the attachment in comment #32. Simply take that attachment, call it antlib.xml and plop it into the org.apache.commons.vfs.tasks package and you're done. I've tested it and it works great! Thanks, Jake -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36185] New: - supporting options without a short option
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36185. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36185 Summary: supporting options without a short option Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: CLI AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Sometimes an application has an option that only has a long form, e.g., look at the 'find' utility. when trying to create an Option object with a short option set to null, the validation fails. if creating with , the validation passes, but then exceptions look funny (only '-') -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36186] New: - Options.getOptions() should return options in the order they were insterted
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36186. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36186 Summary: Options.getOptions() should return options in the order they were insterted Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: CLI AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] this is mainly to allow the client to define the order in the usage printout. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36187] New: - support validation for one/many values
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36187. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36187 Summary: support validation for one/many values Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: CLI AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] currently, if i supply the same option twice, no error is issued. it would be nice if when creating the Option object, i could specify if it accepts multiple values, and if not, a parsing exception would be thrown. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36188] New: - support type validation
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36188. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36188 Summary: support type validation Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: CLI AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] support the option of specifying the type of the option, such that it would be validated (and an exception will be thrown). today there's a code to do conversions, but it looks buggy (e.g., if the type is not supported, null is returned) -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36189] New: - separate definition and values
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36189. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36189 Summary: separate definition and values Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: CLI AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] right now Option holds both configuration parameters - that say how to parese, and values - the result of parsing. this isn't very robust if options are used at places other than main(). for example, if some server application wants a cli interface (e.g., through a tcp connection), then the best approach for it would be to have a static variable with the options configuration and give it to the parser each time. with the current code, the Options object needs to be recreated every time. also, iterating over Options.getOptions() is cumbersome because some options may actually belong to an option group. it would be helpfull if Options.getOption would return a collection containing Option and OptionGroup, then the user can iterate over it, and with a simple 'instanceof' know what type it is, and then handle it. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 36190] New: - more structured exceptions
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://issues.apache.org/bugzilla/show_bug.cgi?id=36190. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=36190 Summary: more structured exceptions Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: enhancement Priority: P2 Component: CLI AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Currently exceptions are not structured. When one is thrown, from parsing, only the message can be used, which means that if i want to print an error to the user i must use the message as is, which sometimes doesn't fit. The offending Option/OptionGroup should be in some exceptions. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]