hadoop-zookeeper-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nitay <nit...@gmail.com>
Subject ZooKeeper SVN revision
Date Mon, 08 Dec 2008 08:08:43 GMT
Hey folks,

I'm working on integrating ZooKeeper into HBase.

I've become a fan of git so I've started using the unofficial Apache git
repo at http://jukka.zitting.name/git/?p=zookeeper.git;a=summary instead of
the raw svn. Everything works great except the lastRevision.sh script fails
to write the lastRevision property because it is not an SVN repository. When
I run ant I get:

     [java] All version-related parameters must be valid integers!
     [java] Exception in thread "main" java.lang.NumberFormatException: For
input string: ""
     [java]     at
     [java]     at java.lang.Integer.parseInt(Integer.java:468)
     [java]     at java.lang.Integer.parseInt(Integer.java:497)
     [java]     at
     [java] Java Result: 1

I fixed this by hardcoding lastRevision to some value in build.xml.

Why do necessarily require SVN in order for ant to run? Can we have some
sensible default if the svn info doesn't work? Should I write something for
git repos that produces the current HEAD sha if there is a '.git' dir
instead of a '.svn' one?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message