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

[PATCH] svnadmin cmdline mode failure

From: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2005-04-12 17:25:58 CEST

On Tue, 2005-04-12 at 19:16 +0530, Madan U Sreenivasan wrote:
>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.

Madan, I completely agree with you. Attached is a patch that I'm
guessing will correct this problem.

Here's the relevant portion of the build output:

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)

Received on Wed Apr 13 01:25:58 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.