[jira] Commented: (VALIDATOR-192) Adding ISBNValidator to GenericValidator
[ http://issues.apache.org/jira/browse/VALIDATOR-192?page=comments#action_12418891 ] Niall Pemberton commented on VALIDATOR-192: --- Thanks for the patch but I would prefer if this wasn't done - in my mind there are two parts to Commons Validator - a framework and the validation routines and its one of my goals to see these clearly separated with the "routines" able to stand on their own with no dependency on the framework or anything else. As part of this process I started a new "routines" package (in Validator 1.3.0) with a new set of date/time/number routines: http://jakarta.apache.org/commons/validator/apidocs/org/apache/commons/validator/routines/package-summary.html#package_description The next step is to move the remaining routines (email, url, isbn, credit card, generic) into this package and deprecate the old ones. I've made a start on this, but I want to do some refactoring rather than just copy/move, but the upshot is new things IMO should go there rather than GenericValidator. > Adding ISBNValidator to GenericValidator > > > Key: VALIDATOR-192 > URL: http://issues.apache.org/jira/browse/VALIDATOR-192 > Project: Commons Validator > Type: Improvement > Versions: 1.3.0 Release > Reporter: Matthias Weßendorf > Priority: Minor > Attachments: generic_validator.patch > > Inside the GenericValidator.java there is no method to check an isbn code. > Would be nice if such a "wrapper" method is implemented -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VALIDATOR-193) Removing ORO dep. from GenericValidator
[ http://issues.apache.org/jira/browse/VALIDATOR-193?page=comments#action_12418889 ] Niall Pemberton commented on VALIDATOR-193: --- EmailValidator and UrlValidator also use Jakarta ORO and there are static validation methods for both of these in GenericValidator. These are both quite complex, using multiple regular expressions to parse and validate and converting them wil be more involved than the "mask" validator in GenericValidator or the ISBNValidator. Email validator also uses Perl5Util.substitute() method to strip comments (see EmailValidator.stripComments() method) which from the ORO JavaDoc says its in "native perl format" - how straight forward this will be to convert I have no idea: http://jakarta.apache.org/oro/api/org/apache/oro/text/perl/Perl5Util.html > Removing ORO dep. from GenericValidator > --- > > Key: VALIDATOR-193 > URL: http://issues.apache.org/jira/browse/VALIDATOR-193 > Project: Commons Validator > Type: Improvement > Reporter: Matthias Weßendorf > Attachments: generic_validator_java_regExpr.patch > > Introducing Java 1.4 dep instead of Jakarta ORO for GenericValidator > Patch comes > (based on the patched verion (for adding the ISBNValidator to Generic) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Commented: (VALIDATOR-191) ISBNValidator has dependency to org.apache.oro.text.perl.Perl5Util
[ http://issues.apache.org/jira/browse/VALIDATOR-191?page=comments#action_12418887 ] Niall Pemberton commented on VALIDATOR-191: --- Need to remove the "/" from the start and end of the regular expression: private static final String ISBN_PATTERN = "^" + GROUP + SEP + PUBLISHER + SEP + TITLE + SEP + CHECK + "$"; > ISBNValidator has dependency to org.apache.oro.text.perl.Perl5Util > -- > > Key: VALIDATOR-191 > URL: http://issues.apache.org/jira/browse/VALIDATOR-191 > Project: Commons Validator > Type: Improvement > Versions: 1.3.0 Release, 1.2.0 Release, 1.3.1 > Reporter: Matthias Weßendorf > Priority: Minor > Attachments: isbn_validator.patch > > Hey, > since Java 1.4 supports RegExpr. itself is it possible to remove the > "org.apache.oro.text.perl.Perl5Util" > from ISBNValidator? > The org.apache.oro.** dependency is also there for the regExp validator. > Any ideas on that? > Or is this a "no no", since a Java 1.4 dep. is not suitable. > Thanks, > Matthias -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418669 - /jakarta/commons/trunks-sandbox/pom.xml
Author: brett Date: Sun Jul 2 18:21:17 2006 New Revision: 418669 URL: http://svn.apache.org/viewvc?rev=418669&view=rev Log: we don't need a snapshot anymore, latest release does what's needed Modified: jakarta/commons/trunks-sandbox/pom.xml Modified: jakarta/commons/trunks-sandbox/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/trunks-sandbox/pom.xml?rev=418669&r1=418668&r2=418669&view=diff == --- jakarta/commons/trunks-sandbox/pom.xml (original) +++ jakarta/commons/trunks-sandbox/pom.xml Sun Jul 2 18:21:17 2006 @@ -81,10 +81,6 @@ 1.3 - -maven-site-plugin -2.0-SNAPSHOT - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418668 - in /jakarta/commons: sandbox/openpgp/trunk/pom.xml trunks-sandbox/pom.xml
Author: brett Date: Sun Jul 2 18:19:41 2006 New Revision: 418668 URL: http://svn.apache.org/viewvc?rev=418668&view=rev Log: use common Apache parent Modified: jakarta/commons/sandbox/openpgp/trunk/pom.xml jakarta/commons/trunks-sandbox/pom.xml Modified: jakarta/commons/sandbox/openpgp/trunk/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/sandbox/openpgp/trunk/pom.xml?rev=418668&r1=418667&r2=418668&view=diff == --- jakarta/commons/sandbox/openpgp/trunk/pom.xml (original) +++ jakarta/commons/sandbox/openpgp/trunk/pom.xml Sun Jul 2 18:19:41 2006 @@ -4,7 +4,7 @@ org.apache.commons commons-sandbox-parent -1.0-SNAPSHOT +1-SNAPSHOT commons-openpgp 1.0-SNAPSHOT Modified: jakarta/commons/trunks-sandbox/pom.xml URL: http://svn.apache.org/viewvc/jakarta/commons/trunks-sandbox/pom.xml?rev=418668&r1=418667&r2=418668&view=diff == --- jakarta/commons/trunks-sandbox/pom.xml (original) +++ jakarta/commons/trunks-sandbox/pom.xml Sun Jul 2 18:19:41 2006 @@ -1,16 +1,21 @@ http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";> 4.0.0 + +org.apache +apache +1 + org.apache.commons commons-sandbox-parent pom - 1.0-SNAPSHOT + 1-SNAPSHOT Jakarta Commons Sandbox http://jakarta.apache.org/commons/sandbox/ 2001 -2.0.2 +2.0.4 continuum @@ -28,17 +33,6 @@ scm:svn:https://svn.apache.org/repos/asf/jakarta/commons/sandbox http://svn.apache.org/repos/asf/jakarta/commons/sandbox - -The Apache Software Foundation -http://jakarta.apache.org - - - - The Apache Software License, Version 2.0 - /LICENSE.txt - repo - - Commons Dev List @@ -55,26 +49,6 @@ http://mail-archives.apache.org/mod_mbox/jakarta-commons-user - - - - - apache.snapshots - Apache Snapshot Repository - scp://minotaur.apache.org/www/cvs.apache.org/maven-snapshot-repository - - - website - Apache Website - scp://minotaur.apache.org/www/jakarta.apache.org/commons/sandbox/ - - bugzilla http://issues.apache.org/bugzilla/ @@ -141,21 +115,5 @@ openpgp proxy - - - - snapshots - Snapshot Repository - http://snapshots.maven.codehaus.org/maven2 - - - - - - apache.snapshots - Snapshot Repository - http://cvs.apache.org/maven-snapshot-repository - - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [openpgp] Building openpgp
Hi, I still cannot build openpgp. Even with the suggested changes it does not work for me. Antoine Carlos Sanchez-4 wrote: > > only if they don't use a -SNAPSHOT version. if they do they will > always deploy to cvs.apache.org > > On 5/3/06, Henri Yandell <[EMAIL PROTECTED]> wrote: >> There's a commented out block in there to stop sandbox projects being >> able to publish their code to the main apache repo. Would doing the >> below screw that up? >> >> Hen >> >> On 5/3/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote: >> > You can remove repositories element from >> > jakarta/commons/trunks-sandbox/pom.xml and make it inherit from the >> > apache pom with >> > >> > >> > org.apache >> > apache >> > 1 >> > >> > >> > >> > >> > On 5/3/06, Henri Yandell <[EMAIL PROTECTED]> wrote: >> > > I get the following error (using a fresh install of Maven 2.0.4) when >> > > trying to build OpenPGP, or indeed trying to domvn -N install >> in >> > > the sandbox directory to put the parent pom into the local >> repository. >> > > >> > > Downloading: >> http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0-SNAPSHOT/maven-site-plugin-2.0-SNAPSHOT.jar >> > > [WARNING] Unable to get resource from repository snapshots >> > > (http://snapshots.maven.codehaus.org/maven2) >> > > [INFO] Skipping missing optional mojo: >> > > org.apache.maven.plugins:maven-site-plugin:attach-descriptor >> > > Downloading: >> http://snapshots.maven.codehaus.org/maven2/org/apache/maven/plugins/maven-site-plugin/2.0-SNAPSHOT/maven-site-plugin-2.0-SNAPSHOT.jar >> > > [WARNING] Unable to get resource from repository snapshots >> > > (http://snapshots.maven.codehaus.org/maven2) >> > > [INFO] >> >> > > [ERROR] BUILD FAILURE >> > > [INFO] >> >> > > [INFO] A required plugin was not found: Plugin could not be found - >> > > check that the goal name is correct: Unable to download the artifact >> > > from any repository >> > > >> > > Try downloading the file manually from the project website. >> > > >> > > Then, install it using the command: >> > > mvn install:install-file -DgroupId=org.apache.maven.plugins >> > > -DartifactId=maven-site-plugin \ >> > > -Dversion=2.0-SNAPSHOT -Dpackaging=maven-plugin >> > > -Dfile=/path/to/file >> > > >> > > >> > > >> > > Any thoughts? >> > > >> > > Hen >> > > >> > > -- View this message in context: http://www.nabble.com/-openpgp--Building-openpgp-tf1553460.html#a5145411 Sent from the Commons - Dev forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bug report for Commons [2006/07/02]
+---+ | 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| | 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| |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 | |16394|Inf|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] Change ValidatorUtils.getValueAsString| |16873|New|Enh|2003-02-07|[lakta] Specifying a different latka.properties fi| |17002|New|Enh|2003-02-12|[beanutils] Problem with index property | |17102|New|Enh|2003-02-15|[lakta] Can't embed "<>" characters in paramValue | |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| |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 | |19749|Opn|Nor|2003-05-07|[cli] HelpFormatter does not handle groups properl| |19781|New|Min|2003-05-08|[beanutils] PropertyUtils.copyProperties throws ex| |19857|New|Enh|2003-05-12|[beanutils] Methods ConvertUtilsBean.convert could| |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| |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| |20686|New|Enh|2003-06-11|[beanutils] Register converters by both target cla| |20836|New|Enh|2003-06-17|[beanutils] Localizing beanutils | |20838|New|Enh|2003-06-17|[fileupload] Add a new property maxFileSize to con| |20968|New|Enh|2003-06-20|[beanutils][PATCH] Include bean getClass in Proper| |21076|New|Enh|2003-06-25|[beanutils] Add "aggressive" mode for BeanUtils.co| |21433|New|Enh|2003-07-09|[scaffold] StorageBeanBase should use a resource n| |21483|New|Enh|2003-07-10|[beanutils] BeanUtils and PropertyUtils toString f| |21693|New|Enh|2003-07-17|[beanutils] copyProperties method should not exit | |21793|New|Nor|2003-07-22|[scaffold] StatementUtils fix | |22046|
Re: [all] change group id? [WAS Re: [logging] RC on ibiblio ?]
OK, I'm finally getting back to this. I've run the tests in my local M2 repo and, using the (slightly modified, see below) recipe below, I've managed to get it to work as expected. To get this show on the road I will subscribe to repository@ and ask for some guidance. Will post back here later. Carlos Sanchez wrote: Are you thinking about doing it in the m1 or m2 repo? see below On 6/7/06, Dennis Lundberg <[EMAIL PROTECTED]> wrote: So, in the simple example below, covering commons-lang, the procedure would be: 1. Copy all files from /commons-lang/ to /org/apache/commons/commons-lang/ in the *Apache* repo 2. Change the groupId of all the pom files under /org/apache/commons/commons-lang/ so that they use the org.apache.commons groupId 3. Add relocation elements to all pom files in /commons-lang/ pointing them to org.apache.commons like this: org.apache.commons Just a note that this is in the section of the pom. If I understand the model documentation correctly, we shouldn't have to use artifactId or version since they are the same. But should we add a ? I never did. 4. Wait for a sync between the Apache repo and ibiblio, or is this something that we need to ping someone about? m1 repo - wait m2 repo - ping Is that correct so far? When we later decide to release our first artifact using the new groupId, should we also copy it to the repo using the groupId? My gut feeling says no, but it's best to ask. no If I want to try this out locally first, can I test it in my local repo ${user.home}/.m2/repository/... or do I need to use a local httpd serving as a central repo? local is ok -- Dennis Lundberg Carlos Sanchez wrote: > You are right. This would involve copying all the old group sutff to > the new group and add the relocation poms. > > On 6/7/06, Nicolas De Loof <[EMAIL PROTECTED]> wrote: >> >> AFAIK there is a way in maven repo to "relocate" dependencies, so that a >> POM for any commons can be published at commons-xxx groupId, that >> "relocates" to org.apache.commons" groupId. >> >> Servletapi for example is now under "javax.servlet" >> http://www.ibiblio.org/maven2/servletapi/servletapi/2.4/servletapi-2.4.pom >> >> >> Using this, when maven2 search for the "latest" release of any commons >> it will look at the relocated one. >> >> Torsten Curdt a écrit : >> > Brett, >> > >> > any comments on this? >> > >> > cheers >> > -- >> > Torsten >> > >> > On 6/6/06, Dennis Lundberg <[EMAIL PROTECTED]> wrote: >> >> Brett, I did the test that you suggested. >> >> >> >> 1. Installed commons-lang 1.0.1 into my local repo with >> >> groupId=org.apache.commons >> >> >> >> mvn install:install-file -DgroupId=org.apache.commons >> >> -DartifactId=commons-lang -Dversion=1.0.1 -Dpackaging=jar >> >> -Dfile=/path/to/commons-lang-1.0.1.jar >> >> >> >> 2. Created Maven 2 projects a, b and c with the dependencies mentioned >> >> below. >> >> >> >> 3. Installed projects a and b into my local repo >> >> mvn install >> >> >> >> 4. packaged project c as a war >> >> mvn package >> >> >> >> The resulting war file includes both commons-lang-1.0.1.jar and >> >> commons-lang-2.1.jar which was what you thought would happen. >> >> >> >> So this is bad, I guess. Anyone who uses commons components >> transitively >> >> in a Maven 2 environment are likely to be bitten by this. They must >> keep >> >> the same groupId for all commons-lang dependencies, as an example, in >> >> the entire chain of transitive dependencies. I.e. they can't mix >> >> groupId=commons-lang and groupId=org.apache.commons. This can be a >> PITA >> >> since some of the dependencies are most likely out of the projects own >> >> control. >> >> >> >> What do you suggest we do? Should we wait with this relocation until a >> >> version of Maven 2 is released that can handle these kind of >> >> dependencies? >> >> >> >> -- >> >> Dennis Lundberg >> >> >> >> Brett Porter wrote: >> >> > an extensive test should be something along the lines of: >> >> > >> >> > project A depends on commons-lang:commons-lang 2.1 >> >> > project B depends on o.a.c:commons-lang 1.0 >> >> > project C is a webapp that depends on A and B >> >> > >> >> > webapp should have only one commons-lang. >> >> > >> >> > You could do this with your own repository (and something completely >> >> > artificial instead of commons-lang if it makes it easier). >> >> > >> >> > - Brett >> >> > >> >> > Dennis Lundberg wrote: >> >> >> Hi Brett >> >> >> >> >> >> Sorry, I misunderstood you regarding when to do the testing. So, >> no I >> >> >> haven't done the test, yet. Can you elaborate a bit more on what >> >> needs >> >> >> to be tested? Perhaps you know of an artifact that has been >> relocated >> >> >> that we can have a look at, to see how they have done. >> > >> > - >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> >>
[Commons-Math] FFT Support
I was just wondering if there are other people with an interest in developing an FFT class. I have a simple Cooley-Tukey FFT implementation to start on, and perhaps we could work on implementing other variations. Now obviously this implementation is very crude, and needs many improvements, but I believe that an FFT library could be a valuable addition to the commons. Please let me know what your opinions on this are. import org.apache.commons.math.complex.ComplexUtils; import org.apache.commons.math.complex.Complex; public class FFT { public static Complex[] fft(Complex[] input) { Complex[] output = new Complex[input.length]; if (input.length == 1) { output[0] = input[0]; } else { Complex[] even = new Complex[input.length/2]; Complex[] odd = new Complex[input.length/2]; for (int i = 0; i < input.length/2; i++) { even[i] = input[i*2]; odd[i] = input[i*2 + 1]; } Complex[] E = fft(even); Complex[] O = fft(odd); for (int i = 0; i < input.length; i++) { if (i < input.length/2) { output[i] = E[i].add(ComplexUtils.exp(new Complex(0, -2*Math.PI/input.length*i)).multiply(O[i])); } else { output[i] = E[i - input.length/2].subtract(ComplexUtils.exp( new Complex(0, -2*Math.PI/input.length*(i - input.length/2))).multiply(O[i - input.length/2]) ); } } } return output; } public static Complex[] ifft(Complex[] input) { Complex[] postInput = new Complex[input.length]; for (int i = 0; i < input.length; i++) { postInput[i] = input[i].conjugate(); } Complex[] output = fft(postInput); for (int i = 0; i < input.length; i++) { output[i] = output[i].conjugate().divide(new Complex(input.length, 0)); } return output; } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418646 - /jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java
Author: psteitz Date: Sun Jul 2 13:31:25 2006 New Revision: 418646 URL: http://svn.apache.org/viewvc?rev=418646&view=rev Log: Suspended setSecureAlgorithm test, since it takes several minutes on Ubuntu. Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java Modified: jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java?rev=418646&r1=418645&r2=418646&view=diff == --- jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java (original) +++ jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/random/RandomDataTest.java Sun Jul 2 13:31:25 2006 @@ -419,7 +419,7 @@ !hex.equals(randomData.nextSecureHexString(40))); /* remove this test back soon, - * since it takes about 4 seconds */ + * since it takes about 4 seconds try { randomData.setSecureAlgorithm("SHA1PRNG","SUN"); @@ -443,6 +443,7 @@ } catch (NoSuchProviderException ex) { ; } +*/ // test reseeding without first using the generators RandomDataImpl rd = new RandomDataImpl(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418643 - in /jakarta/commons/proper/io/trunk: RELEASE-NOTES.txt src/java/org/apache/commons/io/filefilter/NameFileFilter.java src/test/org/apache/commons/io/filefilter/FileFilterTestCase.
Author: scolebourne Date: Sun Jul 2 13:00:03 2006 New Revision: 418643 URL: http://svn.apache.org/viewvc?rev=418643&view=rev Log: Add case sensitivity support to NameFileFilter Modified: jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/NameFileFilter.java jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/filefilter/FileFilterTestCase.java Modified: jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt?rev=418643&r1=418642&r2=418643&view=diff == --- jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt (original) +++ jakarta/commons/proper/io/trunk/RELEASE-NOTES.txt Sun Jul 2 13:00:03 2006 @@ -51,6 +51,9 @@ - Accepts both files and directories - Ability to control case-sensitivity +- NameFileFilter + - Ability to control case-sensitivity + Feedback Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/NameFileFilter.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/NameFileFilter.java?rev=418643&r1=418642&r2=418643&view=diff == --- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/NameFileFilter.java (original) +++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/NameFileFilter.java Sun Jul 2 13:00:03 2006 @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation. + * Copyright 2002-2004,2006 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. @@ -18,6 +18,8 @@ import java.io.File; import java.util.List; +import org.apache.commons.io.IOCase; + /** * Filters filenames for a certain name. * @@ -45,22 +47,35 @@ /** The filenames to search for */ private String[] names; +/** Whether the comparison is case sensitive. */ +private IOCase caseSensitivity; /** - * Constructs a new name file filter for a single name. + * Constructs a new case-sensitive name file filter for a single name. * * @param name the name to allow, must not be null - * @throws IllegalArgumentException if the prefix is null + * @throws IllegalArgumentException if the name is null */ public NameFileFilter(String name) { +this(name, null); +} + +/** + * Construct a new name file filter specifying case-sensitivity. + * + * @param caseSensitivity how to handle case sensitivity, null means case-sensitive + * @throws IllegalArgumentException if the name is null + */ +public NameFileFilter(String name, IOCase caseSensitivity) { if (name == null) { -throw new IllegalArgumentException("The name must not be null"); +throw new IllegalArgumentException("The wildcard must not be null"); } this.names = new String[] {name}; +this.caseSensitivity = (caseSensitivity == null ? IOCase.SENSITIVE : caseSensitivity); } /** - * Constructs a new name file filter for any of an array of names. + * Constructs a new case-sensitive name file filter for an array of names. * * The array is not cloned, so could be changed after constructing the * instance. This would be inadvisable however. @@ -69,26 +84,55 @@ * @throws IllegalArgumentException if the names array is null */ public NameFileFilter(String[] names) { +this(names, null); +} + +/** + * Constructs a new name file filter for an array of names specifying case-sensitivity. + * + * The array is not cloned, so could be changed after constructing the + * instance. This would be inadvisable however. + * + * @param names the names to allow, must not be null + * @param caseSensitivity how to handle case sensitivity, null means case-sensitive + * @throws IllegalArgumentException if the names array is null + */ +public NameFileFilter(String[] names, IOCase caseSensitivity) { if (names == null) { throw new IllegalArgumentException("The array of names must not be null"); } this.names = names; +this.caseSensitivity = (caseSensitivity == null ? IOCase.SENSITIVE : caseSensitivity); } /** - * Constructs a new name file filter for a list of names. + * Constructs a new case-sensitive name file filter for a list of names. * * @param names the names to allow, must not be null * @throws IllegalArgumentException if the name list is null * @throws ClassCastException if the list does not contain Strings */
svn commit: r418642 - /jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/WildcardFileFilter.java
Author: scolebourne Date: Sun Jul 2 12:47:16 2006 New Revision: 418642 URL: http://svn.apache.org/viewvc?rev=418642&view=rev Log: Javadoc Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/WildcardFileFilter.java Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/WildcardFileFilter.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/WildcardFileFilter.java?rev=418642&r1=418641&r2=418642&view=diff == --- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/WildcardFileFilter.java (original) +++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/filefilter/WildcardFileFilter.java Sun Jul 2 12:47:16 2006 @@ -29,7 +29,7 @@ * * * @author Jason Anderson - * @version $Revision: 155419 $ $Date$ + * @version $Revision: 155419 $ $Date: 2006-06-26 00:19:58 +0100 (Mon, 26 Jun 2006) $ * @since Commons IO 1.3 */ public class WildcardFileFilter extends AbstractFileFilter { @@ -66,6 +66,9 @@ /** * Construct a new case-sensitive wildcard filter for an array of wildcards. + * + * The array is not cloned, so could be changed after constructing the + * instance. This would be inadvisable however. * * @param wildcards the array of wildcards to match * @throws IllegalArgumentException if the pattern array is null @@ -76,6 +79,9 @@ /** * Construct a new wildcard filter for an array of wildcards specifying case-sensitivity. + * + * The array is not cloned, so could be changed after constructing the + * instance. This would be inadvisable however. * * @param wildcards the array of wildcards to match, not null * @param caseSensitivity how to handle case sensitivity, null means case-sensitive - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418641 - in /jakarta/commons/proper/io/trunk/src: java/org/apache/commons/io/ test/org/apache/commons/io/ test/org/apache/commons/io/filefilter/
Author: scolebourne Date: Sun Jul 2 12:42:19 2006 New Revision: 418641 URL: http://svn.apache.org/viewvc?rev=418641&view=rev Log: Test and fix case sensitive wildcard filter Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOCase.java jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FilenameUtilsWildcardTestCase.java jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/filefilter/FileFilterTestCase.java Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java?rev=418641&r1=418640&r2=418641&view=diff == --- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java (original) +++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/FilenameUtils.java Sun Jul 2 12:42:19 2006 @@ -1134,6 +1134,8 @@ if (caseSensitivity == null) { caseSensitivity = IOCase.SENSITIVE; } +filename = caseSensitivity.convertCase(filename); +wildcardMatcher = caseSensitivity.convertCase(wildcardMatcher); String[] wcs = splitOnTokens(wildcardMatcher); boolean anyChars = false; int textIdx = 0; @@ -1179,7 +1181,7 @@ } } else { // matching from current position -if (!caseSensitivity.checkRegionMatches(filename, textIdx, wcs[wcsIdx])) { +if (!filename.startsWith(wcs[wcsIdx], textIdx)) { // couldnt match token break; } Modified: jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOCase.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOCase.java?rev=418641&r1=418640&r2=418641&view=diff == --- jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOCase.java (original) +++ jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOCase.java Sun Jul 2 12:42:19 2006 @@ -31,7 +31,7 @@ * class to compare filenames. * * @author Stephen Colebourne - * @version $Id$ + * @version $Id: IOCase.java 417090 2006-06-25 23:18:33Z scolebourne $ * @since Commons IO 1.3 */ public final class IOCase implements Serializable { @@ -187,6 +187,20 @@ */ public boolean checkRegionMatches(String str, int strStartIndex, String search) { return str.regionMatches(!sensitive, strStartIndex, search, 0, search.length()); +} + +/** + * Converts the case of the input String to a standard format. + * Subsequent operations can then use standard String methods. + * + * @param str the string to convert, null returns null + * @return the lower-case version if case-insensitive + */ +String convertCase(String str) { +if (str == null) { +return null; +} +return sensitive ? str : str.toLowerCase(); } //--- Modified: jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FilenameUtilsWildcardTestCase.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FilenameUtilsWildcardTestCase.java?rev=418641&r1=418640&r2=418641&view=diff == --- jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FilenameUtilsWildcardTestCase.java (original) +++ jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/FilenameUtilsWildcardTestCase.java Sun Jul 2 12:42:19 2006 @@ -45,8 +45,13 @@ assertEquals(true, FilenameUtils.wildcardMatch("Foo Bar Foo", "F*o Bar*")); assertEquals(true, FilenameUtils.wildcardMatch("Adobe Acrobat Installer", "Ad*er")); assertEquals(true, FilenameUtils.wildcardMatch("Foo", "*Foo")); +assertEquals(true, FilenameUtils.wildcardMatch("BarFoo", "*Foo")); assertEquals(true, FilenameUtils.wildcardMatch("Foo", "Foo*")); +assertEquals(true, FilenameUtils.wildcardMatch("FooBar", "Foo*")); +assertEquals(false, FilenameUtils.wildcardMatch("FOO", "*Foo")); +assertEquals(false, FilenameUtils.wildcardMatch("BARFOO", "*Foo")); assertEquals(false, FilenameUtils.wildcardMatch("FOO", "Foo*")); +assertEquals(false, FilenameUtils.wildcardMatch("FOOBAR", "Foo*")); } public void testMatchOnSystem() { @@ -63,8 +68,13 @@ assertEquals(true, FilenameUtils.wildcardMatchOnSystem("Foo Bar Foo", "F*o Bar*")); ass
svn commit: r418640 - /jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java
Author: scolebourne Date: Sun Jul 2 12:41:18 2006 New Revision: 418640 URL: http://svn.apache.org/viewvc?rev=418640&view=rev Log: Ensure that file filter package tests arent run twice Modified: jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java Modified: jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java?rev=418640&r1=418639&r2=418640&view=diff == --- jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java (original) +++ jakarta/commons/proper/io/trunk/src/test/org/apache/commons/io/PackageTestSuite.java Sun Jul 2 12:41:18 2006 @@ -19,8 +19,6 @@ import junit.framework.TestSuite; import junit.textui.TestRunner; -import org.apache.commons.io.filefilter.FileFilterTestCase; - /** * A basic test suite that tests all the IO package. * @@ -46,7 +44,6 @@ suite.addTest(new TestSuite(FileUtilsListFilesTestCase.class)); suite.addTest(new TestSuite(FileUtilsCleanDirectoryTestCase.class)); suite.addTest(new TestSuite(FileUtilsTestCase.class)); -suite.addTest(new TestSuite(FileFilterTestCase.class)); suite.addTest(new TestSuite(HexDumpTest.class)); suite.addTest(new TestSuite(IOCaseTestCase.class)); suite.addTest(new TestSuite(IOUtilsCopyTestCase.class)); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418638 - in /jakarta/commons/proper/io/trunk/xdocs: index.xml issue-tracking.xml
Author: scolebourne Date: Sun Jul 2 12:21:41 2006 New Revision: 418638 URL: http://svn.apache.org/viewvc?rev=418638&view=rev Log: Improve JIRA links Modified: jakarta/commons/proper/io/trunk/xdocs/index.xml jakarta/commons/proper/io/trunk/xdocs/issue-tracking.xml Modified: jakarta/commons/proper/io/trunk/xdocs/index.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/xdocs/index.xml?rev=418638&r1=418637&r2=418638&view=diff == --- jakarta/commons/proper/io/trunk/xdocs/index.xml (original) +++ jakarta/commons/proper/io/trunk/xdocs/index.xml Sun Jul 2 12:21:41 2006 @@ -76,7 +76,8 @@ so prefix your email by [io]. -Issues may be reported via ASF Jira. +Issues may be reported via ASF JIRA. +Please read the instructions carefully to submit a useful bug report or enhancement request. Modified: jakarta/commons/proper/io/trunk/xdocs/issue-tracking.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/xdocs/issue-tracking.xml?rev=418638&r1=418637&r2=418638&view=diff == --- jakarta/commons/proper/io/trunk/xdocs/issue-tracking.xml (original) +++ jakarta/commons/proper/io/trunk/xdocs/issue-tracking.xml Sun Jul 2 12:21:41 2006 @@ -23,10 +23,10 @@ - Commons IO uses http://issues.apache.org/jira/browse/IO";>ASF Jira for tracking issues. + Commons IO uses http://issues.apache.org/jira/browse/IO";>ASF JIRA for tracking issues. - To use Jira you may need to http://issues.apache.org/jira/secure/Signup!default.jspa";>create an account + To use JIRA you may need to http://issues.apache.org/jira/secure/Signup!default.jspa";>create an account (if you have previously created/updated Commons issues using Bugzilla an account will have been automatically created and you can use the http://issues.apache.org/jira/secure/ForgotPassword!default.jspa";>Forgot Password page to get a new password). @@ -39,7 +39,9 @@ If you find your issue listed then please add a comment with your details. http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/";>Search the mailing list archive. You may find your issue or idea has already been discussed. - http://issues.apache.org/jira/browse/IO";>Submit a bug report or enhancement request. + Decide if your issue is a bug or an enhancement. + Submit either a http://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310477&issuetype=1&priority=4&assignee=-1";>bug report + or http://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310477&issuetype=4&priority=4&assignee=-1";>enhancement request. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418637 - in /jakarta/commons/proper/collections/trunk/xdocs: index.xml issue-tracking.xml
Author: scolebourne Date: Sun Jul 2 12:20:10 2006 New Revision: 418637 URL: http://svn.apache.org/viewvc?rev=418637&view=rev Log: Improve JIRA links Modified: jakarta/commons/proper/collections/trunk/xdocs/index.xml jakarta/commons/proper/collections/trunk/xdocs/issue-tracking.xml Modified: jakarta/commons/proper/collections/trunk/xdocs/index.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/collections/trunk/xdocs/index.xml?rev=418637&r1=418636&r2=418637&view=diff == --- jakarta/commons/proper/collections/trunk/xdocs/index.xml (original) +++ jakarta/commons/proper/collections/trunk/xdocs/index.xml Sun Jul 2 12:20:10 2006 @@ -89,7 +89,8 @@ so prefix your email by [collections]. -Issues may be reported via ASF Jira. +Issues may be reported via ASF JIRA. +Please read the instructions carefully to submit a useful bug report or enhancement request. Modified: jakarta/commons/proper/collections/trunk/xdocs/issue-tracking.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/collections/trunk/xdocs/issue-tracking.xml?rev=418637&r1=418636&r2=418637&view=diff == --- jakarta/commons/proper/collections/trunk/xdocs/issue-tracking.xml (original) +++ jakarta/commons/proper/collections/trunk/xdocs/issue-tracking.xml Sun Jul 2 12:20:10 2006 @@ -23,10 +23,10 @@ - Commons Collections uses http://issues.apache.org/jira/browse/COLLECTIONS";>ASF Jira for tracking issues. + Commons Collections uses http://issues.apache.org/jira/browse/COLLECTIONS";>ASF JIRA for tracking issues. - To use Jira you may need to http://issues.apache.org/jira/secure/Signup!default.jspa";>create an account + To use JIRA you may need to http://issues.apache.org/jira/secure/Signup!default.jspa";>create an account (if you have previously created/updated Commons issues using Bugzilla an account will have been automatically created and you can use the http://issues.apache.org/jira/secure/ForgotPassword!default.jspa";>Forgot Password page to get a new password). @@ -39,7 +39,9 @@ If you find your issue listed then please add a comment with your details. http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/";>Search the mailing list archive. You may find your issue or idea has already been discussed. - http://issues.apache.org/jira/browse/COLLECTIONS";>Submit a bug report or enhancement request. + Decide if your issue is a bug or an enhancement. + Submit either a http://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310465&issuetype=1&priority=4&assignee=-1";>bug report + or http://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310465&issuetype=4&priority=4&assignee=-1";>enhancement request. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418608 - in /jakarta/commons/proper/configuration/trunk/src: java/org/apache/commons/configuration/ test/org/apache/commons/configuration/
Author: oheger Date: Sun Jul 2 08:28:13 2006 New Revision: 418608 URL: http://svn.apache.org/viewvc?rev=418608&view=rev Log: Added clone() methods to BaseConfiguration and AbstractFileConfiguration Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractFileConfiguration.java jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/BaseConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestBaseConfiguration.java jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestFileConfiguration.java Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractFileConfiguration.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractFileConfiguration.java?rev=418608&r1=418607&r2=418608&view=diff == --- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractFileConfiguration.java (original) +++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/AbstractFileConfiguration.java Sun Jul 2 08:28:13 2006 @@ -110,7 +110,7 @@ */ public AbstractFileConfiguration() { -setReloadingStrategy(new InvariantReloadingStrategy()); +initReloadingStrategy(); } /** @@ -854,5 +854,34 @@ public void setEncoding(String encoding) { this.encoding = encoding; +} + +/** + * Creates a copy of this configuration. The new configuration object will + * contain the same properties as the original, but it will lose any + * connection to a source file (if one exists); this includes setting the + * source URL, base path, and file name to null. This is done to + * avoid race conditions if both the original and the copy are modified and + * then saved. + * + * @return the copy + * @since 1.3 + */ +public Object clone() +{ +AbstractFileConfiguration copy = (AbstractFileConfiguration) super +.clone(); +copy.setBasePath(null); +copy.setFileName(null); +copy.initReloadingStrategy(); +return copy; +} + +/** + * Helper method for initializing the reloading strategy. + */ +private void initReloadingStrategy() +{ +setReloadingStrategy(new InvariantReloadingStrategy()); } } Modified: jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/BaseConfiguration.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/BaseConfiguration.java?rev=418608&r1=418607&r2=418608&view=diff == --- jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/BaseConfiguration.java (original) +++ jakarta/commons/proper/configuration/trunk/src/java/org/apache/commons/configuration/BaseConfiguration.java Sun Jul 2 08:28:13 2006 @@ -47,7 +47,7 @@ * @author mailto:[EMAIL PROTECTED]">Oliver Heger * @version $Id$ */ -public class BaseConfiguration extends AbstractConfiguration +public class BaseConfiguration extends AbstractConfiguration implements Cloneable { /** stores the configuration key-value pairs */ private Map store = new LinkedMap(); @@ -151,5 +151,28 @@ public Iterator getKeys() { return store.keySet().iterator(); +} + +/** + * Creates a copy of this object. This implementation will create a deep + * clone, i.e. the map that stores the properties is cloned, too. So changes + * performed at the copy won't affect the original and vice versa. + * + * @return the copy + * @since 1.3 + */ +public Object clone() +{ +try +{ +BaseConfiguration copy = (BaseConfiguration) super.clone(); +copy.store = (Map) ((LinkedMap) store).clone(); +return copy; +} +catch (CloneNotSupportedException cex) +{ +// should not happen +throw new ConfigurationRuntimeException(cex); +} } } Modified: jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestBaseConfiguration.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestBaseConfiguration.java?rev=418608&r1=418607&r2=418608&view=diff == --- jakarta/commons/proper/configuration/trunk/src/test/org/apache/commons/configuration/TestBaseConfiguration.java (original) +++ jakarta/commons/proper/configuration/trunk/src/test/or
[lang] CloneUtils
Hi, I just need a helper method for cloning an object. I vaguely remembered that a while ago there was discussion about this topic. I found this link [1]. Has there anything been done in this area yet? Thanks. Oliver [1] http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/200506.mbox/[EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jira] Created: (JXPATH-69) JXPath doesn't properly search for XBeanInfo defined for a parent class.
JXPath doesn't properly search for XBeanInfo defined for a parent class. Key: JXPATH-69 URL: http://issues.apache.org/jira/browse/JXPATH-69 Project: Commons JXPath Type: Bug Environment: java 1.5, WinXP Reporter: dror class A { ... } class B extends A { ... } class AXBeanInfo implmements JXPathBeanInfo { ... } Now if I try to JXPathContext.newContext( new B() ) it will fail to read the XBeanInfo of the base class (A), and will use simplebeaninfo instead. if instead I first do JXPathContext.newContext( new A() ) and then do the JXPathContext.newContext( new B() ) it will work. (it will probably work if A implemented the JXPathBeanInfo interface by itself, but I don't want it to require that. my current workarround is to do the above dummy context initialization) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418581 - in /jakarta/commons/proper/lang/trunk/xdocs: index.xml issue-tracking.xml
Author: scolebourne Date: Sun Jul 2 05:05:52 2006 New Revision: 418581 URL: http://svn.apache.org/viewvc?rev=418581&view=rev Log: Improve JIRA links Modified: jakarta/commons/proper/lang/trunk/xdocs/index.xml jakarta/commons/proper/lang/trunk/xdocs/issue-tracking.xml Modified: jakarta/commons/proper/lang/trunk/xdocs/index.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/xdocs/index.xml?rev=418581&r1=418580&r2=418581&view=diff == --- jakarta/commons/proper/lang/trunk/xdocs/index.xml (original) +++ jakarta/commons/proper/lang/trunk/xdocs/index.xml Sun Jul 2 05:05:52 2006 @@ -79,7 +79,7 @@ Issues may be reported via ASF JIRA. -Please prefix your issue with [lang]. +Please read the instructions carefully to submit a useful bug report or enhancement request. Modified: jakarta/commons/proper/lang/trunk/xdocs/issue-tracking.xml URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/xdocs/issue-tracking.xml?rev=418581&r1=418580&r2=418581&view=diff == --- jakarta/commons/proper/lang/trunk/xdocs/issue-tracking.xml (original) +++ jakarta/commons/proper/lang/trunk/xdocs/issue-tracking.xml Sun Jul 2 05:05:52 2006 @@ -23,18 +23,25 @@ - Issues for Commons Lang are tracked at http://issues.apache.org/jira/browse/LANG";>http://issues.apache.org/jira/browse/LANG. - To create a new issue you will need to http://issues.apache.org/jira/secure/Signup!default.jspa";>sign up for a new user, unless you had previously used Bugzilla in which case your username is your email address and you will need to use the http://issues.apache.org/jira/secure/ForgotPassword!default.jspa";>Forgot Password page to get a new password. + Commons Lang uses http://issues.apache.org/jira/browse/LANG";>ASF JIRA for tracking issues. + + + To use JIRA you may need to http://issues.apache.org/jira/secure/Signup!default.jspa";>create an account + (if you have previously created/updated Commons issues using Bugzilla an account will have been automatically + created and you can use the http://issues.apache.org/jira/secure/ForgotPassword!default.jspa";>Forgot Password + page to get a new password). If you would like to report a bug, or raise an enhancement request with Commons Lang please do the following: - http://issues.apache.org/jira/secure/IssueNavigator.jspa?mode=show&requestId=12310481";>Search existing bugs. + http://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12310481&sorter/field=issuekey&sorter/order=DESC&status=1&status=4";>Search existing open bugs. If you find your issue listed then please add a comment with your details. http://mail-archives.apache.org/mod_mbox/jakarta-commons-dev/";>Search the mailing list archive. You may find your issue or idea has already been discussed. - http://issues.apache.org/jira/secure/CreateIssue!default.jspa";>Submit a bug report or enhancement request. + Decide if your issue is a bug or an enhancement. + Submit either a http://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310481&issuetype=1&priority=4&assignee=-1";>bug report + or http://issues.apache.org/jira/secure/CreateIssueDetails!init.jspa?pid=12310481&issuetype=4&priority=4&assignee=-1";>enhancement request. @@ -43,6 +50,14 @@ the more information you provide, the better we can help you test cases are vital, particularly for any proposed enhancements the developers of Commons Lang are all unpaid volunteers + + + + You may also find these links useful: + + http://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12310481&sorter/field=issuekey&sorter/order=DESC&status=1&status=4";>All Open Lang bugs + http://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12310481&sorter/field=issuekey&sorter/order=DESC&status=5&status=6";>All Resolved Lang bugs + http://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=true&pid=12310481&sorter/field=issuekey&sorter/order=DESC";>All Lang bugs - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]: Project commons-jelly-test (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-test has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 8 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-test : Commons Jelly Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-test/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -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. -WARNING- Overriding Maven properties: [/usr/local/gump/public/workspace/commons-jelly/build.properties] -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 -WARNING- No directory [/usr/local/gump/public/workspace/commons-jelly/target/test-reports] The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-test/gump_work/build_commons-jelly_commons-jelly-test.html Work Name: build_commons-jelly_commons-jelly-test (Type: Build) Work ended in a state of : Failed Elapsed: 8 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly] CLASSPATH: /opt/jdk1.5/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-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/discovery/dist/commons-discovery.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-02072006.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/public/workspace/jaxen/target/jaxen-02072006.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar - [javac] symbol : class ParseException [javac] location: class org.apache.commons.jelly.util.CommandLineParser [javac] public CommandLine parseCommandLineOptions(String[] args) throws ParseException { [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/impl/DynamicBeanTag.java:210: warning: [deprecation] org.apache.commons.collections.BeanMap in org.apache.commons.collections has been deprecated [javac] BeanMap beanMap = new BeanMap(bean); [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/impl/DynamicBeanTag.java:210: warning: [deprecation] org.apache.commons.collections.BeanMap in org.apache.commons.collections has been deprecated [javac] BeanMap beanMap = new BeanMap(bean); [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/util/CommandLineParser.java:67: cannot find symbol [javac] symbol : class CommandLine [javac] location: class org.apache.commons.jelly.util.CommandLineParser [javac] CommandLine cmdLine = null; [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/util/CommandLineParser.java:70: cannot find symbol [javac] symbol : class ParseException [javac] location: class org.apache.commons.jelly.util.CommandLineParser [javac] } catch (ParseException e) { [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/
[EMAIL PROTECTED]: Project commons-jelly-test (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-test has an issue affecting its community integration. This issue affects 1 projects, and has been outstanding for 8 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-test : Commons Jelly Full details are available at: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-test/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -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. -WARNING- Overriding Maven properties: [/usr/local/gump/public/workspace/commons-jelly/build.properties] -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 -WARNING- No directory [/usr/local/gump/public/workspace/commons-jelly/target/test-reports] The following work was performed: http://vmgump.apache.org/gump/public/commons-jelly/commons-jelly-test/gump_work/build_commons-jelly_commons-jelly-test.html Work Name: build_commons-jelly_commons-jelly-test (Type: Build) Work ended in a state of : Failed Elapsed: 8 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly] CLASSPATH: /opt/jdk1.5/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-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/discovery/dist/commons-discovery.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-02072006.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/target/commons-logging-api-02072006.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/public/workspace/jaxen/target/jaxen-02072006.jar:/usr/local/gump/public/workspace/dist/junit/junit.jar - [javac] symbol : class ParseException [javac] location: class org.apache.commons.jelly.util.CommandLineParser [javac] public CommandLine parseCommandLineOptions(String[] args) throws ParseException { [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/impl/DynamicBeanTag.java:210: warning: [deprecation] org.apache.commons.collections.BeanMap in org.apache.commons.collections has been deprecated [javac] BeanMap beanMap = new BeanMap(bean); [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/impl/DynamicBeanTag.java:210: warning: [deprecation] org.apache.commons.collections.BeanMap in org.apache.commons.collections has been deprecated [javac] BeanMap beanMap = new BeanMap(bean); [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/util/CommandLineParser.java:67: cannot find symbol [javac] symbol : class CommandLine [javac] location: class org.apache.commons.jelly.util.CommandLineParser [javac] CommandLine cmdLine = null; [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/apache/commons/jelly/util/CommandLineParser.java:70: cannot find symbol [javac] symbol : class ParseException [javac] location: class org.apache.commons.jelly.util.CommandLineParser [javac] } catch (ParseException e) { [javac] ^ [javac] /x1/gump/public/workspace/commons-jelly/src/java/org/
svn commit: r418568 - in /jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder: EqualsBuilderTest.java HashCodeBuilderTest.java
Author: scolebourne Date: Sun Jul 2 03:46:52 2006 New Revision: 418568 URL: http://svn.apache.org/viewvc?rev=418568&view=rev Log: Fix compilation error Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderTest.java Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java?rev=418568&r1=418567&r2=418568&view=diff == --- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java (original) +++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/EqualsBuilderTest.java Sun Jul 2 03:46:52 2006 @@ -966,7 +966,7 @@ assertTrue(!EqualsBuilder.reflectionEquals(x1, x2)); // doesn't barf on null, empty array, or non-existent field, but still tests as not equal -assertTrue(!EqualsBuilder.reflectionEquals(x1, x2, null)); +assertTrue(!EqualsBuilder.reflectionEquals(x1, x2, (String[]) null)); assertTrue(!EqualsBuilder.reflectionEquals(x1, x2, new String[] {})); assertTrue(!EqualsBuilder.reflectionEquals(x1, x2, new String[] {"xxx"})); Modified: jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderTest.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderTest.java?rev=418568&r1=418567&r2=418568&view=diff == --- jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderTest.java (original) +++ jakarta/commons/proper/lang/trunk/src/test/org/apache/commons/lang/builder/HashCodeBuilderTest.java Sun Jul 2 03:46:52 2006 @@ -442,7 +442,7 @@ assertEquals17 * 37 + 1) * 37 + 2) * 37 + 3), HashCodeBuilder.reflectionHashCode(x)); -assertEquals17 * 37 + 1) * 37 + 2) * 37 + 3), HashCodeBuilder.reflectionHashCode(x, null)); +assertEquals17 * 37 + 1) * 37 + 2) * 37 + 3), HashCodeBuilder.reflectionHashCode(x, (String[]) null)); assertEquals17 * 37 + 1) * 37 + 2) * 37 + 3), HashCodeBuilder.reflectionHashCode(x, new String[] {})); assertEquals17 * 37 + 1) * 37 + 2) * 37 + 3), HashCodeBuilder.reflectionHashCode(x, new String[] {"xxx"})); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r418567 - /jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java
Author: scolebourne Date: Sun Jul 2 03:31:34 2006 New Revision: 418567 URL: http://svn.apache.org/viewvc?rev=418567&view=rev Log: Javadoc Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java Modified: jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java?rev=418567&r1=418566&r2=418567&view=diff == --- jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java (original) +++ jakarta/commons/proper/lang/trunk/src/java/org/apache/commons/lang/StringEscapeUtils.java Sun Jul 2 03:31:34 2006 @@ -438,12 +438,11 @@ * @see http://www.w3.org/TR/REC-html40/sgml/entities.html";>HTML 4.0 Character entity references * @see http://www.w3.org/TR/html401/charset.html#h-5.3";>HTML 4.01 Character References * @see http://www.w3.org/TR/html401/charset.html#code-position";>HTML 4.01 Code positions - **/ + */ public static String escapeHtml(String str) { if (str == null) { return null; } - try { StringWriter writer = new StringWriter ((int)(str.length() * 1.5)); escapeHtml(writer, str); @@ -455,7 +454,7 @@ return null; } } - + /** * Escapes the characters in a String using HTML entities and writes * them to a Writer. @@ -471,9 +470,9 @@ * Note that the commonly used apostrophe escape character (') * is not a legal entity and so is not supported). * - * @param writer The Writer to write the result to. This must not be null. - * @param string The String to escape. This may be null. - * + * @param writer the writer receiving the escaped string, not null + * @param string the String to escape, may be null + * @throws IllegalArgumentException if the writer is null * @throws IOException when Writer passed throws the exception from * calls to the [EMAIL PROTECTED] Writer#write(int)} methods. * @@ -489,14 +488,13 @@ if (writer == null ) { throw new IllegalArgumentException ("The Writer must not be null."); } - if (string == null) { return; } - Entities.HTML40.escape(writer, string); } +//--- /** * Unescapes a string containing entity escapes to a string * containing the actual Unicode characters corresponding to the @@ -512,12 +510,11 @@ * @param str the String to unescape, may be null * @return a new unescaped String, null if null string input * @see #escapeHtml(Writer, String) - **/ + */ public static String unescapeHtml(String str) { if (str == null) { return null; } - try { StringWriter writer = new StringWriter ((int)(str.length() * 1.5)); unescapeHtml(writer, str); @@ -529,7 +526,7 @@ return null; } } - + /** * Unescapes a string containing entity escapes to a string * containing the actual Unicode characters corresponding to the @@ -542,23 +539,23 @@ * verbatim into the result string. e.g. ">&;x" will * become ">&;x". * - * @param writer writer receiving the unescaped string + * @param writer the writer receiving the unescaped string, not null * @param string the String to unescape, may be null + * @throws IllegalArgumentException if the writer is null * @throws IOException if an IOException occurs * @see #escapeHtml(String) - **/ + */ public static void unescapeHtml(Writer writer, String string) throws IOException { if (writer == null ) { throw new IllegalArgumentException ("The Writer must not be null."); } - if (string == null) { return; } - Entities.HTML40.unescape(writer, string); } +//--- /** * Escapes the characters in a String using XML entities. * @@ -569,16 +566,16 @@ * Supports only the five basic XML entities (gt, lt, quot, amp, apos). * Does not support DTDs or external entities. * - * @param writer writer receiving the unescaped string + * @param writer the writer receiving the unescaped string, not null * @param str the String to escape, may be null * @return a new escaped String, null if null string input + * @throws IllegalArgumentException if the writer is null * @see #unescapeXml(java
[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 58 projects, and has been outstanding for 8 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - cargo : Cargo provides a Java API to manipulate Java Containers - commons-jelly : Commons Jelly - commons-jelly-tags-ant : Commons Jelly - commons-jelly-tags-antlr : Commons Jelly - commons-jelly-tags-avalon : Commons Jelly - commons-jelly-tags-bean : Commons Jelly - commons-jelly-tags-beanshell : Commons Jelly - commons-jelly-tags-betwixt : Commons Jelly - commons-jelly-tags-bsf : Commons Jelly - commons-jelly-tags-define : Commons Jelly - commons-jelly-tags-define-test : Commons Jelly - commons-jelly-tags-dynabean : Commons Jelly - commons-jelly-tags-email : Commons Jelly - commons-jelly-tags-fmt : Commons Jelly - commons-jelly-tags-fmt-test : Commons Jelly - commons-jelly-tags-html : Commons Jelly - commons-jelly-tags-http : Commons Jelly - commons-jelly-tags-interaction : Commons Jelly - commons-jelly-tags-jetty : Commons Jelly - commons-jelly-tags-jface : Commons Jelly - commons-jelly-tags-jms : Commons Jelly - commons-jelly-tags-jmx : Commons Jelly - commons-jelly-tags-jsl : Commons Jelly - commons-jelly-tags-jsl-test : Commons Jelly - commons-jelly-tags-junit : Commons Jelly - commons-jelly-tags-log : Commons Jelly - commons-jelly-tags-memory : Commons Jelly - commons-jelly-tags-ojb : Commons Jelly - commons-jelly-tags-quartz : Commons Jelly - commons-jelly-tags-regexp : Commons Jelly - commons-jelly-tags-sql : Commons Jelly - commons-jelly-tags-swing : Commons Jelly - commons-jelly-tags-swt : Commons Jelly - commons-jelly-tags-threads : Commons Jelly - commons-jelly-tags-util : Commons Jelly - commons-jelly-tags-validate : Commons Jelly - commons-jelly-tags-velocity : Commons Jelly - commons-jelly-tags-xml : Commons Jelly - commons-jelly-tags-xml-test : Commons Jelly - commons-jelly-tags-xmlunit : Commons Jelly - geronimo : Apache Geronimo, the J2EE server project of the Apache Softw... - htmlunit : A tool for testing web based applications - jakarta-cactus-documentation : Cactus Documentation - jakarta-cactus-framework-12 : Cactus Framework (J2EE 1.2) - jakarta-cactus-framework-13 : Cactus Framework (J2EE 1.3) - jakarta-cactus-release-12 : Unit test framework for server-side java code - jakarta-cactus-release-13 : Unit test framework for server-side java code - jakarta-cactus-sample-jetty-13 : Cactus Jetty Sample (J2EE 1.3) - jakarta-cactus-sample-servlet-12 : Cactus Servlet Sample (J2EE 1.2) - jakarta-cactus-sample-servlet-13 : Cactus Servlet Sample (J2EE 1.3) - jaxme2 - jaxmeapi - jaxmejs - jaxmexs - maven : Project Management Tools - maven-bootstrap : Project Management Tools - portals-jetspeed-1 : Enterprise Information Portal - strutstestcase : An extension of the standard JUnit TestCase class that provi... 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-02072006.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- 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: 8 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly] CLASSPATH: /opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local
[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 58 projects, and has been outstanding for 8 runs. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - cargo : Cargo provides a Java API to manipulate Java Containers - commons-jelly : Commons Jelly - commons-jelly-tags-ant : Commons Jelly - commons-jelly-tags-antlr : Commons Jelly - commons-jelly-tags-avalon : Commons Jelly - commons-jelly-tags-bean : Commons Jelly - commons-jelly-tags-beanshell : Commons Jelly - commons-jelly-tags-betwixt : Commons Jelly - commons-jelly-tags-bsf : Commons Jelly - commons-jelly-tags-define : Commons Jelly - commons-jelly-tags-define-test : Commons Jelly - commons-jelly-tags-dynabean : Commons Jelly - commons-jelly-tags-email : Commons Jelly - commons-jelly-tags-fmt : Commons Jelly - commons-jelly-tags-fmt-test : Commons Jelly - commons-jelly-tags-html : Commons Jelly - commons-jelly-tags-http : Commons Jelly - commons-jelly-tags-interaction : Commons Jelly - commons-jelly-tags-jetty : Commons Jelly - commons-jelly-tags-jface : Commons Jelly - commons-jelly-tags-jms : Commons Jelly - commons-jelly-tags-jmx : Commons Jelly - commons-jelly-tags-jsl : Commons Jelly - commons-jelly-tags-jsl-test : Commons Jelly - commons-jelly-tags-junit : Commons Jelly - commons-jelly-tags-log : Commons Jelly - commons-jelly-tags-memory : Commons Jelly - commons-jelly-tags-ojb : Commons Jelly - commons-jelly-tags-quartz : Commons Jelly - commons-jelly-tags-regexp : Commons Jelly - commons-jelly-tags-sql : Commons Jelly - commons-jelly-tags-swing : Commons Jelly - commons-jelly-tags-swt : Commons Jelly - commons-jelly-tags-threads : Commons Jelly - commons-jelly-tags-util : Commons Jelly - commons-jelly-tags-validate : Commons Jelly - commons-jelly-tags-velocity : Commons Jelly - commons-jelly-tags-xml : Commons Jelly - commons-jelly-tags-xml-test : Commons Jelly - commons-jelly-tags-xmlunit : Commons Jelly - geronimo : Apache Geronimo, the J2EE server project of the Apache Softw... - htmlunit : A tool for testing web based applications - jakarta-cactus-documentation : Cactus Documentation - jakarta-cactus-framework-12 : Cactus Framework (J2EE 1.2) - jakarta-cactus-framework-13 : Cactus Framework (J2EE 1.3) - jakarta-cactus-release-12 : Unit test framework for server-side java code - jakarta-cactus-release-13 : Unit test framework for server-side java code - jakarta-cactus-sample-jetty-13 : Cactus Jetty Sample (J2EE 1.3) - jakarta-cactus-sample-servlet-12 : Cactus Servlet Sample (J2EE 1.2) - jakarta-cactus-sample-servlet-13 : Cactus Servlet Sample (J2EE 1.3) - jaxme2 - jaxmeapi - jaxmejs - jaxmexs - maven : Project Management Tools - maven-bootstrap : Project Management Tools - portals-jetspeed-1 : Enterprise Information Portal - strutstestcase : An extension of the standard JUnit TestCase class that provi... 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-02072006.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- 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: 8 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly] CLASSPATH: /opt/jdk1.5/lib/tools.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/dist/commons-beanutils-core.jar:/usr/local
svn commit: r418566 - in /jakarta/commons/proper/collections/trunk: RELEASE-NOTES.html src/java/org/apache/commons/collections/iterators/IteratorChain.java
Author: scolebourne Date: Sun Jul 2 03:03:12 2006 New Revision: 418566 URL: http://svn.apache.org/viewvc?rev=418566&view=rev Log: Javadoc Modified: jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/iterators/IteratorChain.java Modified: jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html URL: http://svn.apache.org/viewvc/jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html?rev=418566&r1=418565&r2=418566&view=diff == --- jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html (original) +++ jakarta/commons/proper/collections/trunk/RELEASE-NOTES.html Sun Jul 2 03:03:12 2006 @@ -59,7 +59,7 @@ JAVADOC -xx +IteratorChain - Clarify constructor behaviour Modified: jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/iterators/IteratorChain.java URL: http://svn.apache.org/viewvc/jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/iterators/IteratorChain.java?rev=418566&r1=418565&r2=418566&view=diff == --- jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/iterators/IteratorChain.java (original) +++ jakarta/commons/proper/collections/trunk/src/java/org/apache/commons/collections/iterators/IteratorChain.java Sun Jul 2 03:03:12 2006 @@ -1,5 +1,5 @@ /* - * Copyright 1999-2005 The Apache Software Foundation + * Copyright 1999-2006 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. @@ -80,8 +80,15 @@ /** * Construct an IteratorChain with a single Iterator. + * + * This method takes one iterator. The newly constructed iterator + * will iterate through that iterator. Thus calling this constructor + * on its own will have no effect other than decorating the input iterator. + * + * You will normally use [EMAIL PROTECTED] #addIterator(Iterator)} to add + * some more iterators after using this constructor. * - * @param iterator first Iterator in the IteratorChain + * @param iterator the first child iterator in the IteratorChain, not null * @throws NullPointerException if the iterator is null */ public IteratorChain(Iterator iterator) { @@ -92,47 +99,56 @@ /** * Constructs a new IteratorChain over the two * given iterators. + * + * This method takes two iterators. The newly constructed iterator + * will iterate through each one of the input iterators in turn. * - * @param a the first child iterator - * @param b the second child iterator + * @param first the first child iterator in the IteratorChain, not null + * @param second the second child iterator in the IteratorChain, not null * @throws NullPointerException if either iterator is null */ -public IteratorChain(Iterator a, Iterator b) { +public IteratorChain(Iterator first, Iterator second) { super(); -addIterator(a); -addIterator(b); +addIterator(first); +addIterator(second); } /** * Constructs a new IteratorChain over the array * of iterators. + * + * This method takes an array of iterators. The newly constructed iterator + * will iterate through each one of the input iterators in turn. * - * @param iterators the array of iterators + * @param iteratorChain the array of iterators, not null * @throws NullPointerException if iterators array is or contains null */ -public IteratorChain(Iterator[] iterators) { +public IteratorChain(Iterator[] iteratorChain) { super(); -for (int i = 0; i < iterators.length; i++) { -addIterator(iterators[i]); +for (int i = 0; i < iteratorChain.length; i++) { +addIterator(iteratorChain[i]); } } /** * Constructs a new IteratorChain over the collection * of iterators. + * + * This method takes a collection of iterators. The newly constructed iterator + * will iterate through each one of the input iterators in turn. * - * @param iterators the collection of iterators + * @param iteratorChain the collection of iterators, not null * @throws NullPointerException if iterators collection is or contains null * @throws ClassCastException if iterators collection doesn't contain an iterator */ -public IteratorChain(Collection iterators) { +public IteratorChain(Collection iteratorChain) { super(); -for (Iterator it = iterators.iterator(); it.hasNext();) { +for (Iterator it = iteratorChain.iterator(); it.hasNext();) {