You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Patrick Hunt (JIRA)" <ji...@apache.org> on 2010/11/09 19:15:10 UTC
[jira] Commented: (ZOOKEEPER-913) Version parser fails to parse
"3.3.2-dev" from build.xml.
[ https://issues.apache.org/jira/browse/ZOOKEEPER-913?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12930216#action_12930216 ]
Patrick Hunt commented on ZOOKEEPER-913:
----------------------------------------
I propose we move to support the same format as maven supports:
http://www.sonatype.com/books/mvnref-book/reference/pom-relationships-sect-pom-syntax.html
<major version>.<minor version>.<incremental version>-<qualifier>
this is close to what we do, but allows for any "qualifier" after the x.y.z-
> Version parser fails to parse "3.3.2-dev" from build.xml.
> ---------------------------------------------------------
>
> Key: ZOOKEEPER-913
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-913
> Project: Zookeeper
> Issue Type: Bug
> Components: build
> Affects Versions: 3.3.1
> Reporter: Anthony Urso
> Assignee: Anthony Urso
> Priority: Critical
> Fix For: 3.4.0
>
> Attachments: zk-build.patch, zk-version.patch
>
>
> Cannot build 3.3.1 from release tarball do to VerGen parser inability to parse "3.3.2-dev".
> version-info:
> [java] All version-related parameters must be valid integers!
> [java] Exception in thread "main" java.lang.NumberFormatException: For input string: "2-dev"
> [java] at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
> [java] at java.lang.Integer.parseInt(Integer.java:481)
> [java] at java.lang.Integer.parseInt(Integer.java:514)
> [java] at org.apache.zookeeper.version.util.VerGen.main(VerGen.java:131)
> [java] Java Result: 1
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.