本文整理汇总了Java中org.tmatesoft.svn.core.wc.SVNUpdateClient.doExport方法的典型用法代码示例。如果您正苦于以下问题:Java SVNUpdateClient.doExport方法的具体用法?Java SVNUpdateClient.doExport怎么用?Java SVNUpdateClient.doExport使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.tmatesoft.svn.core.wc.SVNUpdateClient
的用法示例。
在下文中一共展示了SVNUpdateClient.doExport方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: export
import org.tmatesoft.svn.core.wc.SVNUpdateClient; //导入方法依赖的package包/类
@Override
public void export(@NotNull SvnTarget from,
@NotNull File to,
@Nullable SVNRevision revision,
@Nullable Depth depth,
@Nullable String nativeLineEnd,
boolean force,
boolean ignoreExternals,
@Nullable ProgressTracker handler) throws VcsException {
SVNUpdateClient client = myVcs.getSvnKitManager().createUpdateClient();
client.setEventHandler(toEventHandler(handler));
client.setIgnoreExternals(ignoreExternals);
try {
if (from.isFile()) {
client.doExport(from.getFile(), to, from.getPegRevision(), revision, nativeLineEnd, force, toDepth(depth));
}
else {
client.doExport(from.getURL(), to, from.getPegRevision(), revision, nativeLineEnd, force, toDepth(depth));
}
}
catch (SVNException e) {
throw new SvnBindException(e);
}
}
示例2: exportToFile
import org.tmatesoft.svn.core.wc.SVNUpdateClient; //导入方法依赖的package包/类
public void exportToFile(String repositoryUrl, String path, String revision, File targetFile) throws SVNException, FileNotFoundException
{
SVNRepository svnRepository = getRepository(repositoryUrl);
SVNUpdateClient updateClient = svnClientManager.getUpdateClient();
updateClient.setIgnoreExternals(false);
updateClient.setExportExpandsKeywords(true);
updateClient.doExport(svnRepository.getLocation().appendPath(path, false), targetFile, SVNRevision.create(-1),
SVNRevision.create(Long.valueOf(revision)), null, true, SVNDepth.INFINITY);
}
示例3: export
import org.tmatesoft.svn.core.wc.SVNUpdateClient; //导入方法依赖的package包/类
public static long export( SVNClientManager clientManager, SVNURL url, SVNRevision revision, File destPath,
boolean isRecursive )
throws SVNException
{
SVNUpdateClient updateClient = clientManager.getUpdateClient();
/*
* sets externals not to be ignored during the checkout
*/
updateClient.setIgnoreExternals( false );
/*
* returns the number of the revision at which the working copy is
*/
return updateClient.doExport( url, destPath, revision, revision, "native", true, isRecursive );
}