[GUMP@brutus]: Project commons-id (in module jakarta-commons-sandbox) 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-id has an issue affecting its community integration. This issue affects 1 projects. The current state of this project is 'Failed', with reason 'Build Failed'. For reference only, the following projects are affected by this: - commons-id : Commons Identifier Package Full details are available at: http://brutus.apache.org/gump/public/jakarta-commons-sandbox/commons-id/index.html That said, some information snippets are provided here. The following annotations (debug/informational/warning/error messages) were provided: -DEBUG- Sole output [commons-id-31012005.jar] identifier set to project name -DEBUG- (Gump generated) Maven Properties in: /usr/local/gump/public/workspace/jakarta-commons-sandbox/id/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/jakarta-commons-sandbox/id/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/jakarta-commons-sandbox/id/project.properties -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://brutus.apache.org/gump/public/jakarta-commons-sandbox/commons-id/gump_work/build_jakarta-commons-sandbox_commons-id.html Work Name: build_jakarta-commons-sandbox_commons-id (Type: Build) Work ended in a state of : Failed Elapsed: 1 sec Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/jakarta-commons-sandbox/id] CLASSPATH: /opt/jdk1.4/lib/tools.jar:/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/jakarta-commons/discovery/dist/commons-discovery.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/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar - __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 org.apache.maven.MavenException: Error reading XML or initializing at org.apache.maven.MavenUtils.getProject(MavenUtils.java:156) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) at org.apache.maven.MavenSession.initialize(MavenSession.java:172) at org.apache.maven.cli.App.doMain(App.java:475) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) --- Nested Exception --- java.io.FileNotFoundException: Parent POM not found: /home/gump/workspaces2/public/workspace/jakarta-commons-sandbox/sandbox-build/project.xml at org.apache.maven.MavenUtils.getNonJellyProject(MavenUtils.java:230) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:143) at org.apache.maven.MavenUtils.getProject(MavenUtils.java:122) at org.apache.maven.MavenSession.initializeRootProject(MavenSession.java:232) at org.apache.maven.MavenSession.initialize(MavenSession.java:172) at org.apache.maven.cli.App.doMain(App.java:475) at org.apache.maven.cli.App.main(App.java:1239) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at com.werken.forehead.Forehead.run(Forehead.java:551) at com.werken.forehead.Forehead.main(Forehead.java:581) You have encountered an unknown error running Maven. Please help us to correct
[digester] initial code for Digester2.0
Hi, As I mentioned a few months ago, I've been working on some ideas for Digester 2.0. I've put some code and notes up on http://www.apache.org/~skitching Comments from all commons-dev subscribers are welcome, but particularly from Craig and Robert. The RELEASE-NOTES.txt file gives a brief overview of what I've done so far, and what I personally would like to see. This is *not* intended to be final code, but rather to solicit yes/no feedback on what people like/dislike about the posted code. As you will see, many parts are still missing and I personally would still like to see significant changes even to parts already included (see RELEASE-NOTES.txt). However the basic structure is there, including a number of controversial (I expect) name changes. Once we get the general opinions out, and I have massaged the code into something that meets general concensus I hope to then add it to the sandbox for everyone to hack away at. Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[GUMP@brutus]: Project commons-jelly-tags-velocity (in module commons-jelly) success, but with warnings.
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-tags-velocity contains errors. The current state of this project is 'Success'. Full details are available at: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-velocity/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-tags-velocity-31012005.jar] identifier set to project name -ERROR- Multiple outputs defined by project jakarta-velocity; an id attribute is required to select the one you want -ERROR- Unhandled Property: maven.jar.velocity on: Maven on Project:commons-jelly-tags-velocity -DEBUG- Dependency on jakarta-velocity exists, no need to add for property maven.jar.velocity. -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/jelly-tags/velocity/build.properties -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/velocity/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/velocity/project.properties -INFO- No license on redistributable project with outputs. -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/velocity/target/test-reports The following work was performed: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-velocity/gump_work/build_commons-jelly_commons-jelly-tags-velocity.html Work Name: build_commons-jelly_commons-jelly-tags-velocity (Type: Build) Work ended in a state of : Success Elapsed: 6 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/velocity] 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/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/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-31012005.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jakarta-velocity/bin/velocity-31012005.jar:/usr/local/gump/public/workspace/jakarta-velocity/bin/velocity-dep-31012005.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-31012005.jar - __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 You are working offline so the build will continue, but commons-jelly-SNAPSHOT.jar may be out of date! build:start: java:prepare-filesystem: [mkdir] Created dir: /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/velocity/target/classes java:compile: [echo] Compiling to /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/velocity/target/classes [echo] == NOTE: Targetting JVM 1.4, classes will not run on earlier JVMs == [javac] Compiling 4 source files to /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/velocity/target/classes java:jar-resources: test:prepare-filesystem: [mkdir] Created dir: /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/velocity/target/test-classes [mkdir] Created dir: /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/velocity/target/test-reports test:test-resources: test:compile: [javac] Compiling 1 source file to /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/velocity/target/test-classes test:test: jar:jar:
[GUMP@brutus]: Project commons-jelly-tags-util (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-tags-util has an issue affecting its community integration. This issue affects 7 projects, and has been outstanding for 5 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-tags-ant : Commons Jelly - commons-jelly-tags-fmt : Commons Jelly - commons-jelly-tags-html : Commons Jelly - commons-jelly-tags-jsl : Commons Jelly - commons-jelly-tags-util : Commons Jelly - maven : Project Management Tools - maven-bootstrap : Project Management Tools Full details are available at: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-util/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-tags-util-31012005.jar] identifier set to project name -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/jelly-tags/util/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/target/test-reports -WARNING- No directory [/usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/target/test-reports] -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-util/gump_work/build_commons-jelly_commons-jelly-tags-util.html Work Name: build_commons-jelly_commons-jelly-tags-util (Type: Build) Work ended in a state of : Failed Elapsed: 5 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util] 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/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/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/optional/bean-collections/dist/commons-beanutils-bean-collections.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-31012005.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-31012005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-31012005.jar - __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 You are working offline so the build will continue, but commons-jelly-SNAPSHOT.jar may be out of date! build:start: java:prepare-filesystem: [mkdir] Created dir: /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/util/target/classes java:compile: [echo] Compiling to /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/util/target/classes [echo] == NOTE: Targetting JVM 1.4, classes will not run on earlier JVMs == [javac] Compiling 9 source files to /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/util/target/classes [javac]
Re: [digester] initial code for Digester2.0
XXXRule -- ActionXXX for all XXX By using a prefix instead of a suffix, all the Action classes group nicely together in the javadoc. I tend to prefer the type as a suffix, to keep them grouped in the javadoc I would rather use an action(s) subpackage. With or without 's' is another debate ;) Emmanuel Bourg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33311] New: - two typos in the manual page of MultipartStream
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=33311. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33311 Summary: two typos in the manual page of MultipartStream Product: Commons Version: 1.0 Final Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: File Upload AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] 1) Here is an exaple of usage of this class (should be example) 2) (within the code block) boolean nextPart = malitPartStream.skipPreamble (); (should be multipartStream.skipPreamble();) wrong code examples are annoying to readers -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: subversion: thanks for the hard work!
+1 Thanks a lot. The effort is much appreciated. Cheers, Rory Simon Kitching wrote: As the subversion changeover for jakarta-commons has gone remarkably smoothly, I would just like to say thanks to all those who made it happen, in particular: Justin Erenkrantz Tim O'Brien Henri Yandell Guys, your hard work is greatly appreciated, and I'm looking forward to using a 21st-century version control system! Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33311] - [fileupload] Two typos in the manual page of MultipartStream
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=33311. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE. http://issues.apache.org/bugzilla/show_bug.cgi?id=33311 [EMAIL PROTECTED] changed: What|Removed |Added Severity|normal |trivial OS/Version|Windows XP |All Platform|PC |All Summary|two typos in the manual page|[fileupload] Two typos in |of MultipartStream |the manual page of ||MultipartStream -- 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]
[dbcp] invalidating Connection - fine
Your patch is more elegant and works just fine Thanks Dirk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vfs] proposal: FileUtils
Mario Ivankovits wrote: Where do you think to implement this FileOperation interface? I miss the source fileobject -a s I said, I dont want to implement the interface in the FileObject and thus thought about something like this: DefaultFileOperations.get().copy(FileObject src, FileObject dest); I was going to pass the src in on construction of the operation object, but why? Using src as part of the parameter list seems just as good. void save(final OutputStream newContents, final FileObject dest, final boolean overwrite) throws FileSystemException; I have a strong distaste for using flags to control behavior in public methods. I find that it often leads to bugs when the flags are wrong, and it makes understanding the code more difficult. That is why I prefer explicitly named methods: void save(final OutputStream newContents, final FileObject dest) throws FileSystemException; void saveAndOverwrite(final OutputStream newContents, final FileObject dest) throws FileSystemException; How strong is your preference? If overwrite=false and the destination exists the methods should use backup() to create a backup of the destination file As an alternative, I took someone's suggestion of a policy object when I started coding a default implementation of the FileOperation interface, and let the policy object figure these things out. Another thing we could discuss is the usage of save(InputStream, ...). I renamed it to copy(InputStream, ...). I think if you do have an InputStream you would like to copy its output to another file - in opposite to save(OutputStream ...) where you do have the content of the file in memory (a bufferedImage, ) and would like to save it. I like save() because it describes the operation most closely from the point of view of the caller (Hey, save this file with these new contents!). The reason I used InputStream everywhere was for genericness (is that a word?). I pictured usage like this: // copy(src, dst) in your snippet operations.save(src, otherFile.getInputStream()); operations.save(src, new ByteArrayInputStream(blobInMemory.toArray()); This sort of negotiation over interface is painful remotely. I'd rather do it with my programming pairmate while writing unit tests. :-) Cheers, --binkley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble with svn checkout
Wow. svn checkout is slw. Is it just me or is there a noticeable performance difference between CVS and SVN? svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk somefolder Stephen - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Jakarta Commons Developers List commons-dev@jakarta.apache.org Sent: Sunday, January 30, 2005 5:02 PM Subject: Having trouble with svn checkout From: Henri Yandell [EMAIL PROTECTED] wrote: The SVN migration is finished. For an individual component, using lang as an example: svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang; I'm having trouble checking out a single Commons project: $ svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang svn: URL 'http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang' doesn't exist I was able to get the entire commons/proper using the command Craig posted yesterday (good thing disk space is cheap!): $ svn checkout http://svn.apache.org/repos/asf/jakarta/commons/proper/current What am I doing wrong? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vfs] proposal: FileUtils
Hello! void save(final OutputStream newContents, final FileObject dest) throws FileSystemException; void saveAndOverwrite(final OutputStream newContents, final FileObject dest) throws FileSystemException; How strong is your preference? Doesnt lead such a design to have tons of saveAnd methods. And the code within those objects is highly redundant, isnt it? However, I will let this decision on you. I never tried this style, maybe it become accepted. If overwrite=false and the destination exists the methods should use backup() to create a backup of the destination file As an alternative, I took someone's suggestion of a policy object when I started coding a default implementation of the FileOperation interface, and let the policy object figure these things out. ;-) Wasnt it me? I wanted you to use a BackupPolicy. And yes - I think this is the cleanest solution. I just thought you didnt want to go this way now as I missed it in your latest proposal. If you already took this way it is even better. I like save() because it describes the operation most closely from the point of view of the caller (Hey, save this file with these new contents!). The reason I used InputStream everywhere was for genericness (is that a word?). I pictured usage like this: You ask me? A non native speaker. However, it sounds cool ;-)) // copy(src, dst) in your snippet operations.save(src, otherFile.getInputStream()); operations.save(src, new ByteArrayInputStream(blobInMemory.toArray()); Didnt you mean? operations.save(otherFile.getInputStream(), dest); operations.save(new ByteArrayInputStream(blobInMemory.toArray()), dest); But every Filesystem call it copy and even if you use a file-manager there is a menu-entry called copy. save or save As only exists if you do have the content of the file open in an editor - and then, from the point of development - it is easier if the save method took an outputStream. --- Mario smime.p7s Description: S/MIME Cryptographic Signature
Re: svn commit: r149113 - /jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.java /jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/test/org/apache/commons/jelly/tags/xml/suite.jelly
Hi Paul, This fixed the original issue. I have another issue (as I mentioned before), if you run maven -e xdoc on maven-1/plugins/trunk/ashkelon you can see it. I'll investigate when I can, but hold off on that release in the mean time :) - Brett [EMAIL PROTECTED] wrote: Author: polx Date: Sat Jan 29 23:47:05 2005 New Revision: 149113 URL: http://svn.apache.org/viewcvs?view=revrev=149113 Log: x:set was returning empty-list in case of empty results whereas it used to return a null (which becomes an empty string often in jexl or jelly). Fixed so that when asString, single, and delim attributes are not set, it is backwards compatible. Reverted to the multi-slot evaluation-style as opposed to the single policy introduced by Michael Schuerig. paul Modified: jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.java jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/test/org/apache/commons/jelly/tags/xml/suite.jelly Modified: jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.java Url: http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.java?view=diffrev=149113p1=jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.javar1=149112p2=jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.javar2=149113 == --- jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.java (original) +++ jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.java Sat Jan 29 23:47:05 2005 @@ -30,9 +30,10 @@ import org.jaxen.JaxenException; import java.util.ArrayList; +import java.util.Collections; import java.util.Iterator; import java.util.List; -import java.util.Collections; +import java.util.ListIterator; /** A tag which defines a variable from an XPath expression. * This function creates a variable of type [EMAIL PROTECTED] List} or [EMAIL PROTECTED] org.dom4j.Node} @@ -66,6 +67,8 @@ private Boolean single = null; private Boolean asString = null; + +private String delimiter = null; private String delim = null; @@ -86,7 +89,7 @@ Object xpathContext = getXPathContext(); Object value = null; try { -if(single!=null single.booleanValue()==true) { +if( single != null single.booleanValue() == true ) { value = select.selectSingleNode(xpathContext); } else { value = select.evaluate(xpathContext); @@ -97,29 +100,74 @@ } if (value instanceof List) { +List list = (List) value; // sort the list if xpCmp is set. if (xpCmp != null (xpCmp.getXpath() != null)) { -Collections.sort((List)value, xpCmp); +Collections.sort(list, xpCmp); +} +if(list.isEmpty()) { +value = null; } } + -switch ( determineReturnType() ) { -case RETURN_NODE_LIST: -value = valueAsList(value); -break; -case RETURN_FIRST_NODE: -value = valueAsSingle(value); -break; -case RETURN_STRING_LIST: -value = nodeListToStringList(valueAsList(value)); -break; -case RETURN_DELIMITED_STRING_LIST: -value = joinDelimitedElements(nodeListToStringList(valueAsList(value))); -break; -case RETURN_FIRST_AS_STRING: -value = singleValueAsString(valueAsSingle(value)); -break; +// handle single +if (single!=null) { +if (single.booleanValue() == true) { +if(value instanceof List) { +List l = (List) value; +if (l.size() == 0) +value=null; +else +value=l.get(0); +} +} else { // single == false +if(! (value instanceof List) ) { +List l = null; +if (value==null) { +l = new ArrayList(0); +} else { +l = new ArrayList(1); +l.add(value); +} +value = l; +} +} +} + +// now convert the result(s) to string if need +if(asString != null asString.booleanValue()) { +if(value instanceof Node) { +value = ((Node) value).getStringValue(); +} else if(value instanceof List) { +for(ListIterator it = ((List) value).listIterator(); it.hasNext(); ) { +
Re: svn commit: r149113 - /jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/SetTag.java /jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/test/org/apache/commons/jelly/tags/xml/suite.jelly
You must also have changed maven to svn... but the web-page still speaks about cvs! Or ? paul Le 31 janv. 05, à 13:22, Brett Porter a écrit : This fixed the original issue. I have another issue (as I mentioned before), if you run maven -e xdoc on maven-1/plugins/trunk/ashkelon you can see it. I'll investigate when I can, but hold off on that release in the mean time :) - Brett [EMAIL PROTECTED] wrote: Author: polx Date: Sat Jan 29 23:47:05 2005 New Revision: 149113 URL: http://svn.apache.org/viewcvs?view=revrev=149113 Log: x:set was returning empty-list in case of empty results whereas it used to return a null (which becomes an empty string often in jexl or jelly). Fixed so that when asString, single, and delim attributes are not set, it is backwards compatible. Reverted to the multi-slot evaluation-style as opposed to the single policy introduced by Michael Schuerig. paul Modified: jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/ apache/commons/jelly/tags/xml/SetTag.java jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/test/org/ apache/commons/jelly/tags/xml/suite.jelly Modified: jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/ apache/commons/jelly/tags/xml/SetTag.java Url: http://svn.apache.org/viewcvs/jakarta/commons/proper/jelly/trunk/ jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/ SetTag.java?view=diffrev=149113p1=jakarta/commons/proper/jelly/ trunk/jelly-tags/xml/src/java/org/apache/commons/jelly/tags/xml/ SetTag.javar1=149112p2=jakarta/commons/proper/jelly/trunk/jelly- tags/xml/src/java/org/apache/commons/jelly/tags/xml/ SetTag.javar2=149113 == --- jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/ apache/commons/jelly/tags/xml/SetTag.java (original) +++ jakarta/commons/proper/jelly/trunk/jelly-tags/xml/src/java/org/ apache/commons/jelly/tags/xml/SetTag.java Sat Jan 29 23:47:05 2005 @@ -30,9 +30,10 @@ import org.jaxen.JaxenException; import java.util.ArrayList; +import java.util.Collections; import java.util.Iterator; import java.util.List; -import java.util.Collections; +import java.util.ListIterator; /** A tag which defines a variable from an XPath expression. * This function creates a variable of type [EMAIL PROTECTED] List} or [EMAIL PROTECTED] org.dom4j.Node} @@ -66,6 +67,8 @@ private Boolean single = null; private Boolean asString = null; ++private String delimiter = null; private String delim = null; @@ -86,7 +89,7 @@ Object xpathContext = getXPathContext(); Object value = null; try { -if(single!=null single.booleanValue()==true) { +if( single != null single.booleanValue() == true ) { value = select.selectSingleNode(xpathContext); } else { value = select.evaluate(xpathContext); @@ -97,29 +100,74 @@ } if (value instanceof List) { +List list = (List) value; // sort the list if xpCmp is set. if (xpCmp != null (xpCmp.getXpath() != null)) { -Collections.sort((List)value, xpCmp); +Collections.sort(list, xpCmp); +} +if(list.isEmpty()) { +value = null; } } +-switch ( determineReturnType() ) { -case RETURN_NODE_LIST: -value = valueAsList(value); -break; -case RETURN_FIRST_NODE: -value = valueAsSingle(value); -break; -case RETURN_STRING_LIST: -value = nodeListToStringList(valueAsList(value)); -break; -case RETURN_DELIMITED_STRING_LIST: -value = joinDelimitedElements(nodeListToStringList(valueAsList(value))); -break; -case RETURN_FIRST_AS_STRING: -value = singleValueAsString(valueAsSingle(value)); -break; +// handle single +if (single!=null) { +if (single.booleanValue() == true) { +if(value instanceof List) { +List l = (List) value; +if (l.size() == 0) +value=null; +else +value=l.get(0); +} +} else { // single == false +if(! (value instanceof List) ) { +List l = null; +if (value==null) { +l = new ArrayList(0); +} else { +l = new ArrayList(1); +l.add(value); +} +value = l; +} +} +} ++// now convert the result(s) to string if need +if(asString != null asString.booleanValue()) { +if(value instanceof Node) { +value = ((Node)
svn commit: r149254 - jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/MessageManager.java
Author: dflorey Date: Mon Jan 31 05:09:59 2005 New Revision: 149254 URL: http://svn.apache.org/viewcvs?view=revrev=149254 Log: Javadoc corrected Modified: jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/MessageManager.java Modified: jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/MessageManager.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/MessageManager.java?view=diffr1=149253r2=149254 == --- jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/MessageManager.java (original) +++ jakarta/commons/sandbox/i18n/trunk/src/java/org/apache/commons/i18n/MessageManager.java Mon Jan 31 05:09:59 2005 @@ -29,7 +29,7 @@ /** * The codeMessageManager/code provides methods for retrieving localized * messages and adding custom message providers. This class should not be called - * directly for other purposes than registering a custom [EMAIL PROTECTED] + * directly for other purposes than registering a custom [EMAIL PROTECTED] MessageProvider} * or retrieving information about available message entries. * p * To access localized messages a subclass of the [EMAIL PROTECTED] LocalizedBundle}class - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[dbcp] invalidating Connection - fine
Your patch is more elegant and works just fine Thanks Dirk. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [javaflow] test cases in junit?
Torsten Curdt wrote: * I added a ContinuationException class that can be thrown to clients using this code instead of stuff like java.lang.reflect.InvocationTargetException that is dependent on the underlying bytecode toolkit. That class was missing in your patch. Besides I am wondering what you mean by dependand on the bytecode toolkit?! There was a note in TODO about investigating using ASM instead of BCEL. Without even looking in detail at ASM, my guess is that it will throw different exceptions than BCEL when manipulating the bytecode, etc. My idea was that we could throw a ContinuationException instead of the underlying FooException that either BCEL or ASM uses to insulate any calling classes from having to change in the event of a switch from BCEL to ASM. Please have a look into the one I've committed. Continueing from the very same continuation is totally ok! Keep the tree of continuations in mind! Ok, thanks for correcting me. * In the TODO file, you mention something about removing the Continuable and ContinuationCapable marker interfaces. Can you please elaborate on the reasons behind that? The Continuable marks classes that should be rewritten. The ContinuationCapable mark classes that have been rewritten. IMO this can all go away. We could define that on a package scope. E.g. via regexp. Going for a decend callflow analyses would even figure out the needed rewrites by itself. Might be some work though... I think I understand the reason why both of these interfaces exist. However, if the intent is to be able to use Continuation.suspend() within any class without having to implement Continuable on that class, then maybe just do away with Continuable and keep ContinuationCapable as the marker for that class after it has been rewritten. What benefit does the regex approach provide? Callflow analyses seems like it could be messy. And I think just tagging the rewritten class with this interface is pretty transparent, no? phil. -- Whirlycott Philip Jacob [EMAIL PROTECTED] http://www.whirlycott.com/phil/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33313] New: - [javaflow] more test cases and findbugs problems
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=33313. 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=33313 Summary: [javaflow] more test cases and findbugs problems Product: Commons Version: unspecified Platform: All OS/Version: All Status: NEW Severity: normal Priority: P2 Component: Sandbox AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] Another testcase testing for proper exception when a Continuation.suspend() is used without the right classloader. Added a few final modifiers as I was browsing around. Fixed some problems that findbugs found. http://findbugs.sourceforge.net/ -- 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 33313] - [javaflow] more test cases and findbugs problems
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=33313. 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=33313 --- Additional Comments From [EMAIL PROTECTED] 2005-01-31 17:14 --- Created an attachment (id=14142) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14142action=view) patch for the aforementioned items -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are the assignee for the bug, or are watching the assignee. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble with svn checkout
Definitely a performance difference, but it's not all one way. Updates and Commits for lots of files seems to be a lot quicker, whereas for a single file is slower. jakarta-site2 was really becoming a slow pain; I suspect the number of revisions on a file made it slower in CVS. Then there's the local stuff like svn revert, svn status, svn info that don't use the network at all. They're much quicker :) Hen On Mon, 31 Jan 2005 11:51:49 +, Rory Winston [EMAIL PROTECTED] wrote: Wow. svn checkout is slw. Is it just me or is there a noticeable performance difference between CVS and SVN? svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk somefolder Stephen - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Jakarta Commons Developers List commons-dev@jakarta.apache.org Sent: Sunday, January 30, 2005 5:02 PM Subject: Having trouble with svn checkout From: Henri Yandell [EMAIL PROTECTED] wrote: The SVN migration is finished. For an individual component, using lang as an example: svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang; I'm having trouble checking out a single Commons project: $ svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang svn: URL 'http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang' doesn't exist I was able to get the entire commons/proper using the command Craig posted yesterday (good thing disk space is cheap!): $ svn checkout http://svn.apache.org/repos/asf/jakarta/commons/proper/current What am I doing wrong? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [logging] history lessons revisited
On 2005-01-28 20:15:13, Richard Sitze wrote: [re-send.. I don't see this picked up... hmmm] I intend to respond to your message in detail as soon as I get a chance. It's at the top of my to do list. -- Ceki Gülcü The complete log4j manual: http://www.qos.ch/log4j/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149281 - in jakarta/commons/proper/httpclient/trunk/src: java/org/apache/commons/httpclient/util/DateParser.java java/org/apache/commons/httpclient/util/DateUtil.java test/org/apache/commons/httpclient/TestMethodsExternalHost.java test/org/apache/commons/httpclient/cookie/TestCookieCompatibilitySpec.java
Author: oglueck Date: Mon Jan 31 10:35:07 2005 New Revision: 149281 URL: http://svn.apache.org/viewcvs?view=revrev=149281 Log: Removed references to nagoya. Modified: jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateParser.java jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/cookie/TestCookieCompatibilitySpec.java Modified: jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateParser.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateParser.java?view=diffr1=149280r2=149281 == --- jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateParser.java (original) +++ jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateParser.java Mon Jan 31 10:35:07 2005 @@ -1,7 +1,7 @@ /* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/util/DateParser.java,v 1.11 2004/11/06 19:15:42 mbecke Exp $ * $Revision: 1.11 $ - * $Date: 2004/11/06 19:15:42 $ + * $Date$ * * * @@ -111,7 +111,7 @@ dateFormats = DEFAULT_PATTERNS; } // trim single quotes around date if present -// see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5279 +// see issue #5279 if (dateValue.length() 1 dateValue.startsWith(') dateValue.endsWith(') Modified: jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java?view=diffr1=149280r2=149281 == --- jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java (original) +++ jakarta/commons/proper/httpclient/trunk/src/java/org/apache/commons/httpclient/util/DateUtil.java Mon Jan 31 10:35:07 2005 @@ -1,7 +1,7 @@ /* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/java/org/apache/commons/httpclient/util/DateUtil.java,v 1.2 2004/12/24 20:36:13 olegk Exp $ * $Revision: 1.2 $ - * $Date: 2004/12/24 20:36:13 $ + * $Date$ * * * @@ -142,7 +142,7 @@ startDate = DEFAULT_TWO_DIGIT_YEAR_START; } // trim single quotes around date if present -// see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5279 +// see issue #5279 if (dateValue.length() 1 dateValue.startsWith(') dateValue.endsWith(') Modified: jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java?view=diffr1=149280r2=149281 == --- jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java (original) +++ jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java Mon Jan 31 10:35:07 2005 @@ -1,7 +1,7 @@ /* * $Header: /home/jerenkrantz/tmp/commons/commons-convert/cvs/home/cvs/jakarta-commons//httpclient/src/test/org/apache/commons/httpclient/TestMethodsExternalHost.java,v 1.15 2004/09/17 07:57:49 oglueck Exp $ * $Revision: 1.15 $ - * $Date: 2004/09/17 07:57:49 $ + * $Date$ * * * Copyright 1999-2004 The Apache Software Foundation @@ -47,7 +47,7 @@ * @author Rodney Waldhoff * @author Ortwin Glck * @author Jeff Dever - * @version $Id: TestMethodsExternalHost.java,v 1.15 2004/09/17 07:57:49 oglueck Exp $ + * @version $Id$ */ public class TestMethodsExternalHost extends TestCase { @@ -194,7 +194,7 @@ /** - * http://nagoya.apache.org/bugzilla/show_bug.cgi?id=16864 + * see issue #16864 */ public void testDomino_Go_Webserver404() throws Exception { Modified: jakarta/commons/proper/httpclient/trunk/src/test/org/apache/commons/httpclient/cookie/TestCookieCompatibilitySpec.java URL:
[Jexl BeanUtils] Why not extend Jexl or beanutils to match same map syntax ?
Hi. This message is for jexl and beanutils folks. I'm using both of them, as many people I presume. Both of them share _almost_ the same syntax but for mapped access. Jexl uses square brackets as bean.map[key] and beanUtils uses parentheses bean.map(key) To my opinion it could be a good idea to extends jexl to uses also beanutils parentheses syntax. What are you thinking about this ? Marc DeXeT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Jexl BeanUtils] Why not extend Jexl or beanutils to match same map syntax ?
shameless-plug The Morph framework (morph.sourceforge.net) supports either syntax out-of-the box. Morph had its first beta release yesterday. For a comparison of Morph to JEXL, see http://morph.sourceforge.net/alternatives/jexl.html For a comparison of Morph to BeanUtils, see http://morph.sourceforge.net/alternatives/beanutils.html /shameless-plug Matt marc lan wrote: Hi. This message is for jexl and beanutils folks. I'm using both of them, as many people I presume. Both of them share _almost_ the same syntax but for mapped access. Jexl uses square brackets as bean.map[key] and beanUtils uses parentheses bean.map(key) To my opinion it could be a good idea to extends jexl to uses also beanutils parentheses syntax. What are you thinking about this ? Marc DeXeT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Jexl BeanUtils] Why not extend Jexl or beanutils to match same map syntax ?
Matt Sgarlata wrote: shameless-plug The Morph framework (morph.sourceforge.net) supports either syntax out-of-the box. Morph had its first beta release yesterday. For a comparison of Morph to JEXL, see http://morph.sourceforge.net/alternatives/jexl.html For a comparison of Morph to BeanUtils, see http://morph.sourceforge.net/alternatives/beanutils.html /shameless-plug It seems' to be a nice framework, but I'm working with jelly so need jexl :) Marc DeXeT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[jxpath] optimize xpath query on xpath enabled containers
Hi, Im am looking at executing jxpath queries against a model that supports lazy loading and queries. Queries like [EMAIL PROTECTED] = ''test'] will be executed by looping through all nodes and testing if the expression is true for a node. Because my model supports queries itself, It would be much faster to query the model and have the model itself execute the query that will load only the nodes for which the expression is true. I saw a xalan integration in the code, possibly for the same purpose. Is there a way to extend jxpath with functionality that uses the model (or the nodepointer) itself to execute the rest of the query? TIA, Michael
Re: [feedparser] Components cannot be released from the sandbox ?
Components cannot be released from the sandbox, correct. This is done because we want components to move into commons proper. There are 3 committers and contributions from the community. 11 months of development and a release plan towards a 1.0 release. All signs showing a component ready for promotion. So lets call a VOTE to promote feedparser, then you can have a release plan with one or more release candidates towards a final 1.0. -- Dirk Kevin A. Burton wrote: I was just taking a look here: And it says: http://wiki.apache.org/jakarta-commons/JakartaCommonsEtiquette The sandbox is a space provided by Jakarta for the development of experimental code by existing committers. It is divided into components. Any Jakarta committer has the right ask for karma and have it granted. The right place to ask is on the commons-dev mailing list. Components cannot be released from the sandbox. I'm trying to get us to a point where we can release a 0.5 beta of FeedParser and then shortly after that (a month or so?) a 1.0 release candidate. I'm giving a talk on the FeedParser at CodeCon so I wanted to do a 0.5 or at least a tagged SVN before then. But it looks like I can only have nightly builds in the sandbox. Which brings up the question of whether or not I can move out of the sandbox and into commons proper or maybe into the incubator... This has been brought up before due to the fact that we currently have multiple developers working on FeedParser and coordination is a bit of a pain when working in the sandbox. Any thoughts? Things are moving along nicely. We're getting some solid attention and patches from external developers and might be collaborating with the Rome developers or merging projects. We're proposing a joint presentation at JavaOne on the subject. Thanks gang! Kevin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149293 - jakarta/commons/trunks-proper
Author: dirkv Date: Mon Jan 31 12:36:14 2005 New Revision: 149293 URL: http://svn.apache.org/viewcvs?view=revrev=149293 Log: remove cactus (promoted to jakarta level), docs and combo Modified: jakarta/commons/trunks-proper/ (props changed) Propchange: jakarta/commons/trunks-proper/ -- --- svn:externals (original) +++ svn:externals Mon Jan 31 12:36:14 2005 @@ -1,12 +1,10 @@ attributes https://svn.apache.org/repos/asf/jakarta/commons/proper/attributes/trunk beanutils https://svn.apache.org/repos/asf/jakarta/commons/proper/beanutils/trunk betwixt https://svn.apache.org/repos/asf/jakarta/commons/proper/betwixt/trunk -cactus https://svn.apache.org/repos/asf/jakarta/commons/proper/cactus/trunk chain https://svn.apache.org/repos/asf/jakarta/commons/proper/chain/trunk cli https://svn.apache.org/repos/asf/jakarta/commons/proper/cli/trunk codec https://svn.apache.org/repos/asf/jakarta/commons/proper/codec/trunk collections https://svn.apache.org/repos/asf/jakarta/commons/proper/collections/trunk -combo https://svn.apache.org/repos/asf/jakarta/commons/proper/combo/trunk commons-build https://svn.apache.org/repos/asf/jakarta/commons/proper/commons-build/trunk configuration https://svn.apache.org/repos/asf/jakarta/commons/proper/configuration/trunk daemon https://svn.apache.org/repos/asf/jakarta/commons/proper/daemon/trunk @@ -14,7 +12,6 @@ dbutils https://svn.apache.org/repos/asf/jakarta/commons/proper/dbutils/trunk digester https://svn.apache.org/repos/asf/jakarta/commons/proper/digester/trunk discovery https://svn.apache.org/repos/asf/jakarta/commons/proper/discovery/trunk -docs https://svn.apache.org/repos/asf/jakarta/commons/proper/docs/trunk el https://svn.apache.org/repos/asf/jakarta/commons/proper/el/trunk email https://svn.apache.org/repos/asf/jakarta/commons/proper/email/trunk fileupload https://svn.apache.org/repos/asf/jakarta/commons/proper/fileupload/trunk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149296 - in jakarta/commons/proper: attributes/trunk/project.xml cli/trunk/project.xml codec/trunk/project.xml discovery/trunk/project.xml el/trunk/project.xml email/trunk/project.xml jxpath/trunk/project.xml latka/trunk/project.xml transaction/trunk/project.xml
Author: dirkv Date: Mon Jan 31 12:50:04 2005 New Revision: 149296 URL: http://svn.apache.org/viewcvs?view=revrev=149296 Log: change archivehttp://nagoya.apache.org/eyebrowse/ to archivehttp://mail-archives.apache.org/eyebrowse/ Modified: jakarta/commons/proper/attributes/trunk/project.xml jakarta/commons/proper/cli/trunk/project.xml jakarta/commons/proper/codec/trunk/project.xml jakarta/commons/proper/discovery/trunk/project.xml jakarta/commons/proper/el/trunk/project.xml jakarta/commons/proper/email/trunk/project.xml jakarta/commons/proper/jxpath/trunk/project.xml jakarta/commons/proper/latka/trunk/project.xml jakarta/commons/proper/transaction/trunk/project.xml Modified: jakarta/commons/proper/attributes/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/attributes/trunk/project.xml?view=diffr1=149295r2=149296 == --- jakarta/commons/proper/attributes/trunk/project.xml (original) +++ jakarta/commons/proper/attributes/trunk/project.xml Mon Jan 31 12:50:04 2005 @@ -75,13 +75,13 @@ nameCommons Dev List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe -archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive +archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive /mailingList mailingList nameCommons User List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe -archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive +archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive /mailingList /mailingLists Modified: jakarta/commons/proper/cli/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/cli/trunk/project.xml?view=diffr1=149295r2=149296 == --- jakarta/commons/proper/cli/trunk/project.xml (original) +++ jakarta/commons/proper/cli/trunk/project.xml Mon Jan 31 12:50:04 2005 @@ -51,13 +51,13 @@ nameCommons Dev List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe - archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive + archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive /mailingList mailingList nameCommons User List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe - archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive + archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive /mailingList /mailingLists Modified: jakarta/commons/proper/codec/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/codec/trunk/project.xml?view=diffr1=149295r2=149296 == --- jakarta/commons/proper/codec/trunk/project.xml (original) +++ jakarta/commons/proper/codec/trunk/project.xml Mon Jan 31 12:50:04 2005 @@ -56,13 +56,13 @@ nameCommons Dev List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe -archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive +archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive /mailingList mailingList nameCommons User List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe -archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive +archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive /mailingList /mailingLists versions Modified: jakarta/commons/proper/discovery/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/discovery/trunk/project.xml?view=diffr1=149295r2=149296 == --- jakarta/commons/proper/discovery/trunk/project.xml (original) +++ jakarta/commons/proper/discovery/trunk/project.xml Mon Jan 31 12:50:04 2005 @@ -59,13 +59,13 @@ nameCommons Dev List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe - archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive + archivehttp://mail-archives.apache.org/eyebrowse/[EMAIL PROTECTED]/archive /mailingList mailingList nameCommons User List/name subscribe[EMAIL PROTECTED]/subscribe unsubscribe[EMAIL PROTECTED]/unsubscribe - archivehttp://nagoya.apache.org/eyebrowse/[EMAIL PROTECTED]/archive +
svn commit: r149300 - in jakarta/commons/proper: codec/trunk/ codec/trunk/src/test/org/apache/commons/codec/language/ jelly/trunk/jelly-tags/soap/src/test/org/apache/commons/jelly/tags/soap/ latka/trunk/ math/trunk/ math/trunk/src/test/org/apache/commons/math/distribution/ math/trunk/xdocs/ transaction/trunk/xdocs/style/
Author: dirkv Date: Mon Jan 31 13:03:02 2005 New Revision: 149300 URL: http://svn.apache.org/viewcvs?view=revrev=149300 Log: change http://nagoya.apache.org/bugzilla to http://issues.apache.org/bugzilla Modified: jakarta/commons/proper/codec/trunk/project.xml jakarta/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/SoundexTest.java jakarta/commons/proper/jelly/trunk/jelly-tags/soap/src/test/org/apache/commons/jelly/tags/soap/example.jelly jakarta/commons/proper/latka/trunk/project.xml jakarta/commons/proper/math/trunk/project.properties jakarta/commons/proper/math/trunk/src/test/org/apache/commons/math/distribution/TDistributionTest.java jakarta/commons/proper/math/trunk/xdocs/developers.xml jakarta/commons/proper/transaction/trunk/xdocs/style/basic.xsl Modified: jakarta/commons/proper/codec/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/codec/trunk/project.xml?view=diffr1=149299r2=149300 == --- jakarta/commons/proper/codec/trunk/project.xml (original) +++ jakarta/commons/proper/codec/trunk/project.xml Mon Jan 31 13:03:02 2005 @@ -185,7 +185,7 @@ urlhttp://www.junit.org/url /dependency /dependencies - issueTrackingUrlhttp://nagoya.apache.org/bugzilla/buglist.cgi?bug_status=NEWamp;bug_status=ASSIGNEDamp;bug_status=REOPENEDamp;email1=amp;emailtype1=substringamp;emailassigned_to1=1amp;email2=amp;emailtype2=substringamp;emailreporter2=1amp;bugidtype=includeamp;bug_id=amp;changedin=amp;votes=amp;chfieldfrom=amp;chfieldto=Nowamp;chfieldvalue=amp;product=Commonsamp;component=Codecamp;short_desc=amp;short_desc_type=allwordssubstramp;long_desc=amp;long_desc_type=allwordssubstramp;bug_file_loc=amp;bug_file_loc_type=allwordssubstramp;keywords=amp;keywords_type=anywordsamp;field0-0-0=noopamp;type0-0-0=noopamp;value0-0-0=amp;cmdtype=doitamp;newqueryname=amp;order=Reuse+same+sort+as+last+time/issueTrackingUrl + issueTrackingUrlhttp://issues.apache.org/bugzilla/buglist.cgi?bug_status=NEWamp;bug_status=ASSIGNEDamp;bug_status=REOPENEDamp;email1=amp;emailtype1=substringamp;emailassigned_to1=1amp;email2=amp;emailtype2=substringamp;emailreporter2=1amp;bugidtype=includeamp;bug_id=amp;changedin=amp;votes=amp;chfieldfrom=amp;chfieldto=Nowamp;chfieldvalue=amp;product=Commonsamp;component=Codecamp;short_desc=amp;short_desc_type=allwordssubstramp;long_desc=amp;long_desc_type=allwordssubstramp;bug_file_loc=amp;bug_file_loc_type=allwordssubstramp;keywords=amp;keywords_type=anywordsamp;field0-0-0=noopamp;type0-0-0=noopamp;value0-0-0=amp;cmdtype=doitamp;newqueryname=amp;order=Reuse+same+sort+as+last+time/issueTrackingUrl build nagEmailAddresscommons-dev@jakarta.apache.org/nagEmailAddress sourceDirectorysrc/java/sourceDirectory Modified: jakarta/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/SoundexTest.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/SoundexTest.java?view=diffr1=149299r2=149300 == --- jakarta/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/SoundexTest.java (original) +++ jakarta/commons/proper/codec/trunk/src/test/org/apache/commons/codec/language/SoundexTest.java Mon Jan 31 13:03:02 2005 @@ -1,18 +1,18 @@ /* * Copyright 2001-2004 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. - */ + */ // (FYI: Formatted and sorted with Eclipse) package org.apache.commons.codec.language; @@ -26,8 +26,8 @@ /** * Tests [EMAIL PROTECTED] Soundex} - * - * @version $Id: SoundexTest.java,v 1.20 2004/10/08 22:56:22 ggregory Exp $ + * + * @version $Id$ * @author Apache Software Foundation */ public class SoundexTest extends StringEncoderAbstractTest { @@ -47,7 +47,7 @@ assertEquals(expectedEncoding, this.getEncoder().encode(strings[i])); } } - + /** * @return Returns the _encoder. */ @@ -139,7 +139,7 @@ // Examples from http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_setu-sus_3o6w.asp assertEquals(4, this.getEncoder().difference(Smith, Smythe)); assertEquals(4, this.getEncoder().difference(Smithers, Smythers)); -assertEquals(2,
svn commit: r149301 - jakarta/commons/proper/configuration/trunk/build.xml
Author: oheger Date: Mon Jan 31 13:14:28 2005 New Revision: 149301 URL: http://svn.apache.org/viewcvs?view=revrev=149301 Log: Next trial to get the nightly builds running Modified: jakarta/commons/proper/configuration/trunk/build.xml Modified: jakarta/commons/proper/configuration/trunk/build.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/configuration/trunk/build.xml?view=diffr1=149300r2=149301 == --- jakarta/commons/proper/configuration/trunk/build.xml (original) +++ jakarta/commons/proper/configuration/trunk/build.xml Mon Jan 31 13:14:28 2005 @@ -20,6 +20,12 @@ /property property name=javadocdir value=dist/docs/api /property + + !-- Manual changes for dealing with the conf directory -- + property name=confdir value=conf/ + property name=targetconfdir value=${defaulttargetdir}/${confdir}/ + !-- Manual changes end -- + property name=final.name value=commons-configuration-1.1-dev /property path id=build.classpath @@ -101,6 +107,15 @@ /pathelement pathelement path=${classesdir} /pathelement +!-- Manual changes for dealing with the conf directory -- +pathelement path=${targetconfdir}/ +path + fileset dir=${targetconfdir} +include name=resources.jar/ + /fileset +/path +!-- Manual changes end -- + /classpath batchtest todir=${testreportdir} fileset dir=src/test @@ -136,14 +151,16 @@ /pathelement /classpath /javac -copy todir=${testclassesdir} - fileset dir=src/test +!-- Manual changes for dealing with the conf directory -- +mkdir dir=${targetconfdir}/ +copy todir=${targetconfdir} + fileset dir=${confdir} include name=*.xml /include /fileset /copy -copy todir=${testclassesdir} - fileset dir=src/test +copy todir=${targetconfdir} + fileset dir=${confdir} include name=testClasspath.properties /include include name=testdb.script @@ -152,12 +169,13 @@ /include include name=*.dtd /include +include name=resources.jar/ /fileset /copy -mkdir dir=${testclassesdir}/org/apache/commons/configuration +mkdir dir=${targetconfdir}/org/apache/commons/configuration /mkdir -copy todir=${testclassesdir}/org/apache/commons/configuration - fileset dir=src/test +copy todir=${targetconfdir}/org/apache/commons/configuration + fileset dir=${confdir} include name=test.properties /include include name=include.properties @@ -167,11 +185,12 @@ mkdir dir=${testclassesdir}/config /mkdir copy todir=${testclassesdir}/config - fileset dir=src/test + fileset dir=${confdir} include name=**/*.properties /include /fileset /copy +!-- Manual changes end -- /target target name=javadoc description=o Generate javadoc depends=get-deps mkdir dir=${javadocdir} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149302 - jakarta/commons/proper/commons-build/trunk/menus/view.ent
Author: dirkv Date: Mon Jan 31 13:21:47 2005 New Revision: 149302 URL: http://svn.apache.org/viewcvs?view=revrev=149302 Log: View CVS = View SVN Modified: jakarta/commons/proper/commons-build/trunk/menus/view.ent Modified: jakarta/commons/proper/commons-build/trunk/menus/view.ent URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/menus/view.ent?view=diffr1=149301r2=149302 == --- jakarta/commons/proper/commons-build/trunk/menus/view.ent (original) +++ jakarta/commons/proper/commons-build/trunk/menus/view.ent Mon Jan 31 13:21:47 2005 @@ -1,7 +1,7 @@ !-- -The View CVS menu element +The View SVN menu element -- -menu name=View CVS -item name=Components href=http://cvs.apache.org/viewcvs/jakarta-commons// -item name=Sandbox href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox// +menu name=View SVN +item name=Components href=http://svn.apache.org/viewcvs/jakarta/commons/proper// +item name=Sandbox href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox// /menu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [configuration] auto build fails
I think the conf directory that we use to store our test files causes the problems with the unit tests. I modified the build.xml to copy this directory to the target dir and to include its content in the class path for the tests. Now an ant clean dist should work, but at least for the source distribution I am not sure whether the generated archievs will really contain all necessary files. The cleanest solution is probably to move the content of the conf directory somewhere below the src tree (e.g. test-resources or something like that). But this will have a major impact on many of our unit tests and I doubt if this step would solve all our problems with the auto generated build.xml script. Oliver Craig McClanahan wrote: The build is succeeding, but the unit tests (which are executed by the dist target of the generated build.xml file) are failing, which causes the entire build to fail. Log file of running ant clean dist is attached. Craig On Sun, 30 Jan 2005 17:30:33 +0100, Oliver Heger [EMAIL PROTECTED] wrote: I tried to regenerate the build.xml file using the latest version of the maven ant plugin, but it still doesn't seem to work (the zips for the binary distribution are still empty, the source distros look a bit cleaner, at least they do not contain that strange absolute path any more). Craig, can you send me some logs on what is happening? On my local machine the build runs without errors. I also had a look at the build files of other components. I could not recognize a common pattern. Are most of them created by hand? Tx Oliver [snip] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149303 - in jakarta/commons/sandbox/feedparser/trunk: TODO project.properties project.xml src/java/org/apache/commons/feedparser/RSSFeedParser.java src/java/org/apache/commons/feedparser/example/HelloFeedParser.java xdocs/index.xml
Author: burton Date: Mon Jan 31 13:29:04 2005 New Revision: 149303 URL: http://svn.apache.org/viewcvs?view=revrev=149303 Log: brads email added Modified: jakarta/commons/sandbox/feedparser/trunk/TODO jakarta/commons/sandbox/feedparser/trunk/project.properties jakarta/commons/sandbox/feedparser/trunk/project.xml jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/example/HelloFeedParser.java jakarta/commons/sandbox/feedparser/trunk/xdocs/index.xml Modified: jakarta/commons/sandbox/feedparser/trunk/TODO URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/TODO?view=diffr1=149302r2=149303 == --- jakarta/commons/sandbox/feedparser/trunk/TODO (original) +++ jakarta/commons/sandbox/feedparser/trunk/TODO Mon Jan 31 13:29:04 2005 @@ -55,7 +55,10 @@ - Do we support multiple content items in Atom? -- Where do we store global options like USER_AGENT, STRICT_PARSING, and STRICT_SPEC +- Where do we store global options like USER_AGENT, STRICT_PARSING, and + STRICT_SPECw + + - Unit tests don't need to be so LOUD!! @@ -66,6 +69,16 @@ - Atom content - Atom summary - xml:base expansion + +- http://www.intertwingly.net/stories/2004/04/04/title.html + + +- http://feedparser.org/docs/html-sanitization.html#advanced.sanitization.why + +Hm... + + +- FIXME: documentation on using HTTP authentication - BUG: Modified: jakarta/commons/sandbox/feedparser/trunk/project.properties URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/project.properties?view=diffr1=149302r2=149303 == --- jakarta/commons/sandbox/feedparser/trunk/project.properties (original) +++ jakarta/commons/sandbox/feedparser/trunk/project.properties Mon Jan 31 13:29:04 2005 @@ -25,3 +25,5 @@ org.xml.sax.driver=org.apache.xerces.parsers.SAXParser clover.excludes=**/Test*.java + +maven.username=burton \ No newline at end of file Modified: jakarta/commons/sandbox/feedparser/trunk/project.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/project.xml?view=diffr1=149302r2=149303 == --- jakarta/commons/sandbox/feedparser/trunk/project.xml (original) +++ jakarta/commons/sandbox/feedparser/trunk/project.xml Mon Jan 31 13:29:04 2005 @@ -42,7 +42,7 @@ nameBrad Neuberg/name id/id -email/email +email[EMAIL PROTECTED]/email organizationRojo Networks Inc./organization /developer Modified: jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java?view=diffr1=149302r2=149303 == --- jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java (original) +++ jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/RSSFeedParser.java Mon Jan 31 13:29:04 2005 @@ -51,7 +51,10 @@ FeedParserState state = new FeedParserState( listener ); FeedVersion v = new FeedVersion(); + v.isRSS = true; +v.version = doc.getRootElement().getAttributeValue( version ); + listener.onFeedVersion( v ); listener.init(); Modified: jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/example/HelloFeedParser.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/example/HelloFeedParser.java?view=diffr1=149302r2=149303 == --- jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/example/HelloFeedParser.java (original) +++ jakarta/commons/sandbox/feedparser/trunk/src/java/org/apache/commons/feedparser/example/HelloFeedParser.java Mon Jan 31 13:29:04 2005 @@ -18,6 +18,7 @@ import org.apache.commons.feedparser.*; import org.apache.commons.feedparser.impl.*; +import org.apache.commons.feedparser.network.*; import java.io.*; import java.net.*; @@ -33,8 +34,10 @@ public static void main( String[] args ) throws Exception { +//create a new FeedParser... FeedParser parser = FeedParserFactory.newFeedParser(); +//create a listener for handling our callbacks FeedParserListener listener = new DefaultFeedParserListener() { public void onItem( FeedParserState state, @@ -43,19 +46,23 @@
svn commit: r149304 - jakarta/commons/sandbox/feedparser/trunk/lib/xmlrpc-1.2.jar
Author: burton Date: Mon Jan 31 13:29:35 2005 New Revision: 149304 URL: http://svn.apache.org/viewcvs?view=revrev=149304 Log: xmlrpc lib for ant build Added: jakarta/commons/sandbox/feedparser/trunk/lib/xmlrpc-1.2.jar (with props) Added: jakarta/commons/sandbox/feedparser/trunk/lib/xmlrpc-1.2.jar URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/lib/xmlrpc-1.2.jar?view=autorev=149304 == Binary file - no diff available. Propchange: jakarta/commons/sandbox/feedparser/trunk/lib/xmlrpc-1.2.jar -- svn:mime-type = application/octet-stream - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149307 - jakarta/commons/proper/commons-build/trunk/menus/related.ent
Author: dirkv Date: Mon Jan 31 13:38:29 2005 New Revision: 149307 URL: http://svn.apache.org/viewcvs?view=revrev=149307 Log: Apache Commons was closed in august Modified: jakarta/commons/proper/commons-build/trunk/menus/related.ent Modified: jakarta/commons/proper/commons-build/trunk/menus/related.ent URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/menus/related.ent?view=diffr1=149306r2=149307 == --- jakarta/commons/proper/commons-build/trunk/menus/related.ent (original) +++ jakarta/commons/proper/commons-build/trunk/menus/related.ent Mon Jan 31 13:38:29 2005 @@ -2,7 +2,6 @@ The Related menu element -- menu name=Related type=footer -item name='Apache Commons' href='http://commons.apache.org/'/ item name='DB Commons' href='http://db.apache.org/commons/'/ item name='XML Commons' href='http://xml.apache.org/commons/'/ /menu - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149308 - jakarta/commons/sandbox/feedparser/trunk/build.properties
Author: burton Date: Mon Jan 31 13:42:16 2005 New Revision: 149308 URL: http://svn.apache.org/viewcvs?view=revrev=149308 Log: ... Modified: jakarta/commons/sandbox/feedparser/trunk/build.properties Modified: jakarta/commons/sandbox/feedparser/trunk/build.properties URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/feedparser/trunk/build.properties?view=diffr1=149307r2=149308 == --- jakarta/commons/sandbox/feedparser/trunk/build.properties (original) +++ jakarta/commons/sandbox/feedparser/trunk/build.properties Mon Jan 31 13:42:16 2005 @@ -2,7 +2,8 @@ # c:/jakarta/feedparser; use forward slashes instead of backslashes on # Windows. -- -feedparser.home=${user.home}/feedparser +#feedparser.home=${user.home}/feedparser +feedparser.home=. # The file path location to where all of our external JARs are located that are # not bundled with the Jakarta Feed Parser, such as junit.jar. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Jakarta Commons Wiki] Updated: FeedParser
Date: 2005-01-31T13:46:22 Editor: KevinBurton Wiki: Jakarta Commons Wiki Page: FeedParser URL: http://wiki.apache.org/jakarta-commons/FeedParser no comment Change Log: -- @@ -14,3 +14,4 @@ * CodeConPresentation * TagMetaDataEvents * FeedParser/HelpingDevel + * FeedParser/AtomNotes0_5 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Jakarta Commons Wiki] Updated: FeedParser
Date: 2005-01-31T13:46:36 Editor: KevinBurton Wiki: Jakarta Commons Wiki Page: FeedParser URL: http://wiki.apache.org/jakarta-commons/FeedParser no comment Change Log: -- @@ -14,4 +14,4 @@ * CodeConPresentation * TagMetaDataEvents * FeedParser/HelpingDevel - * FeedParser/AtomNotes0_5 + * FeedParser/AtomNotes05 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149309 - in jakarta/commons/proper/commons-build/trunk/xdocs: charter.xml index.xml sandbox/index.xml
Author: dirkv Date: Mon Jan 31 13:47:19 2005 New Revision: 149309 URL: http://svn.apache.org/viewcvs?view=revrev=149309 Log: CVS = SVN Modified: jakarta/commons/proper/commons-build/trunk/xdocs/charter.xml jakarta/commons/proper/commons-build/trunk/xdocs/index.xml jakarta/commons/proper/commons-build/trunk/xdocs/sandbox/index.xml Modified: jakarta/commons/proper/commons-build/trunk/xdocs/charter.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/xdocs/charter.xml?view=diffr1=149308r2=149309 == --- jakarta/commons/proper/commons-build/trunk/xdocs/charter.xml (original) +++ jakarta/commons/proper/commons-build/trunk/xdocs/charter.xml Mon Jan 31 13:47:19 2005 @@ -29,7 +29,7 @@ p The following charter for Jakarta Commons was approved by the Jakarta Project Management Committee (PMC) on May 19, 2004. The original -version, a href=http://cvs.apache.org/viewcvs.cgi/*checkout*/jakarta-commons/commons-build/xdocs/charter.xml?content-type=text%2Fplainamp;rev=1.1;1.0/a, was approved by the PMC on March 19, 2001. +version, a href=http://svn.apache.org/viewcvs.cgi/*checkout*/jakarta/commons/current/charter.html?rev=148840;1.0/a, was approved by the PMC on March 19, 2001. /p strong(0) rationale/strong Modified: jakarta/commons/proper/commons-build/trunk/xdocs/index.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/xdocs/index.xml?view=diffr1=149308r2=149309 == --- jakarta/commons/proper/commons-build/trunk/xdocs/index.xml (original) +++ jakarta/commons/proper/commons-build/trunk/xdocs/index.xml Mon Jan 31 13:47:19 2005 @@ -105,11 +105,11 @@ /section section name=Where do I get nightly snapshots? p - Nightly snapshots of the Commons CVS can be found + Nightly snapshots of the Commons SVN can be found a href=http://jakarta.apache.org/builds/jakarta-commons/nightly/;here/a. /p p - These are meant to provide easy access to the actual project CVS tree. + These are meant to provide easy access to the actual project SVN tree. As this is our live development workspace, there are no guarantees as to what you will find there, although we do our best to maintain a buildable source tree. @@ -126,14 +126,14 @@ a href=http://jakarta.apache.org/getinvolved/mail.html;Commons mailing list/a. /li li - Access to the CVS strongjakarta-commons/strong repository is available both - a href=http://cvs.apache.org/viewcvs/jakarta-commons/;online/a - and with a a href=http://jakarta.apache.org/getinvolved/cvsindex.html;cvs client/a. + Access to the SVN strongjakarta/commons/proper/strong repository is available both + a href=http://svn.apache.org/viewcvs/jakarta/commons/proper/;online/a + and with a a href=http://www.apache.org/dev/version-control.html;svn client/a. /li li - Access to the CVS strongjakarta-commons-sandbox/strong repository is available both - a href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/;online/a - and with a a href=http://jakarta.apache.org/getinvolved/cvsindex.html;cvs client/a. + Access to the SVN strongjakarta/commons/sandbox/strong repository is available both + a href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox/;online/a + and with a a href=http://www.apache.org/dev/version-control.html;svn client/a. /li /ul /section Modified: jakarta/commons/proper/commons-build/trunk/xdocs/sandbox/index.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/commons-build/trunk/xdocs/sandbox/index.xml?view=diffr1=149308r2=149309 == --- jakarta/commons/proper/commons-build/trunk/xdocs/sandbox/index.xml (original) +++ jakarta/commons/proper/commons-build/trunk/xdocs/sandbox/index.xml Mon Jan 31 13:47:19 2005 @@ -24,17 +24,17 @@ body section name=The Jakarta Commons Sandbox p -The Sandbox is a CVS repository for Commons committers to +The Sandbox is a SVN repository for Commons committers to function as an open workspace for sharing and collaboration. The Sandbox serves as a staging ground for project which are destined for what is known as the Commons Proper. /p p -Access to the CVS strongjakarta-commons-sandbox/strong +Access to the SVN strongjakarta/commons/sandbox/strong repository is available both a - href=http://cvs.apache.org/viewcvs/jakarta-commons-sandbox/;online/a + href=http://svn.apache.org/viewcvs/jakarta/commons/sandbox/;online/a and with a a -
[Jakarta Commons Wiki] New: FeedParser/AtomNotes05
Date: 2005-01-31T13:47:43 Editor: KevinBurton Wiki: Jakarta Commons Wiki Page: FeedParser/AtomNotes05 URL: http://wiki.apache.org/jakarta-commons/FeedParser/AtomNotes05 no comment New Page: I finally had a chance to review 2/3rds of the Atom spec last night and wanted to publish my notes. {{{ - We do NOT support /atom:entry An Atom Feed Document is a representation of an Atom feed, including metadata about the feed, and some or all of the entries associated with it. Its document element is atom:feed. An Atom Entry Document represents exactly one Atom Entry, outside of the context of an Atom Feed. Its document element is atom:entry. - Did the namespace change? namespace atom = http://purl.org/atom/ns#draft-ietf-atompub-format-05; - We need to comply with xml:base more: Any element in an Atom Document MAY have an xml:base attribute. XML Base [W3C.REC-xmlbase-20010627] processing MUST be applied to any relative reference [RFC3986] present in an Atom Document. This includes such elements and attributes as specified by Atom itself, as well as those specified by extensions to Atom. - I guess ANY item can have an onLocale() change Any element in an Atom Document MAY have an xml:lang attribute, whose content indicates the natural language of the element's content. Requirements regarding the content and interpretation of xml:lang are specified in XML 1.0 [W3C.REC-xml-20040204] Section 2.12. - New changes with the TYPE attribute: Text constructs MAY have a type attribute. When present, the value MUST be one of TEXT, HTML or XHTML. If the type attribute is not provided, software MUST behave as though it were present with a value of TEXT. Note that MIME media types [RFC2045] are not acceptable values for the type attribute. - When the type is HTML we MUST escape it: If the value of type is HTML, the content of the Text construct MUST NOT contain child elements, and SHOULD be suitable for handling by software that knows HTML. The HTML markup must be escaped; for example, br as lt;br. The HTML markup SHOULD be such that it - XHTML support and tests: If the value of type is XHTML, the content of the Text construct MAY contain child elements. The content SHOULD be XHTML text and markup that could validly appear directly within an xhtml:div element. Receiving software which displays the content MAY use the markup to aid in displaying it. Escaped markup is interpreted as a text representation of markup, and MUST NOT be interpreted as markup itself. - We need BETTER atom:person and general author support within the FeedParser: A Person construct is an element that describes a person, corporation, or similar entity. Person constructs MAY be extended by namespace-qualified element children. This specification assigns no significance to the order of appearance of the child elements in a Person construct. atomPersonConstruct = atomCommonAttributes, (element atom:name { text } element atom:uri { atomUri }? element atom:email { atomEmailAddress }?) FeedParserListener onAuthor( String name, String resource, String email ) - 3.4 Service Constructs A Service construct is an empty element that conveys the URI of an Atom Publishing Protocol [Atom-protocol] service associated with an entry or feed. atomServiceConstruct = atomCommonAttributes, attribute href { atomUri } - We currently have no atom:generator support or equivalent API. Is there an equivalent spec for RSS 2.0? Yes... and its called generator and is under the channel element. - atom:head WITHIN atom:entry? OK... now THIS is confusing. Don't implement this until Atom 0.5 is released. 4.2.1 Usage of atom:head within atom:entry In this case, the atom:head element acts as a container for metadata about the feed within which the entry was created. If an atom:entry is copied into one feed from another feed, then the atom:head element of the source feed SHOULD be inserted into the atom:entry unless the entry, as copied, already contains an atom:head element. If the atom:entry already contains an atom:head, then that atom:head SHOULD be copied without modification. - atom:author within atom:entry }}} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Jakarta Commons Wiki] Updated: FeedParser
Date: 2005-01-31T13:48:39 Editor: KevinBurton Wiki: Jakarta Commons Wiki Page: FeedParser URL: http://wiki.apache.org/jakarta-commons/FeedParser no comment Change Log: -- @@ -15,3 +15,4 @@ * TagMetaDataEvents * FeedParser/HelpingDevel * FeedParser/AtomNotes05 + * FeedParser/FutureGoals - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Jakarta Commons Wiki] New: FeedParser/FutureGoals
Date: 2005-01-31T13:49:53 Editor: KevinBurton Wiki: Jakarta Commons Wiki Page: FeedParser/FutureGoals URL: http://wiki.apache.org/jakarta-commons/FeedParser/FutureGoals no comment New Page: * Open implementation of the Atom API * SAX based driver backend * DOM API? * Weblog post interface for Blogger API, Metaweblog API, Atom API. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [logging] 1.0.5 release plan
On 31 Jan 2005, at 07:57, Brian Stansberry wrote: snip Attached is a patch that fixes this. it's best to attach patches to a bugzilla report since (i think) this list strips (most) attachments. - robert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] initial code for Digester2.0
hi simon my main development machine blew up last week and i'm still struggling to get up and running on a secondary one. i haven't had a chance to look at the code yet (and it might be a fair while before i do) but i'd like to suggest that (when the time comes) you consider developing in proper rather than the sandbox. subversion provides a number of options which weren't available in cvs. - robert On 31 Jan 2005, at 10:09, Simon Kitching wrote: Hi, As I mentioned a few months ago, I've been working on some ideas for Digester 2.0. I've put some code and notes up on http://www.apache.org/~skitching Comments from all commons-dev subscribers are welcome, but particularly from Craig and Robert. The RELEASE-NOTES.txt file gives a brief overview of what I've done so far, and what I personally would like to see. This is *not* intended to be final code, but rather to solicit yes/no feedback on what people like/dislike about the posted code. As you will see, many parts are still missing and I personally would still like to see significant changes even to parts already included (see RELEASE-NOTES.txt). However the basic structure is there, including a number of controversial (I expect) name changes. Once we get the general opinions out, and I have massaged the code into something that meets general concensus I hope to then add it to the sandbox for everyone to hack away at. Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33313] - [javaflow] more test cases and findbugs problems
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=33313. 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=33313 [EMAIL PROTECTED] changed: What|Removed |Added Status|NEW |RESOLVED Resolution||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]
Re: [javaflow] test cases in junit?
* I added a ContinuationException class that can be thrown to clients using this code instead of stuff like java.lang.reflect.InvocationTargetException that is dependent on the underlying bytecode toolkit. That class was missing in your patch. Besides I am wondering what you mean by dependand on the bytecode toolkit?! There was a note in TODO about investigating using ASM instead of BCEL. Without even looking in detail at ASM, my guess is that it will throw different exceptions than BCEL when manipulating the bytecode, etc. My idea was that we could throw a ContinuationException instead of the underlying FooException that either BCEL or ASM uses to insulate any calling classes from having to change in the event of a switch from BCEL to ASM. The java.lang.reflect.InvocationTargetException comes from the use of the reflection API. And maybe it's the only one that we have to catch at that stage anyway. I haven't really made up my mind whether I would like to see an Exception in the suspend() signature. ..but I tend to say we don't need one. If something goes wrong at that stage -and it is not due to reflection- something is heavily broken and throwing a specific exception probably won't help much. ...but I am open to suggestions! The Continuable marks classes that should be rewritten. The ContinuationCapable mark classes that have been rewritten. IMO this can all go away. We could define that on a package scope. E.g. via regexp. Going for a decend callflow analyses would even figure out the needed rewrites by itself. Might be some work though... I think I understand the reason why both of these interfaces exist. However, if the intent is to be able to use Continuation.suspend() within any class without having to implement Continuable on that class, then maybe just do away with Continuable and keep ContinuationCapable as the marker for that class after it has been rewritten. What benefit does the regex approach provide? Callflow analyses seems like it could be messy. IMO a callflow analysis would be the cleanest possible way. ...we would only need to wrap the method calls that actually have an impact on the continuation. Only methods that possibly could call suspend() need to be taken care of. If we had the entry point we should be able to find out whether we need to instrument the class without specifing any additional information. And I think just tagging the rewritten class with this interface is pretty transparent, no? ...it is straight forward for sure. IIRC Stephan introduced ContinuationCapable. Need to check why this was necessary - we were running without beforehand. cheers -- Torsten signature.asc Description: OpenPGP digital signature
Re: [GUMP@brutus]: Project commons-jelly-tags-util (in module commons-jelly) failed
This looks like either a missing or wrong dependency. util should depend on commons-beanutils-collections or whatever it's called for gump. On Mon, 31 Jan 2005 02:07:20 PST, commons-jelly-tags-util development commons-dev@jakarta.apache.org wrote: 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-tags-util has an issue affecting its community integration. This issue affects 7 projects, and has been outstanding for 5 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-tags-ant : Commons Jelly - commons-jelly-tags-fmt : Commons Jelly - commons-jelly-tags-html : Commons Jelly - commons-jelly-tags-jsl : Commons Jelly - commons-jelly-tags-util : Commons Jelly - maven : Project Management Tools - maven-bootstrap : Project Management Tools Full details are available at: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-util/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-tags-util-31012005.jar] identifier set to project name -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/jelly-tags/util/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/target/test-reports -WARNING- No directory [/usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/target/test-reports] -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-util/gump_work/build_commons-jelly_commons-jelly-tags-util.html Work Name: build_commons-jelly_commons-jelly-tags-util (Type: Build) Work ended in a state of : Failed Elapsed: 5 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util] 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/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/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/optional/bean-collections/dist/commons-beanutils-bean-collections.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-31012005.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-31012005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-31012005.jar - __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 You are working offline so the build will continue, but commons-jelly-SNAPSHOT.jar may be out of date! build:start: java:prepare-filesystem: [mkdir] Created dir: /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/util/target/classes java:compile: [echo] Compiling to /home/gump/workspaces2/public/workspace/commons-jelly/jelly-tags/util/target/classes [echo]
svn commit: r149313 - in jakarta/commons/sandbox/javaflow/trunk/src: java/org/apache/commons/javaflow/ java/org/apache/commons/javaflow/bytecode/bcel/ test/org/apache/commons/javaflow/ test/org/apache/commons/javaflow/testcode/
Author: tcurdt Date: Mon Jan 31 14:53:31 2005 New Revision: 149313 URL: http://svn.apache.org/viewcvs?view=revrev=149313 Log: improved the testcase as suggested by phil http://issues.apache.org/bugzilla/show_bug.cgi?id=33313 some nitpicking Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java jakarta/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/ContinuationClassLoaderTestCase.java jakarta/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/ContinuationCompilingClassLoaderTestCase.java jakarta/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/testcode/Calculator.java Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java?view=diffr1=149312r2=149313 == --- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java (original) +++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java Mon Jan 31 14:53:31 2005 @@ -30,7 +30,7 @@ * * @author a href=mailto:[EMAIL PROTECTED]Stephan Michels/a * @author a href=mailto:[EMAIL PROTECTED]Torsten Curdt/a - * @version CVS $Id:$ + * @version CVS $Id$ */ public class Continuation implements Serializable { @@ -96,6 +96,7 @@ final Method method = context.getMethod(); try { + method.invoke(instance, new Object[0]); } catch (final Exception e) { Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java?view=diffr1=149312r2=149313 == --- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java (original) +++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java Mon Jan 31 14:53:31 2005 @@ -16,6 +16,7 @@ package org.apache.commons.javaflow.bytecode.bcel; import java.io.FileOutputStream; +import java.io.IOException; import java.util.ArrayList; import java.util.Vector; @@ -105,24 +106,46 @@ final ClassGen clazzGen = new ClassGen(javaClazz); final ConstantPoolGen cp = clazzGen.getConstantPool(); -final String path = clazzGen.getClassName(); //.replace('.', '/'); +final String path = clazzGen.getClassName(); +FileOutputStream out = null; + final byte[] orig = clazzGen.getJavaClass().getBytes(); try { -final FileOutputStream out = new FileOutputStream(path + .orig); +out = new FileOutputStream(path + .orig); out.write(orig); out.flush(); out.close(); -} catch (java.io.IOException ioe) { -ioe.printStackTrace(); +} catch (final IOException e) { +e.printStackTrace(); + +try { +if (out != null) { +out.close(); +} +} catch (final IOException e1) { +log.error(e1.getMessage(), e1); +} finally { +out = null; +} } try { -final FileOutputStream fos = new FileOutputStream(path + .orig.java); -final DecompilingVisitor v = new DecompilingVisitor(javaClazz, fos); +out = new FileOutputStream(path + .orig.java); +final DecompilingVisitor v = new DecompilingVisitor(javaClazz, out); v.start(); -} catch (Exception e) { +} catch (final Exception e) { e.printStackTrace(); + +try { +if (out != null) { +out.close(); +} +} catch (final IOException e1) { +log.error(e1.getMessage(), e1); +} finally { +out = null; +} } // vistor to build the frame information @@ -157,22 +180,42 @@ clazzGen.addInterface(CONTINUATIONCAPABLE_CLASS); -byte[] changed = clazzGen.getJavaClass().getBytes(); +final byte[] changed = clazzGen.getJavaClass().getBytes(); try { -java.io.FileOutputStream out = new java.io.FileOutputStream(clazzGen.getClassName() + .rewritten); +out = new FileOutputStream(clazzGen.getClassName() + .rewritten);
Re: [Jexl BeanUtils] Why not extend Jexl or beanutils to match same map syntax ?
On Mon, 31 Jan 2005 20:25:21 +0100, marc lan [EMAIL PROTECTED] wrote: Hi. This message is for jexl and beanutils folks. I'm using both of them, as many people I presume. Both of them share _almost_ the same syntax but for mapped access. Jexl uses square brackets as bean.map[key] and beanUtils uses parentheses bean.map(key) To my opinion it could be a good idea to extends jexl to uses also beanutils parentheses syntax. What are you thinking about this ? Marc DeXeT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Jexl BeanUtils] Why not extend Jexl or beanutils to match same map syntax ?
Seems reasonable. AFAIK, the JSP spec has changed to allow [] or () as well, right? On Mon, 31 Jan 2005 20:25:21 +0100, marc lan [EMAIL PROTECTED] wrote: Hi. This message is for jexl and beanutils folks. I'm using both of them, as many people I presume. Both of them share _almost_ the same syntax but for mapped access. Jexl uses square brackets as bean.map[key] and beanUtils uses parentheses bean.map(key) To my opinion it could be a good idea to extends jexl to uses also beanutils parentheses syntax. What are you thinking about this ? Marc DeXeT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[lang] ReflectionUtils
I've had the need for this ReflectionUtils class in a couple of projects already. It's also being used within Cocoon. IMHO it would make sense to have it lang. ..what do you guys think? Should I prepare a patch? http://svn.apache.org/repos/asf/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/utils/ReflectionUtils.java cheers -- Torsten signature.asc Description: OpenPGP digital signature
Re: [digester] initial code for Digester2.0
On Mon, 2005-01-31 at 22:20 +, robert burrell donkin wrote: hi simon my main development machine blew up last week and i'm still struggling to get up and running on a secondary one. i haven't had a chance to look at the code yet (and it might be a fair while before i do) but i'd like to suggest that (when the time comes) you consider developing in proper rather than the sandbox. subversion provides a number of options which weren't available in cvs. No hurry on having a look at the code. However I have posted javadoc for the new code here: http://www.apache.org/~skitching/digester2-javadoc/api/index.html So while you're waiting for your new machine, you've now got something to do Robert :-) Re developing digester2 in proper: well, it really depends upon whether there is consensus on the ideas I am putting forward. If people are unsure, and want to see a more complete framework before saying yea/nay then sandbox might be more appropriate. If we all agree on the basics, then proper would be fine. But yes, it's so much easier to manage branches with svn. Of course there's no problem either with using svn cp to copy from digester-proper into the sandbox, ie make the sandbox contain a branch of Digester, right? [go subversion!] Cheers, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [vfs] proposal: FileUtils
I looked over the problem again and think I'd prefer a command object approach: public interface OperationE extends Exception { void execute() throws E; } And: public interface IOOperation extends OperationIOException { } (Excess abstraction, I know. I had a hard time resisting the coolness of generic exceptions.) And some operations: public class Move implements IOOperation { private final FuFile original, newLocation; private final IOOperation next; public Move(final FuFile original, final FuFile newLocation, final IOOperation next) { if (null == original) throw new NullPointerException(); if (null == newLocation) throw new NullPointerException(); if (null == next) throw new NullPointerException(); this.original = original; this.newLocation = newLocation; this.next = next; } public void execute() throws IOException { original.moveTo(newLocation); try { next.execute(); } catch (final IOException e) { newLocation.moveTo(original); throw e; } } } And to make a Save operation: public class Save implements IOOperation { private final FuPolicy policy; private final InputStream newContents; private final FuFile original; public Save(final FuPolicy policy, final InputStream newContents, final FuFile original) { if (null == policy) throw new NullPointerException(); if (null == newContents) throw new NullPointerException(); if (null == original) throw new NullPointerException(); this.policy = policy; this.newContents = newContents; this.original = original; } public void execute() throws IOException { final FuFile backup = policy.createBackup(original); new Delete(backup, policy.createScratch(backup), new Move(original, backup, new Write(newContents, original))).execute(); } } Isn't that nifty? :-) I get to use the policy object without interfering with FuFile (my dummy file object just for proof of concept); I can create complex operations by composing simpler operations as building blocks. In fact, perhaps I should pull new Delete(...), new Move(...) and new Write(...) out into fields of Save so that someone could replace them with subclassed instances via IoC. How does that suit you? Cheers, --binkley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Having trouble with svn checkout
FWIW, The lack of any status info for subclipse makes it seem really slow too. Subclipse also gets confused sometimes about the status of files. You can do a 'Team-Synchronize' and 'Update' a file, and it doesn't disappear from the list of changed files. The file has been updated on the filesystem, but Subclipse doesn't seem to reflect it in the metadata for eclipse. Restarting eclipse has fixed this for me. On Mon, 31 Jan 2005 11:51:49 +, Rory Winston [EMAIL PROTECTED] wrote: Wow. svn checkout is slw. Is it just me or is there a noticeable performance difference between CVS and SVN? svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk somefolder Stephen - Original Message - From: Wendy Smoak [EMAIL PROTECTED] To: Jakarta Commons Developers List commons-dev@jakarta.apache.org Sent: Sunday, January 30, 2005 5:02 PM Subject: Having trouble with svn checkout From: Henri Yandell [EMAIL PROTECTED] wrote: The SVN migration is finished. For an individual component, using lang as an example: svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang; I'm having trouble checking out a single Commons project: $ svn co http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang svn: URL 'http://svn.apache.org/repos/asf/jakarta/commons/proper/lang/trunk/commons-lang' doesn't exist I was able to get the entire commons/proper using the command Craig posted yesterday (good thing disk space is cheap!): $ svn checkout http://svn.apache.org/repos/asf/jakarta/commons/proper/current What am I doing wrong? -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- http://www.multitask.com.au/people/dion/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [jxpath] optimize xpath query on xpath enabled containers
Michael, I believe, adding this type of delegation for query evaluation would require quite significant refactoring of JXPath. However, I could be wrong. Do you have a particular fix in mind? Thank you, - Dmitri - Original Message - From: Michael Homeijer [EMAIL PROTECTED] To: Jakarta Commons Developers List commons-dev@jakarta.apache.org Sent: Monday, January 31, 2005 2:43 PM Subject: [jxpath] optimize xpath query on xpath enabled containers Hi, Im am looking at executing jxpath queries against a model that supports lazy loading and queries. Queries like [EMAIL PROTECTED] = ''test'] will be executed by looping through all nodes and testing if the expression is true for a node. Because my model supports queries itself, It would be much faster to query the model and have the model itself execute the query that will load only the nodes for which the expression is true. I saw a xalan integration in the code, possibly for the same purpose. Is there a way to extend jxpath with functionality that uses the model (or the nodepointer) itself to execute the rest of the query? TIA, Michael - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149326 - jakarta/commons/proper/primitives/trunk/build.xml
Author: rwaldhoff Date: Mon Jan 31 16:14:07 2005 New Revision: 149326 URL: http://svn.apache.org/viewcvs?view=revrev=149326 Log: test svn commit Modified: jakarta/commons/proper/primitives/trunk/build.xml Modified: jakarta/commons/proper/primitives/trunk/build.xml URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/build.xml?view=diffr1=149325r2=149326 == --- jakarta/commons/proper/primitives/trunk/build.xml (original) +++ jakarta/commons/proper/primitives/trunk/build.xml Mon Jan 31 16:14:07 2005 @@ -1,5 +1,5 @@ !-- - Copyright 2003-2004 The Apache Software Foundation + 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. @@ -18,7 +18,7 @@ !-- Primitives component of the Jakarta Commons Subproject -$Id: build.xml,v 1.11 2004/07/29 22:30:55 scolebourne Exp $ +$Id$ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149328 - jakarta/commons/proper/primitives/trunk/junit1444170519.properties
Author: rwaldhoff Date: Mon Jan 31 16:17:09 2005 New Revision: 149328 URL: http://svn.apache.org/viewcvs?view=revrev=149328 Log: remove file that should never have been checked in Removed: jakarta/commons/proper/primitives/trunk/junit1444170519.properties - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149329 - jakarta/commons/proper/primitives/trunk/junit1609176495.properties
Author: rwaldhoff Date: Mon Jan 31 16:17:40 2005 New Revision: 149329 URL: http://svn.apache.org/viewcvs?view=revrev=149329 Log: remove file that should never have been checked in Removed: jakarta/commons/proper/primitives/trunk/junit1609176495.properties - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
svn commit: r149332 - in jakarta/commons/proper/primitives/trunk/src: java/org/apache/commons/collections/primitives/ test/org/apache/commons/collections/primitives/
Author: rwaldhoff Date: Mon Jan 31 16:38:33 2005 New Revision: 149332 URL: http://svn.apache.org/viewcvs?view=revrev=149332 Log: add array constructor and tests Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedByteList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedIntList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedShortList.java jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedByteList.java jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedIntList.java jakarta/commons/proper/primitives/trunk/src/test/org/apache/commons/collections/primitives/TestArrayUnsignedShortList.java Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedByteList.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedByteList.java?view=diffr1=149331r2=149332 == --- jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedByteList.java (original) +++ jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedByteList.java Mon Jan 31 16:38:33 2005 @@ -34,7 +34,7 @@ * This implementation supports all optional methods. * * @since Commons Primitives 1.0 - * @version $Revision: 1.5 $ $Date: 2004/02/25 20:46:25 $ + * @version $Revision: 1.5 $ $Date$ * * @author Rodney Waldhoff */ @@ -78,6 +78,20 @@ addAll(that); } +/** + * Constructs a list by copying the specified array. + * + * @param array the array to initialize the collection with + * @throws NullPointerException if the array is codenull/code + */ +public ArrayUnsignedByteList(short[] array) { +this(array.length); +for(int i=0;iarray.length;i++) { +_data[i] = fromShort(array[i]); +} +_size = array.length; +} + // ShortList methods //- Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedIntList.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedIntList.java?view=diffr1=149331r2=149332 == --- jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedIntList.java (original) +++ jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedIntList.java Mon Jan 31 16:38:33 2005 @@ -34,7 +34,7 @@ * This implementation supports all optional methods. * * @since Commons Primitives 1.0 - * @version $Revision: 1.5 $ $Date: 2004/02/25 20:46:25 $ + * @version $Revision: 1.5 $ $Date$ * * @author Rodney Waldhoff */ @@ -78,6 +78,20 @@ addAll(that); } +/** + * Constructs a list by copying the specified array. + * + * @param array the array to initialize the collection with + * @throws NullPointerException if the array is codenull/code + */ +public ArrayUnsignedIntList(long[] array) { +this(array.length); +for(int i=0;iarray.length;i++) { +_data[i] = fromLong(array[i]); +} +_size = array.length; +} + // IntList methods //- Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedShortList.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedShortList.java?view=diffr1=149331r2=149332 == --- jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedShortList.java (original) +++ jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayUnsignedShortList.java Mon Jan 31 16:38:33 2005 @@ -34,7 +34,7 @@ * This implementation supports all optional methods. * * @since Commons Primitives 1.0 - * @version $Revision: 1.5 $ $Date: 2004/02/25 20:46:25 $ + * @version $Revision: 1.5 $ $Date$ * * @author Rodney Waldhoff */ @@ -78,6 +78,20 @@ addAll(that); } +/** + * Constructs a list by copying the
svn commit: r149335 - in jakarta/commons/proper/primitives/trunk: src/java/org/apache/commons/collections/primitives/ xdocs/
Author: rwaldhoff Date: Mon Jan 31 16:47:45 2005 New Revision: 149335 URL: http://svn.apache.org/viewcvs?view=revrev=149335 Log: remove unused, note changes to ArrayUnsignedXxxList Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayBooleanList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayByteList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayCharList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayDoubleList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayFloatList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayIntList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayLongList.java jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayShortList.java jakarta/commons/proper/primitives/trunk/xdocs/changes.xml Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayBooleanList.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayBooleanList.java?view=diffr1=149334r2=149335 == --- jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayBooleanList.java (original) +++ jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayBooleanList.java Mon Jan 31 16:47:45 2005 @@ -25,7 +25,7 @@ * This implementation supports all optional methods. * * @since Commons Primitives 1.1 - * @version $Revision: 1.5 $ $Date: 2005/01/03 23:41:04 $ + * @version $Revision: 1.5 $ $Date$ */ public class ArrayBooleanList extends RandomAccessBooleanList implements BooleanList, Serializable { @@ -181,7 +181,6 @@ // Need to move some elements System.arraycopy(_data, index, _data, index + collection.size(), _size - index); } -int ptr = index; for (BooleanIterator it = collection.iterator(); it.hasNext();) { _data[index] = it.next(); index++; Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayByteList.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayByteList.java?view=diffr1=149334r2=149335 == --- jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayByteList.java (original) +++ jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayByteList.java Mon Jan 31 16:47:45 2005 @@ -25,7 +25,7 @@ * This implementation supports all optional methods. * * @since Commons Primitives 1.0 - * @version $Revision: 1.7 $ $Date: 2005/01/03 23:41:04 $ + * @version $Revision: 1.7 $ $Date$ * * @author Rodney Waldhoff */ @@ -184,7 +184,6 @@ // Need to move some elements System.arraycopy(_data, index, _data, index + collection.size(), _size - index); } -int ptr = index; for (ByteIterator it = collection.iterator(); it.hasNext();) { _data[index] = it.next(); index++; Modified: jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayCharList.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayCharList.java?view=diffr1=149334r2=149335 == --- jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayCharList.java (original) +++ jakarta/commons/proper/primitives/trunk/src/java/org/apache/commons/collections/primitives/ArrayCharList.java Mon Jan 31 16:47:45 2005 @@ -25,7 +25,7 @@ * This implementation supports all optional methods. * * @since Commons Primitives 1.0 - * @version $Revision: 1.7 $ $Date: 2005/01/03 23:41:04 $ + * @version $Revision: 1.7 $ $Date$ * * @author Rodney Waldhoff */ @@ -184,7 +184,6 @@ // Need to move some elements System.arraycopy(_data, index, _data, index + collection.size(), _size - index); } -int ptr = index; for (CharIterator it = collection.iterator(); it.hasNext();) { _data[index] = it.next(); index++; Modified:
Re: [GUMP@brutus]: Project commons-jelly-tags-util (in module commons-jelly) failed
It's specified, but Maven isn't going to use it because it isn't listed in the dependencies. Either the util taglib needs to upgrade to beanutils 1.7, or there needs to be a beanutils 1.6 in gump. - Brett Quoting Dion Gillard [EMAIL PROTECTED]: This looks like either a missing or wrong dependency. util should depend on commons-beanutils-collections or whatever it's called for gump. On Mon, 31 Jan 2005 02:07:20 PST, commons-jelly-tags-util development commons-dev@jakarta.apache.org wrote: 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-tags-util has an issue affecting its community integration. This issue affects 7 projects, and has been outstanding for 5 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-tags-ant : Commons Jelly - commons-jelly-tags-fmt : Commons Jelly - commons-jelly-tags-html : Commons Jelly - commons-jelly-tags-jsl : Commons Jelly - commons-jelly-tags-util : Commons Jelly - maven : Project Management Tools - maven-bootstrap : Project Management Tools Full details are available at: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-util/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-tags-util-31012005.jar] identifier set to project name -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/jelly-tags/util/build.properties -INFO- Failed with reason build failed -DEBUG- Maven POM in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/project.xml -DEBUG- Maven project properties in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/project.properties -INFO- Project Reports in: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/target/test-reports -WARNING- No directory [/usr/local/gump/public/workspace/commons-jelly/jelly-tags/util/target/test-reports] -INFO- Failed to extract fallback artifacts from Gump Repository The following work was performed: http://brutus.apache.org/gump/public/commons-jelly/commons-jelly-tags-util/gump_work/build_commons-jelly_commons-jelly-tags-util.html Work Name: build_commons-jelly_commons-jelly-tags-util (Type: Build) Work ended in a state of : Failed Elapsed: 5 secs Command Line: maven --offline jar [Working Directory: /usr/local/gump/public/workspace/commons-jelly/jelly-tags/util] 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/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/ant/bootstrap/lib/ant-launcher.jar:/usr/local/gump/public/workspace/ant/bootstrap/lib/ant.jar:/usr/local/gump/public/workspace/jakarta-commons/beanutils/optional/bean-collections/dist/commons-beanutils-bean-collections.jar:/usr/local/gump/public/workspace/jakarta-commons/collections/build/commons-collections-31012005.jar:/usr/local/gump/public/workspace/commons-jelly/target/commons-jelly-31012005.jar:/usr/local/gump/public/workspace/commons-jelly/jelly-tags/junit/target/commons-jelly-tags-junit-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/jexl/dist/commons-jexl-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/lang/dist/commons-lang-31012005.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging.jar:/usr/local/gump/public/workspace/jakarta-commons/logging/dist/commons-logging-api.jar:/usr/local/gump/public/workspace/dom4j/build/dom4j.jar:/usr/local/gump/public/workspace/jaxen/target/jaxen-31012005.jar - __ __ | \/ |__ _Apache__ ___ | |\/| / _` \ V / -_) ' \ ~ intelligent projects ~ |_| |_\__,_|\_/\___|_||_| v. 1.0.2 You are working offline so the build will continue, but commons-jelly-SNAPSHOT.jar may be out of date! build:start:
DO NOT REPLY [Bug 33313] - [javaflow] more test cases and findbugs problems
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=33313. 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=33313 --- Additional Comments From [EMAIL PROTECTED] 2005-02-01 02:00 --- Created an attachment (id=14144) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14144action=view) avoids closing outputstream twice * Avoids closing the FileOutputStream twice * Removed unused imports -- 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 33313] - [javaflow] more test cases and findbugs problems
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=33313. 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=33313 [EMAIL PROTECTED] changed: What|Removed |Added Status|RESOLVED|REOPENED Resolution|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]
Re: svn commit: r149313 - in jakarta/commons/sandbox/javaflow/trunk/src: java/org/apache/commons/javaflow/ java/org/apache/commons/javaflow/bytecode/bcel/ test/org/apache/commons/javaflow/ test/org/apache/commons/javaflow/testcode/
Closing an OutputStream twice is a bug or is it indeed nitpicking? ;) I was thinking that it might make sense for me to work on some docs as well... might be a good opportunity for me to dig deeper through things as well as put down in words what I'm seeing and learn a few things from you about the overall design. Thoughts? phil. [EMAIL PROTECTED] wrote: Author: tcurdt Date: Mon Jan 31 14:53:31 2005 New Revision: 149313 URL: http://svn.apache.org/viewcvs?view=revrev=149313 Log: improved the testcase as suggested by phil http://issues.apache.org/bugzilla/show_bug.cgi?id=33313 some nitpicking Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java jakarta/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/ContinuationClassLoaderTestCase.java jakarta/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/ContinuationCompilingClassLoaderTestCase.java jakarta/commons/sandbox/javaflow/trunk/src/test/org/apache/commons/javaflow/testcode/Calculator.java Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java?view=diffr1=149312r2=149313 == --- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java (original) +++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/Continuation.java Mon Jan 31 14:53:31 2005 @@ -30,7 +30,7 @@ * * @author a href=mailto:[EMAIL PROTECTED]Stephan Michels/a * @author a href=mailto:[EMAIL PROTECTED]Torsten Curdt/a - * @version CVS $Id:$ + * @version CVS $Id$ */ public class Continuation implements Serializable { @@ -96,6 +96,7 @@ final Method method = context.getMethod(); try { + method.invoke(instance, new Object[0]); } catch (final Exception e) { Modified: jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java URL: http://svn.apache.org/viewcvs/jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java?view=diffr1=149312r2=149313 == --- jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java (original) +++ jakarta/commons/sandbox/javaflow/trunk/src/java/org/apache/commons/javaflow/bytecode/bcel/BcelClassTransformer.java Mon Jan 31 14:53:31 2005 @@ -16,6 +16,7 @@ package org.apache.commons.javaflow.bytecode.bcel; import java.io.FileOutputStream; +import java.io.IOException; import java.util.ArrayList; import java.util.Vector; @@ -105,24 +106,46 @@ final ClassGen clazzGen = new ClassGen(javaClazz); final ConstantPoolGen cp = clazzGen.getConstantPool(); -final String path = clazzGen.getClassName(); //.replace('.', '/'); +final String path = clazzGen.getClassName(); +FileOutputStream out = null; + final byte[] orig = clazzGen.getJavaClass().getBytes(); try { -final FileOutputStream out = new FileOutputStream(path + .orig); +out = new FileOutputStream(path + .orig); out.write(orig); out.flush(); out.close(); -} catch (java.io.IOException ioe) { -ioe.printStackTrace(); +} catch (final IOException e) { +e.printStackTrace(); + +try { +if (out != null) { +out.close(); +} +} catch (final IOException e1) { +log.error(e1.getMessage(), e1); +} finally { +out = null; +} } try { -final FileOutputStream fos = new FileOutputStream(path + .orig.java); -final DecompilingVisitor v = new DecompilingVisitor(javaClazz, fos); +out = new FileOutputStream(path + .orig.java); +final DecompilingVisitor v = new DecompilingVisitor(javaClazz, out); v.start(); -} catch (Exception e) { +} catch (final Exception e) { e.printStackTrace(); + +try { +if (out != null) { +out.close(); +} +} catch (final IOException e1) { +log.error(e1.getMessage(), e1); +} finally { +out = null; +} } // vistor to build the frame information @@ -157,22 +180,42 @@ clazzGen.addInterface(CONTINUATIONCAPABLE_CLASS); -byte[]
[i18n] sugestion patch
Index: LocalizedBundle.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18 n/LocalizedBundle.java,v retrieving revision 1.3 diff -u -r1.3 LocalizedBundle.java --- LocalizedBundle.java 29 Dec 2004 17:03:55 - 1.3 +++ LocalizedBundle.java 1 Feb 2005 03:07:12 - @@ -35,21 +35,19 @@ * that might be used to include dynamic values into the message text and knows nothing * */ -public class LocalizedBundle implements Serializable { -public final static String ID = id; -public final static String ARGUMENTS = arguments; +public abstract class LocalizedBundle implements Serializable { -protected String id; -protected Object[] arguments; +private final String id; +private final Object[] arguments; /** * @param messageId The messageId refers the corresponding bundle in the file containing * the localized messages. The format of the message file depends on the implementation of the * MessageManager. */ -public LocalizedBundle(String messageId) { +public LocalizedBundle(final String messageId) { this.id = messageId; -this.arguments = new Object[0]; +this.arguments = null; } /** @@ -59,7 +57,7 @@ * @param arguments An array of objects containing argument for the messages. These arguments * are used to insert dynamic values into the localized messages. */ -public LocalizedBundle(String messageId, Object[] arguments) { +public LocalizedBundle(final String messageId, final Object[] arguments) { this.id = messageId; this.arguments = arguments; } @@ -68,14 +66,14 @@ * @return returns the id of this bundle */ public String getId() { -return id; +return this.id; } /** * @return returns the arguments associated with this message bundle */ public Object[] getArguments() { - return arguments; + return this.arguments; } /** @@ -85,8 +83,8 @@ * @throws MessageNotFoundException if an entry with the given key can not be found * in this bundle */ -public String getText(String key, Locale locale) throws MessageNotFoundException { -return MessageManager.getText(id, key, arguments, locale); +public String getEntry(final String key, final Locale locale) throws MessageNotFoundException { +return MessageManager.getText(this.id, key, this.arguments, locale); } /** @@ -95,7 +93,7 @@ * @param defaultText the text to be returned if no entry was found for the given key * @return returns the localized text */ -public String getText(String key, String defaultText, Locale locale) { -return MessageManager.getText(id, key, arguments, locale, defaultText); +public String getEntry(final String key, final String defaultText, final Locale locale) { +return MessageManager.getText(this.id, key, this.arguments, locale, defaultText); } } \ No newline at end of file Index: LocalizedError.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18 n/LocalizedError.java,v retrieving revision 1.1 diff -u -r1.1 LocalizedError.java --- LocalizedError.java 4 Oct 2004 13:41:09 - 1.1 +++ LocalizedError.java 1 Feb 2005 03:07:12 - @@ -37,34 +37,34 @@ } public String getSummary() throws MessageNotFoundException { -return getText(SUMMARY, Locale.getDefault()); +return getEntry(SUMMARY, Locale.getDefault()); } public String getSummary(Locale locale) throws MessageNotFoundException { -return getText(SUMMARY, locale); +return getEntry(SUMMARY, locale); } public String getSummary(String defaultSummary) { -return getText(SUMMARY, defaultSummary, Locale.getDefault()); +return getEntry(SUMMARY, defaultSummary, Locale.getDefault()); } public String getSummary(Locale locale, String defaultSummary) { -return getText(SUMMARY, defaultSummary, locale); +return getEntry(SUMMARY, defaultSummary, locale); } public String getDetails() throws MessageNotFoundException { -return getText(DETAILS, Locale.getDefault()); +return getEntry(DETAILS, Locale.getDefault()); } public String getDetails(Locale locale) throws MessageNotFoundException { -return getText(DETAILS, locale); +return getEntry(DETAILS, locale); } public String getDetails(String defaultDetails) { -return getText(DETAILS, defaultDetails, Locale.getDefault()); +return getEntry(DETAILS, defaultDetails, Locale.getDefault()); } public String getDetails(Locale locale, String defaultDetails) { -return getText(DETAILS, defaultDetails, locale); +return getEntry(DETAILS,
[i18n] suggestion
What do you think about rename class LocalizedBundle to AbstractEntry? Woody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Jexl BeanUtils] Why not extend Jexl or beanutils to match same map syntax ?
Although... it would be fairly easy to adapt a new scripting language into Jelly. The fairly-simple task of implementing a pluggable language interface has been on the table for a while. I think that Morph would be an interesting candidate for a second language. -Original Message- From: marc lan [mailto:[EMAIL PROTECTED] Sent: Monday, January 31, 2005 2:37 PM To: Jakarta Commons Developers List Subject: Re: [Jexl BeanUtils] Why not extend Jexl or beanutils to match same map syntax ? Matt Sgarlata wrote: shameless-plug The Morph framework (morph.sourceforge.net) supports either syntax out-of-the box. Morph had its first beta release yesterday. For a comparison of Morph to JEXL, see http://morph.sourceforge.net/alternatives/jexl.html For a comparison of Morph to BeanUtils, see http://morph.sourceforge.net/alternatives/beanutils.html /shameless-plug It seems' to be a nice framework, but I'm working with jelly so need jexl :) Marc DeXeT - 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]
[i18n] suggestion patch
final enhancements Index: LocalizedText.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18 n/LocalizedText.java,v retrieving revision 1.1 diff -u -r1.1 LocalizedText.java --- LocalizedText.java 4 Oct 2004 13:41:09 - 1.1 +++ LocalizedText.java 1 Feb 2005 03:16:21 - @@ -25,29 +25,29 @@ import java.util.Locale; public class LocalizedText extends LocalizedBundle { -public final static String TEXT = text; +private static final String TEXT = text; -public LocalizedText(String messageId) { +public LocalizedText(final String messageId) { super(messageId); } -public LocalizedText(String messageId, Object[] arguments) { +public LocalizedText(final String messageId, final Object[] arguments) { super(messageId, arguments); } public String getText() throws MessageNotFoundException { -return getText(TEXT, Locale.getDefault()); +return getEntry(TEXT, Locale.getDefault()); } -public String getText(Locale locale) throws MessageNotFoundException { -return getText(TEXT, locale); +public String getText(final Locale locale) throws MessageNotFoundException { +return getEntry(TEXT, locale); } -public String getText(String defaultText) { -return getText(TEXT, defaultText, Locale.getDefault()); +public String getText(final String defaultText) { +return getEntry(TEXT, defaultText, Locale.getDefault()); } -public String getText(Locale locale, String defaultText) { -return getText(TEXT, defaultText, locale); +public String getText(final Locale locale, final String defaultText) { +return getEntry(TEXT, defaultText, locale); } } \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[18n] suggestion patch - LocalizedMessage.java
final enhacements Index: LocalizedMessage.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18 n/LocalizedMessage.java,v retrieving revision 1.1 diff -u -r1.1 LocalizedMessage.java --- LocalizedMessage.java 4 Oct 2004 13:41:09 - 1.1 +++ LocalizedMessage.java 1 Feb 2005 03:21:20 - @@ -25,29 +25,29 @@ import java.util.Locale; public class LocalizedMessage extends LocalizedText { -public static String TITLE = title; +private static final String TITLE = title; -public LocalizedMessage(String messageId) { +public LocalizedMessage(final String messageId) { super(messageId); } -public LocalizedMessage(String messageId, Object[] arguments) { +public LocalizedMessage(final String messageId, final Object[] arguments) { super(messageId, arguments); } public String getTitle() throws MessageNotFoundException { -return getText(TITLE, Locale.getDefault()); +return getEntry(TITLE, Locale.getDefault()); } -public String getTitle(Locale locale) throws MessageNotFoundException { -return getText(TITLE, locale); +public String getTitle(final Locale locale) throws MessageNotFoundException { +return getEntry(TITLE, locale); } -public String getTitle(String defaultTitle) { -return getText(TITLE, defaultTitle, Locale.getDefault()); +public String getTitle(final String defaultTitle) { +return getEntry(TITLE, defaultTitle, Locale.getDefault()); } -public String getTitle(Locale locale, String defaultTitle) { -return getText(TITLE, defaultTitle, locale); +public String getTitle(final Locale locale, final String defaultTitle) { +return getEntry(TITLE, defaultTitle, locale); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[i18n] suggestion patch - LocalizedError.java
final enhacements Index: LocalizedError.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18 n/LocalizedError.java,v retrieving revision 1.1 diff -u -r1.1 LocalizedError.java --- LocalizedError.java 4 Oct 2004 13:41:09 - 1.1 +++ LocalizedError.java 1 Feb 2005 03:24:20 - @@ -28,43 +28,43 @@ private final static String SUMMARY = summary; private final static String DETAILS = details; -public LocalizedError(String messageId) { +public LocalizedError(final String messageId) { super(messageId); } -public LocalizedError(String messageId, Object[] arguments) { +public LocalizedError(final String messageId, final Object[] arguments) { super(messageId, arguments); } public String getSummary() throws MessageNotFoundException { -return getText(SUMMARY, Locale.getDefault()); +return getEntry(SUMMARY, Locale.getDefault()); } -public String getSummary(Locale locale) throws MessageNotFoundException { -return getText(SUMMARY, locale); +public String getSummary(final Locale locale) throws MessageNotFoundException { +return getEntry(SUMMARY, locale); } -public String getSummary(String defaultSummary) { -return getText(SUMMARY, defaultSummary, Locale.getDefault()); +public String getSummary(final String defaultSummary) { +return getEntry(SUMMARY, defaultSummary, Locale.getDefault()); } -public String getSummary(Locale locale, String defaultSummary) { -return getText(SUMMARY, defaultSummary, locale); +public String getSummary(final Locale locale, final String defaultSummary) { +return getEntry(SUMMARY, defaultSummary, locale); } public String getDetails() throws MessageNotFoundException { -return getText(DETAILS, Locale.getDefault()); +return getEntry(DETAILS, Locale.getDefault()); } -public String getDetails(Locale locale) throws MessageNotFoundException { -return getText(DETAILS, locale); +public String getDetails(final Locale locale) throws MessageNotFoundException { +return getEntry(DETAILS, locale); } -public String getDetails(String defaultDetails) { -return getText(DETAILS, defaultDetails, Locale.getDefault()); +public String getDetails(final String defaultDetails) { +return getEntry(DETAILS, defaultDetails, Locale.getDefault()); } -public String getDetails(Locale locale, String defaultDetails) { -return getText(DETAILS, defaultDetails, locale); +public String getDetails(final Locale locale, final String defaultDetails) { +return getEntry(DETAILS, defaultDetails, locale); } } \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[i18n] suggestion patch - LocalizedException
final enhancements Index: LocalizedException.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18 n/LocalizedException.java,v retrieving revision 1.1 diff -u -r1.1 LocalizedException.java --- LocalizedException.java 4 Oct 2004 13:41:09 - 1.1 +++ LocalizedException.java 1 Feb 2005 03:27:55 - @@ -25,19 +25,19 @@ import java.util.Locale; public class LocalizedException extends Exception { -private LocalizedError errorMessage; +private final LocalizedError errorMessage; -public LocalizedException(LocalizedError errorMessage, Throwable throwable) { +public LocalizedException(final LocalizedError errorMessage, final Throwable throwable) { super(errorMessage.getSummary(Locale.getDefault(), throwable.getMessage()), throwable); this.errorMessage = errorMessage; } -public LocalizedException(LocalizedError errorMessage) { +public LocalizedException(final LocalizedError errorMessage) { super(errorMessage.getSummary(Locale.getDefault(), no message available)); this.errorMessage = errorMessage; } public LocalizedError getErrorMessage() { -return errorMessage; +return this.errorMessage; } } \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[contract] suggestion patch
method rename Index: ParameterMessage.java === RCS file: /home/cvspublic/jakarta-commons-sandbox/contract/src/java/org/apache/commons /contract/i18n/ParameterMessage.java,v retrieving revision 1.2 diff -u -r1.2 ParameterMessage.java --- ParameterMessage.java 7 Dec 2004 20:52:18 - 1.2 +++ ParameterMessage.java 1 Feb 2005 04:03:11 - @@ -21,18 +21,18 @@ } public String getPrompt() { -return getText(PROMPT, Locale.getDefault()); +return getEntry(PROMPT, Locale.getDefault()); } public String getPrompt(Locale locale) { -return getText(PROMPT, locale); +return getEntry(PROMPT, locale); } public String getPrompt(String defaultPrompt) { -return getText(PROMPT, defaultPrompt, Locale.getDefault()); +return getEntry(PROMPT, defaultPrompt, Locale.getDefault()); } public String getPrompt(Locale locale, String defaultPrompt) { -return getText(PROMPT, defaultPrompt, locale); +return getEntry(PROMPT, defaultPrompt, locale); } } \ No newline at end of file Woody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] initial code for Digester2.0
On Mon, 2005-01-31 at 11:23 +0100, Emmanuel Bourg wrote: XXXRule -- ActionXXX for all XXX By using a prefix instead of a suffix, all the Action classes group nicely together in the javadoc. I tend to prefer the type as a suffix, Ok, we'll see what the general consensus is. I happen to personally like prefixes rather than suffixes, but will go with the majority opinion. to keep them grouped in the javadoc I would rather use an action(s) subpackage. With or without 's' is another debate ;) That sounds reasonable. However I do dislike having mutual dependencies between java packages; a DAG (directed acyclic graph) is good for a number of reasons. So if we have an o.a.c.d.actions package for the standard actions, then we probably need an o.a.c.d.factory package so the ActionFactory class (which now holds the old Digester.addXXXRule factory methods) can be pushed down into it. We would then have dependencies of: o.a.c.d.actions -- o.a.c.d o.a.c.d.factory -- o.a.c.d.actions, o.a.c.d which is acceptable. Thoughts? Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[i18n] suggestion/problem ...
Well, once MessageManager (and everything inside) is static we can have only one manager to all aplications running on vm. What you think to do when we need one diferent manager, by example, to supply another application ? I dono what messages id this application will have but if there is some id repeated this will overrides messages across aplications ... Woody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [i18n] suggestion
What do you think about rename class LocalizedBundle to LocalizedEntry? I think this is a better name ... Woody - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] initial code for Digester2.0
From: Simon Kitching [EMAIL PROTECTED] Ok, we'll see what the general consensus is. I happen to personally like prefixes rather than suffixes, but will go with the majority opinion. Another vote for suffix - I prefer CallMethodAction to ActionCallMethod. Will ActionFactory have all of the available Action constructor signatures? Thanks, Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] initial code for Digester2.0
On Mon, 2005-01-31 at 21:43 -0700, Wendy Smoak wrote: From: Simon Kitching [EMAIL PROTECTED] Ok, we'll see what the general consensus is. I happen to personally like prefixes rather than suffixes, but will go with the majority opinion. Another vote for suffix - I prefer CallMethodAction to ActionCallMethod. Ok. Does this mean you prefer Action to Rule? I certainly expect to hear from people who want to keep the current names... Will ActionFactory have all of the available Action constructor signatures? Yes. I just don't want to implement them all until the final names have been decided on... Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [digester] initial code for Digester2.0
On Mon, 2005-01-31 at 21:43 -0700, Wendy Smoak wrote: From: Simon Kitching [EMAIL PROTECTED] Ok, we'll see what the general consensus is. I happen to personally like prefixes rather than suffixes, but will go with the majority opinion. Another vote for suffix - I prefer CallMethodAction to ActionCallMethod. BTW, should we contact the car companies, and tell them their customers prefer suffixes? Focus Ford Mustang Ford Thunderbird Ford (I'm mostly kidding...) Regards, Simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 33323] New: - Ant build script does not create commons-logging-optional.jar
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=33323. 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=33323 Summary: Ant build script does not create commons-logging- optional.jar Product: Commons Version: Nightly Builds Platform: PC OS/Version: Windows XP Status: NEW Severity: normal Priority: P2 Component: Logging AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] I was building JCL with ant and couldn't get a commons-logging-optional.jar to build when executing the build.xml in the root directory. Instead the optional classes would get included in commons-logging.jar. Looked into this and saw that the when the main build.xml called the build in the optional folder, it was passing along all its properties, thus overriding the optional version. I'll attach a patch that fixes this. -- 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 33323] - Ant build script does not create commons-logging-optional.jar
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=33323. 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=33323 --- Additional Comments From [EMAIL PROTECTED] 2005-02-01 06:44 --- Created an attachment (id=14147) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14147action=view) Patch so call to optional build does not pass through properties 1) Main build script should not pass through properties to optional build target. 2) Copy commons-logging.jar to the dist folder before calling the optional build so the jar is where the optional build classpath expects 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]
[Net] Bug in FTPFile.Timestamp near end of month
I'm reporting a minor bug in UnixFTPEntryParser.java, in computing the timestamp for an FTPFile. I looked briefly at the parsers for the other systems, and didn't see a similar problem. I'm not subscribed to this list so please send any response by email. Scenario: It is January 31, 2005 at 10:00pm in Boulder, Colorado. I'm using org.apache.commons.net.ftp to parse a directory of files on a server 3 timezones to the east, comparing timestamps on the files using FTPFile.getTimestamp(). I'm getting a wrong answer. Problem: I'm looking at a file just created in Washington, D.C. and it is already February 1, 2005 there. The following code in UnixFTPEntryParser @ line 205 is wrong: // if the month we're reading is greater than now, it must // be last year if (cal.get(Calendar.MONTH) month) { year--; } cal.set(Calendar.YEAR, year); At this point month contains the month number of the file, scanned off the returned ls. This code compares the remote file's month of creation to the current month on the local machine, and if greater than the local month, subtracts 1 from the year. Since the file I'm looking at was created moments ago in Washington, D.C. where it is already Feb 1, 2005, but it is still Jan 31, 2005 in Boulder, where the code is running, the test above subtracts 1 from the year, and sets the timestamp of the FTPFile to Feb 1, 2004 -- off by a year. A solution which allows for files in earlier timezones to be a few hours ahead will, of course, create a bug for files which are a few hours less than a year old in the current or lagging time zones. Is it fair to say that precision of measurement is more likely to be important on files a few hours old than on files already a year old? That is true for me at least. I'm not set up to send you a patch for this, but wouldn't it be simple just to add one day, to compensate for possible time zone differences, i.e. : cal.add(Calendar.DAY_OF_MONTH,1); if (cal.get(Calendar.MONTH)month) { year--; } cal.add(Calendar.DAY_OF_MONTH,-1); cal.set(Calendar.YEAR, year); -- W. McDonald Buck [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 31286] - [logging] Memory leaks in JBoss due to LogFactory cache
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=31286. 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=31286 --- Additional Comments From [EMAIL PROTECTED] 2005-02-01 08:45 --- Created an attachment (id=14148) -- (http://issues.apache.org/bugzilla/attachment.cgi?id=14148action=view) Update to the User Guide Attached is a patch to guide.xml that includes discussion of the issues in this bug and the fix. Also includes discussion of what the various jars in the standard distribution are, in order to give some context to the above. -- 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]