本文整理了Java中org.apache.tools.ant.util.FileUtils.getPathStack()
方法的一些代码示例,展示了FileUtils.getPathStack()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.getPathStack()
方法的具体详情如下:
包路径:org.apache.tools.ant.util.FileUtils
类名称:FileUtils
方法名:getPathStack
[英]Gets all names of the path as an array of String
s.
[中]以String
s数组的形式获取路径的所有名称。
代码示例来源:origin: org.apache.ant/ant
String[] fromPathStack = getPathStack(fromPath);
String[] toPathStack = getPathStack(toPath);
代码示例来源:origin: org.apache.ant/ant-commons-net
/**
* creates a proxy to a FTP directory
* @param completePath the remote directory.
*/
public FTPFileProxy(String completePath) {
super(completePath);
file = null;
name = completePath;
parts = FileUtils.getPathStack(completePath);
}
代码示例来源:origin: com.github.goldin/maven-common
/**
* creates a proxy to a FTP directory
* @param completePath the remote directory.
*/
public FTPFileProxy(String completePath) {
super(completePath);
file = null;
name = completePath;
parts = FileUtils.getPathStack(completePath);
}
代码示例来源:origin: org.apache.ant/ant-commons-net
/**
* creates a proxy to a FTP directory
* @param completePath the remote directory.
*/
public FTPFileProxy(String completePath) {
super(completePath);
file = null;
name = completePath;
parts = FileUtils.getPathStack(completePath);
}
代码示例来源:origin: de.unkrig/antology
/**
* creates a proxy to a FTP directory
* @param completePath the remote directory.
*/
public FTPFileProxy(String completePath) {
super(completePath);
file = null;
name = completePath;
parts = FileUtils.getPathStack(completePath);
}
代码示例来源:origin: org.apache.ant/ant-commons-net
/**
* creates a proxy to a FTP file
* @param file FTPFile
*/
public FTPFileProxy(FTPFile file) {
super(file.getName());
name = file.getName();
this.file = file;
parts = FileUtils.getPathStack(name);
}
代码示例来源:origin: org.apache.ant/ant-commons-net
/**
* creates a proxy to a FTP file
* @param file FTPFile
*/
public FTPFileProxy(FTPFile file) {
super(file.getName());
name = file.getName();
this.file = file;
parts = FileUtils.getPathStack(name);
}
代码示例来源:origin: com.github.goldin/maven-common
/**
* creates a proxy to a FTP file
* @param file
*/
public FTPFileProxy(FTPFile file) {
super(file.getName());
name = file.getName();
this.file = file;
parts = FileUtils.getPathStack(name);
}
代码示例来源:origin: de.unkrig/antology
/**
* creates a proxy to a FTP file
* @param file
*/
public FTPFileProxy(FTPFile file) {
super(file.getName());
name = file.getName();
this.file = file;
parts = FileUtils.getPathStack(name);
}
代码示例来源:origin: org.apache.ant/ant-compress
throws IOException {
String[] parentStack = FileUtils.getPathStack(r.getName());
String currentParent = "";
int skip = r.getName().endsWith("/") ? 2 : 1;
内容来源于网络,如有侵权,请联系作者删除!