Question

I can't install SVN on this box, but we have a TeamCity build agent configured which has svnkit bundled, including svnkit-cli. Is it possible to invoke the cli programmatically, not through TeamCity?

Ideally in a one-liner bash command, something like...

$ java -classpath ".;/teamcity/plugins/svnAgent/lib/*" SVN --version

I can't figure out the syntax to use the bundled svnkit-cli. Is it possible?

FYI:

$ ls /teamcity/plugins/svnAgent/lib/ | grep svn
svnPlugin.jar
svnkit-1.7.9.jar
svnkit-cli-1.7.9.jar
svnkit-javahl16-1.7.9.jar
Était-ce utile?

La solution

I worked it out by studying the svnkit with ant documentation.

java -cp ".:%teamcity.agent.home.dir%/plugins/svnAgent/lib/*" org.tmatesoft.svn.cli.SVN --version
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top