本文整理汇总了Java中org.tigris.subversion.svnclientadapter.ISVNStatus.getUrl方法的典型用法代码示例。如果您正苦于以下问题:Java ISVNStatus.getUrl方法的具体用法?Java ISVNStatus.getUrl怎么用?Java ISVNStatus.getUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.tigris.subversion.svnclientadapter.ISVNStatus
的用法示例。
在下文中一共展示了ISVNStatus.getUrl方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getWorkingCopySumary
import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入方法依赖的package包/类
/**
* Fetch the summary version information for the given working copy path.
* @param svnClient The svn client used to fetch the status.
* @param wcpathfile The working copy path.
* @return The <code>WCVersionSummary</code> storing version information about the working copy.
* @throws SVNClientException Raised if there is a problem fetching working copy status.
*/
private WCVersionSummary getWorkingCopySumary( File wcpathfile ) throws SVNClientException {
ISVNStatus rootstatus = getClient().getSingleStatus( wcpathfile );
if( rootstatus.getUrl() == null ) {
throw ex( MSG_UNMANAGED_PATH, wcpathfile.getAbsolutePath() );
}
ISVNStatus[] statuses = getClient().getStatus( wcpathfile, true, true );
return new WCVersionSummary( rootstatus, statuses, wcpathfile, processUnversioned );
}
示例2: execute
import org.tigris.subversion.svnclientadapter.ISVNStatus; //导入方法依赖的package包/类
/**
* {@inheritDoc}
*/
public void execute() {
Project aProject = getProject();
try {
ISVNStatus status = getClient().getSingleStatus( path );
if( textStatusProperty != null ) {
aProject.setProperty( textStatusProperty, status.getTextStatus().toString() );
}
if( propStatusProperty != null ) {
aProject.setProperty( propStatusProperty, status.getPropStatus().toString() );
}
if( revisionProperty != null ) {
String revision;
if( null == status.getRevision() ) {
revision = "-1";
} else {
revision = status.getRevision().toString();
}
aProject.setProperty( revisionProperty, revision );
}
if( lastChangedRevisionProperty != null ) {
String lastChangedRevision;
if( status.getLastChangedRevision() == null ) {
lastChangedRevision = "";
} else {
lastChangedRevision = status.getLastChangedRevision().toString();
}
aProject.setProperty( lastChangedRevisionProperty, lastChangedRevision );
}
if( lastCommitAuthorProperty != null ) {
String lastCommitAuthor = status.getLastCommitAuthor();
if( lastCommitAuthor == null ) {
lastCommitAuthor = "";
}
aProject.setProperty( lastCommitAuthorProperty, lastCommitAuthor );
}
if( lastChangedDateProperty != null ) {
Date lastChangedDate = status.getLastChangedDate();
if( lastChangedDate == null ) {
aProject.setProperty( lastChangedDateProperty, "" );
} else {
aProject.setProperty( lastChangedDateProperty, getDateStringFor( lastChangedDate ) );
}
}
if( urlProperty != null ) {
SVNUrl statusUrl = status.getUrl();
aProject.setProperty( urlProperty, (statusUrl != null) ? statusUrl.toString() : "" );
}
} catch( SVNClientException ex ) {
throw ex( ex, MSG_CANT_GET_STATUS, path );
}
}