Examples of SVNInfo


Examples of org.tmatesoft.svn.core.wc.SVNInfo

    // Get the WC Client
    SVNWCClient client = this.getTask().getSvnClient().getWCClient();

    // Execute svn info
    SVNInfo info = client.doInfo(filePath, SVNRevision.WORKING);

    // Get the interesting info data
    SVNRevision revision = info.getRevision();
    SVNRevision committedRevision = info.getCommittedRevision();
    SVNURL url = info.getURL();
    SVNURL repositoryRootUrl = info.getRepositoryRootURL();
    String author = info.getAuthor();
    Date committedDate = info.getCommittedDate();

    // Set the computed properties in ant
    this.getProject().setProperty(this.revisionProperty, new Long(revision.getNumber()).toString());
    this.getProject().setProperty(this.urlProperty, url.toDecodedString());
    this.getProject().setProperty(this.repositoryRootUrlProperty, repositoryRootUrl.toDecodedString());
View Full Code Here

Examples of org.tmatesoft.svn.core.wc2.SvnInfo

    private void fillInfo( Entry entry, SvnOperationFactory operationFactory, StatusHandler statusHandler ) throws SVNException {
        if ( statusHandler.repositoryPath == null || statusHandler.repositoryPath.length() == 0 ) {
            SvnGetInfo infoOperation = operationFactory.createGetInfo();
            infoOperation.setSingleTarget( SvnTarget.fromFile( entry.getPath() ) );
            SvnInfo infoResult = infoOperation.run();
            statusHandler.repositoryRoot = infoResult.getRepositoryRootUrl().toString();
            statusHandler.repositoryPath = infoResult.getUrl().toString().substring( statusHandler.repositoryRoot.length() + 1 );
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.