[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: Daniel Rall <dlr_at_finemaltcoding.com>
Date: 2002-11-04 20:42:01 CET

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

> Hi,
>
> 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.
>
> I remember seeing some posts on somebody doing some work on the java bindings.
> has that gotten anywhere? I can do some QA if or when ready.

As Mike said, Runtime.exec() is your best bet.

The Ant <http://jakarta.apache.org/ant/> folks indicated they were
working on an Ant Task to do just this. As a Task is basically just a
JavaBean with an exec() method to trigger the Task's action based on
the state of the bean attributes, this is likely to serve your
purposes just dandy (assuming they've actually implemented this Task
-- let us know if they haven't had a chance yet). You can reach them
here: <mailto:ant-dev@jakarta.apache.org>

-- 
Daniel Rall <dlr@finemaltcoding.com>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 4 20:42:37 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.