r859063 | dlr | 2006-03-22 23:06:02 +0000 (Wed, 22 Mar 2006)
Add JavaHL wrapper for Subversion's svn_path_check_valid() API.
* build.conf
(private-includes): Add
subversion/bindings/java/javahl/include/org_tigris_subversion_javahl_Path.h.
[ in subversion/bindings/java/javahl/ ]
* native/SVNPath.h
* native/SVNPath.cpp
(SVNPath): New class declaration and definition. Not currently
intended for instantiation.
(SVNPath::isValid): New static method wrapping the
svn_path_check_valid() function.
* native/org_tigris_subversion_javahl_Path.cpp
New JNI implementation for the org.tigris.subversion.javahl.Path
class.
(Java_org_tigris_subversion_javahl_Path_isValid): Function exposing
the C++ SVNPath::isValid() implementation as the Java
Path.isValid() API.
* src/org/tigris/subversion/javahl/Path.java
New class intended as an external API. Loading it initializes the
native libraries in a static block (a la SVNClient and SVNAdmin).
(isValid): New static native method declaration.
* src/org/tigris/subversion/javahl/tests/BasicTests.java
(testPathValidation): New unit test for the Path.isValid() API.
Patch by: me
Tim Dionne <tdionne@collab.net>
Review by: rooneg