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

request to add new method in javahl: SVNClient.isValidPath

From: Tim Dionne <tdionne_at_collab.net>
Date: 2006-03-10 22:28:28 CET

Hi --

I'm working on a java application that stores data in the subversion repository.
I would like to be able to validate svn paths before using them, so I created a new
javahl method called isValidPath which calls the C api svn_path_check_valid.
I've tested the changes locally and they are working. So I'm proposing that they
be incorporated into subversion with the following log message:

Add isValidPath javahl api. The native java method calls
svn_path_check_valid and returns a jboolean of true if the return value
of svn_path_check_valid is SVN_NO_ERROR. The error message does not
appear to be l10n/i18n so I have localized my own message in CEE.

* subversion/bindings/java/javahl/native/SVNClient.cpp
(isValidPath): New function which calls svn_path_check_valid and returns
a jboolean of true if the return value is SVN_NO_ERROR.

*
subversion/bindings/java/javahl/native/org_tigris_subversion_javahl_SVNClient.cpp
(Java_org_tigris_subversion_javahl_SVNClient_isValidPath): New function
which sets up a JNI call to SVNClient.isValidPath

* subversion/bindings/java/javahl/native/SVNClient.h
(isValidPath): New function declaration.

*
subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/SVNClientInterface.java
(isValidPath): New interface declaration.

*
subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/SVNClient.java
(isValidPath): New native method declaration.

*
subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/SVNClientSynchronized.java
(isValidPath): New method implementation which calls the native method
in a synchronized block.

The diff file is attached to this email message.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Received on Mon Mar 13 03:01:06 2006

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.