This package contains examples on how to use a low-level API from the org.tmatesoft.svn.core.io ". "package to work directly with a repository. ". "The major point of this API - the SVNRepository class which provides a developer the interface ". "to interact with a repository. Note that the low-level API itself knows nothing about working copies, ". "it only allows you to work with a Subversion repository."; $packageDescription[$examplesPath[1]] = "

This package contains examples on how to use a high-level API from the org.tmatesoft.svn.core.wc package ". "to manage working copies. Each command of the native Subversion command line client is reflected in SVN*Client ". "classes. These \"clients\" relies upon the low-level API (org.tmatesoft.svn.core.io) when an access to a repository is needed."; $result = array(); for($k = 0; $k < count($examplesPath); $k++){ $result[$examplesPath[$k]] = collect_examples($examplesPath[$k]); } if(count($result)<1){ return $url; } $examplesListFrameFile = $_SERVER["DOCUMENT_ROOT"] . "/svn/feed/ExamplesList.html"; $fhandle = fopen($examplesListFrameFile, "w+"); fwrite($fhandle, "Library Usage Examples". "". "
Home :: Knowledge Base". "

Library Usage Examples


The following examples may help you to become more familiar with the JavaSVN API:

"); for($k = 0; $k < count($examplesPath); $k++) { $matches = array(); $exampleDirectory = $examplesPath[$k]; if(ereg("org/tmatesoft/svn/examples/[^/]+", $examplesPath[$k], $matches)){ $exampleDirectory = str_replace("/", ".", $matches[0]); } fwrite($fhandle, "

".$exampleDirectory."

"); fwrite($fhandle, $packageDescription[$examplesPath[$k]]); fwrite($fhandle, "
"); fwrite($fhandle, "".$exampleDirectory.""); for($l = 0; $l < count($result[$examplesPath[$k]][$examplesPath[$k]]); $l++){ fwrite($fhandle, "
   ...".$result[$examplesPath[$k]][$examplesPath[$k]][$l].""); } fwrite($fhandle, "
"); } fwrite($fhandle, "
Copyright ©2004-2005, TMate Software
"); /* *

(c) 2004-2005 TMate Software. All rights reserved.
*/ fclose($fhandle); echo "Library Usage Examples"; } function collect_examples($examplesPath) { $handle = fopen($examplesPath, "rt"); if (!$handle) { return false; } $contents = ''; while (!feof($handle)) { $contents .= fread($handle, 8192); } fclose($handle); if (preg_match_all("||U", $contents, $matches, PREG_PATTERN_ORDER)) { $entries = array(); $index=0; for($i = 0; $i < count($matches[0]); $i++) { $entries[$index++] = $matches[1][$i]; } $directoryEntries = array(); $directoryEntries[$examplesPath] = $entries; return $directoryEntries; } return false; } ?>