#2205 closed enhancement (fixed)
Update ant task that uses svn commands
Reported by: | Nicklas Nordborg | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | BASE 3.16.1 |
Component: | build | Version: | |
Keywords: | Cc: |
Description (last modified by )
After updating to a newer Eclipse version (2019-09; 4.13) and checking out a new BASE repository it is not possible to compile with ant:
λ ant Buildfile: F:\Work\Eclipse\3.16-stable\build.xml svn.revision: [svn] svn: E155021: This client is too old to work with the working copy at [svn] 'F:\Work\Eclipse\3.16-stable' (format '31'). [svn] svn: E155021: This client is too old to work with the working copy at [svn] 'F:\Work\Eclipse\3.16-stable' (format '31'). [svn] <Status> failed. BUILD FAILED F:\Work\Eclipse\3.16-stable\build.xml:325: Can't get status of F:\Work\Eclipse\3.16-stable
It is not really a surprise since the Ant/Svn library that we use has not been updated for several years. This was already a problem 8 years ago (#1659).
Basically we have two options:
- Skip everything that is using svn commands. There are two places in the build script right now:
- svn.revision: Get the current revision number and put in a file that BASE uses to display version information.
- svn.export: Used in the release procedure to extract a copy of the entire repository and package it as a source file delivery.
- There are also svn.diff and svn.update, but they are only provided to be helpful. Eclipse and other developer tools can do the same thing much better.
- Try to find a replacement. SvnKit (https://svnkit.com) is used by the Subversion Eclipse plug-in and also has a command line interface. The command line interface maybe be used by ant as any other external program.
After investigating SvnKit it seems like option 2 should be possible to implement and a bit more future-proof that SvnAnt.
Change History (7)
comment:1 by , 5 years ago
comment:2 by , 5 years ago
Description: | modified (diff) |
---|---|
Summary: | Update or get rid of ant task that uses svn commands → Update ant task that uses svn commands |
comment:3 by , 5 years ago
Description: | modified (diff) |
---|
comment:6 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
SvnKit seems to work fine. It is possible to use Ant's
<java>
task to execute commands as if they were entered on a command line. The output is a bit different, but it should not really matter.