[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

svnadmin cmdline mode failure

From: Madan U Sreenivasan <madan_at_collab.net>
Date: 2005-04-12 15:46:44 CEST

Hi,
  when I use svnant's test build.xml at test/svn, on Linux ( FC2), I
found that the build failed when trying to create a repository (
svnadmin create ).

   When I did a -verbose, I see that the
org.tigris.subversion.svnclientadapter.commandline.CmdLineException
gives an error saying svnAdmin is not found ( pl. note that the
appropriate cmdline is svnadmin ). When I link svnadmin to svnAdmin and
rerun, the create repos succeeds.

  I have attached the verbose output herewith.
  I believe this is a bug. Pl. comment.

Regards,
Madan.

[sujith@sujith svn]$ ant -verbose
Apache Ant version 1.5.2 compiled on February 28 2003
Buildfile: build.xml
Detected Java version: 1.4 in: /usr/java/j2sdk1.4.2_04/jre
Detected OS: Linux
parsing buildfile build.xml with URI = file:/home/sujith/svnant/svnant/test/svn/build.xml
Project base dir set to: /home/sujith/svnant/svnant/test/svn
 [property] Loading /home/sujith/svnant/svnant/test/svn/build.properties
dropping /home/sujith/svnant/svnant/lib/svn-javahl.jar from path as it doesn't exist
  [taskdef] Loading definitions from resource svntask.properties
Build sequence for target `all' is [clean, createTestRepository, init, all]
Complete build sequence is [clean, createTestRepository, init, all, testCopy, testResolve, testStatus, testList, testExport, testDelete, testSwitch, testIgnore, testListener, testProp, testAddCommit, testRevert, testCheckout, testKeywords, testMkdir, testCat, testLog, testAnnotate, testUpdate, testDiff, testEntry, testImport, testRepositoryRoot, testMove]

clean:

createTestRepository:
     [echo] creating repository (you need svnadmin in your path if using command line interface) ...
      [svn] Using command line interface
SvnAdmin : create
create /home/sujith/svnant/svnant/test/svn/repository

BUILD FAILED
file:/home/sujith/svnant/svnant/test/svn/build.xml:34: Cannot create repository at /home/sujith/svnant/svnant/test/svn/repository
        at org.tigris.subversion.svnant.CreateRepository.execute(CreateRepository.java:89)
        at org.tigris.subversion.svnant.SvnTask.execute(SvnTask.java:286)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.svnclientadapter.commandline.CmdLineException: java.io.IOException: java.io.IOException: svnAdmin: not found
        at org.tigris.subversion.svnclientadapter.SVNClientException.wrapException(SVNClientException.java:67)
        at org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.createRepository(CmdLineClientAdapter.java:1127)
        at org.tigris.subversion.svnant.CreateRepository.execute(CreateRepository.java:87)
        ... 9 more
Caused by: org.tigris.subversion.svnclientadapter.commandline.CmdLineException: java.io.IOException: java.io.IOException: svnAdmin: not found
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execProcess(CommandLine.java:85)
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execString(CommandLine.java:97)
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execVoid(CommandLine.java:133)
        at org.tigris.subversion.svnclientadapter.commandline.SvnAdminCommandLine.create(SvnAdminCommandLine.java:48)
        at org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.createRepository(CmdLineClientAdapter.java:1125)
        ... 10 more
Caused by: java.io.IOException: java.io.IOException: svnAdmin: not found
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at java.lang.Runtime.exec(Runtime.java:491)
        at java.lang.Runtime.exec(Runtime.java:457)
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execProcess(CommandLine.java:83)
        ... 14 more
--- Nested Exception ---
org.tigris.subversion.svnclientadapter.SVNClientException: org.tigris.subversion.svnclientadapter.commandline.CmdLineException: java.io.IOException: java.io.IOException: svnAdmin: not found
        at org.tigris.subversion.svnclientadapter.SVNClientException.wrapException(SVNClientException.java:67)
        at org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.createRepository(CmdLineClientAdapter.java:1127)
        at org.tigris.subversion.svnant.CreateRepository.execute(CreateRepository.java:87)
        at org.tigris.subversion.svnant.SvnTask.execute(SvnTask.java:286)
        at org.apache.tools.ant.Task.perform(Task.java:341)
        at org.apache.tools.ant.Target.execute(Target.java:309)
        at org.apache.tools.ant.Target.performTasks(Target.java:336)
        at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
        at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
        at org.apache.tools.ant.Main.runBuild(Main.java:609)
        at org.apache.tools.ant.Main.start(Main.java:196)
        at org.apache.tools.ant.Main.main(Main.java:235)
Caused by: org.tigris.subversion.svnclientadapter.commandline.CmdLineException: java.io.IOException: java.io.IOException: svnAdmin: not found
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execProcess(CommandLine.java:85)
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execString(CommandLine.java:97)
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execVoid(CommandLine.java:133)
        at org.tigris.subversion.svnclientadapter.commandline.SvnAdminCommandLine.create(SvnAdminCommandLine.java:48)
        at org.tigris.subversion.svnclientadapter.commandline.CmdLineClientAdapter.createRepository(CmdLineClientAdapter.java:1125)
        ... 10 more
Caused by: java.io.IOException: java.io.IOException: svnAdmin: not found
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:143)
        at java.lang.Runtime.execInternal(Native Method)
        at java.lang.Runtime.exec(Runtime.java:566)
        at java.lang.Runtime.exec(Runtime.java:491)
        at java.lang.Runtime.exec(Runtime.java:457)
        at org.tigris.subversion.svnclientadapter.commandline.CommandLine.execProcess(CommandLine.java:83)
        ... 14 more

Total time: 1 second
Received on Tue Apr 12 23:46:44 2005

This is an archived mail posted to the Subclipse Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.