本文整理汇总了Java中org.tigris.subversion.svnclientadapter.SVNNodeKind.UNKNOWN属性的典型用法代码示例。如果您正苦于以下问题:Java SVNNodeKind.UNKNOWN属性的具体用法?Java SVNNodeKind.UNKNOWN怎么用?Java SVNNodeKind.UNKNOWN使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类org.tigris.subversion.svnclientadapter.SVNNodeKind
的用法示例。
在下文中一共展示了SVNNodeKind.UNKNOWN属性的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convertNodeKind
public static SVNNodeKind convertNodeKind(org.apache.subversion.javahl.types.NodeKind javahlNodeKind) {
if (javahlNodeKind == null) {
return null;
}
switch(javahlNodeKind) {
case dir : return SVNNodeKind.DIR;
case file : return SVNNodeKind.FILE;
case none : return SVNNodeKind.NONE;
case unknown : return SVNNodeKind.UNKNOWN;
default: {
log.severe("unknown node kind :"+javahlNodeKind);
return SVNNodeKind.UNKNOWN; // should never go here
}
}
}
示例2: getNodeKind
public SVNNodeKind getNodeKind() {
return SVNNodeKind.UNKNOWN;
}
示例3: scandir
/**
* Scans the given directory for files and directories. Found files and
* directories are placed in their respective collections, based on the
* matching of includes, excludes, and the selectors. When a directory
* is found, it is scanned recursively.
*
* @param dir The directory to scan. Must not be <code>null</code>.
* @param vpath The path relative to the base directory (needed to
* prevent problems with an absolute path when using
* dir). Must not be <code>null</code>.
* @param fast Whether or not this call is part of a fast scan.
*
* @see #filesIncluded
* @see #filesNotIncluded
* @see #filesExcluded
* @see #dirsIncluded
* @see #dirsNotIncluded
* @see #dirsExcluded
* @see #slowScan
*/
protected void scandir( File dir, String vpath, boolean fast ) {
// avoid double scanning of directories, can only happen in fast mode
if( fast && hasBeenScanned( vpath ) ) {
return;
}
ISVNStatus[] newfiles = list( dir );
if( newfiles == null ) {
/*
* two reasons are mentioned in the API docs for File.list
* (1) dir is not a directory. This is impossible as
* we wouldn't get here in this case.
* (2) an IO error occurred (why doesn't it throw an exception
* then???)
*/
throw new BuildException( "IO error scanning directory " + dir.getAbsolutePath() );
}
for( int i = 0; i < newfiles.length; i++ ) {
String name = vpath + newfiles[i].getFile().getName();
File file = new File( dir, newfiles[i].getFile().getName() );
if( SVNNodeKind.DIR == newfiles[i].getNodeKind()
|| (SVNNodeKind.UNKNOWN == newfiles[i].getNodeKind() && newfiles[i].getFile().isDirectory()) ) {
if( isIncluded( name ) ) {
accountForIncludedDir( name, file, fast );
} else {
everythingIncluded = false;
dirsNotIncluded.addElement( name );
if( fast && couldHoldIncluded( name ) ) {
scandir( file, name + File.separator, fast );
}
}
if( !fast ) {
scandir( file, name + File.separator, fast );
}
} else if( SVNNodeKind.FILE == newfiles[i].getNodeKind()
|| (SVNNodeKind.UNKNOWN == newfiles[i].getNodeKind() && newfiles[i].getFile().isFile()) ) {
if( isIncluded( name ) ) {
accountForIncludedFile( name, file );
} else {
everythingIncluded = false;
filesNotIncluded.addElement( name );
}
}
}
}