org.apache.tools.ant.util.FileUtils.getPathStack()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(2.5k)|赞(0)|评价(0)|浏览(110)

本文整理了Java中org.apache.tools.ant.util.FileUtils.getPathStack()方法的一些代码示例,展示了FileUtils.getPathStack()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。FileUtils.getPathStack()方法的具体详情如下:
包路径:org.apache.tools.ant.util.FileUtils
类名称:FileUtils
方法名:getPathStack

FileUtils.getPathStack介绍

[英]Gets all names of the path as an array of Strings.
[中]以Strings数组的形式获取路径的所有名称。

代码示例

代码示例来源: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;

相关文章