Menu

#109 "Subversion binary is incorrect version. Found: 1.10.0, required: 1.3.0 Updating"

v1.0 (example)
open
nobody
5
2022-09-22
2018-09-14
No

When I try to run statsvn, it returns an error message:

"nt.sf.statsvn.util.JavaUtilTaskLogger error"
"Subversion binary is incorrect version. Found: 1.10.2, required: 1.3.0"

Considering that the version 1.10.2 actually is greater than 1.3.0, I can conclude that it is a comparsion bug. Looking in the source code, the class "SvnStartupUtils" uses a simple string comparsion to handle the required version. It used to work fine for the older versions, but any version greater than 1.10 will be wrongly denied in the comparsion.
To fix it, I used the ComparableVersion class from "maven-artifact". Using the class I handled with the comparsion and effectively run the statsvn with no problems.

The .jar file of maven-artifact can be found here: https://mvnrepository.com/artifact/org.apache.maven/maven-artifact/3.5.4

The new SvnStartupUtils class is attached bellow. Adding the maven-artifact .jar file to the project, updating the "SvnStartupUtils" class and compiling the project shall resolve the issue.

1 Attachments

Discussion

  • Paul Douglas

    Paul Douglas - 2019-01-02

    Please keep me posted as to when this makes it into a formal release

     
  • John Miller

    John Miller - 2022-09-22

    Any movement on this or is this code dead?

     

Log in to post a comment.