You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2004/12/04 00:28:39 UTC
DO NOT REPLY [Bug 32525] New: -
Parser breaks up command line parms into single characters
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=32525>.
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=32525
Summary: Parser breaks up command line parms into single
characters
Product: Commons
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: CLI
AssignedTo: commons-dev@jakarta.apache.org
ReportedBy: dmorris@plumcreek.com
The base Parser class used to pull tokens from a command line breaks up
command line options longer than 1 character. For example, -file becomes -f -
i -l -e. This can be duplicated with the Ant example shown in the user guide.
This is probably the cause for bug
http://issues.apache.org/bugzilla/show_bug.cgi?id=31464 section 1 and 2.
I have worked up a patch that fixes this problem and all of the JUnit tests
run correctly after this patch is applied.
There appear to be some shortcomings in the way the Parser class processes
options. The main problem is that it doesn't maintain a state value indicating
what is being processed so option parameters can be interpreted as options. To
fix this the code needs to be reorganized. Because of this, I can't say this
patch will work in every case but it is an improvement.
--
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org