Jakob Homan commented on ZOOKEEPER-205:

Yes, the version script can't get the revision number.  I get this as well when 
obtaining the code from git.  One option would be to remove the version 
information, or to change the version scripts to return 0 or something if not 
in a subversion directory.

> Erro on version-info when compiling from the tarball distribution
> -----------------------------------------------------------------
>                 Key: ZOOKEEPER-205
>                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-205
>             Project: Zookeeper
>          Issue Type: Bug
>    Affects Versions: 3.1.0
>            Reporter: Flavio Paiva Junqueira
>            Priority: Minor
>             Fix For: 3.0.0
> When running ant with the code from the release tarball, I get the following 
> messages and stack trace:
> {noformat}
> svn-revision:
>      [exec] svn: '.' is not a working copy
> version-info:
>      [java] All version-related parameters must be valid integers!
>      [java] Exception in thread "main" java.lang.NumberFormatException: For 
> input string: ""
>      [java]     at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
>      [java]     at java.lang.Integer.parseInt(Integer.java:468)
>      [java]     at java.lang.Integer.parseInt(Integer.java:497)
>      [java]     at 
> org.apache.zookeeper.version.util.VerGen.main(VerGen.java:111)
>      [java] Java Result: 1
> {noformat}
> This seems to be because the code is not coming from svn, so it can't find 
> the version information.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

Reply via email to