| java.lang.Object org.drools.resource.util.SvnUtil
SvnUtil | public class SvnUtil (Code) | | Subversion utility class that uses JavaSVN to get rules and rule lists from
Subversion via http. It is assumed that you have a working SVN Repository
that is URL enabled. This class does support credentials, so the repository
doesn't have to be setup with anonymous access, although that's the easiest
to get working.
author: James Williams |
authenticate | public static boolean authenticate(String username, String password, String repositoryUrl) throws RuntimeException(Code) | | authenticate a subversion user for access to a particular URL.
Parameters: criteriaBean - throws: SVNException - |
getFileContentsFromSvn | public static ByteArrayOutputStream getFileContentsFromSvn(String url, String svnUsername, String svnPassword, long version) throws SVNException(Code) | | Get a DRL file's contents from Subversion.
Parameters: svnUrl - -URL Parameters: svnUsername - -username Parameters: svnPassword - -password Parameters: ruleVersion - -tag or trunk SVN folder, which represents the subdirectorythat contains the DRL. Parameters: drlName - -DRL file name throws: SVNException - |
setupLibrary | public static void setupLibrary()(Code) | | |
|
|