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

Re: request for simple example: commit or update a file with java

From: <cmpilato_at_collab.net>
Date: 2002-11-04 16:15:59 CET

"Robert Koberg" <rob@koberg.com> writes:

> Hi,
>
> Am I asking something totally stupid? Can anybody give me some hints
> (offlist if this is an offtopic question)?

Stupid? Heck, no. You just asked on a weekend. :-)

> > Can anybody post a simple, basic example of the best way to perform a
> > commit or update from within a java app? Lets say the app lives on
> > the same machine as the subversion repos. Is there any way to pass
> > the commit info as headers in a http response? Is the only way,
> > currently, to do a Runtime.exec()? Any advice is appreciated.

Currently, yes, you'll need to use something like Runtime.exec() --
effectively running system() on the Subversion command-line client.
The Java SWIG bindings aren't yet mature enough for you to use them
directly. Contributions here would be appreciated, of course.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 4 16:19:47 2002

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

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