本文整理了Java中aQute.libg.glob.Glob.getFiles()
方法的一些代码示例,展示了Glob.getFiles()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Glob.getFiles()
方法的具体详情如下:
包路径:aQute.libg.glob.Glob
类名称:Glob
方法名:getFiles
[英]Get a list of files that match the glob expression
[中]获取与glob表达式匹配的文件列表
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Get a list of files that match the glob expression
*
* @param root the directory to get the files from
* @param recursive to traverse the dirs recursive
* @return file list
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Get a list of files that match the glob expression
*
* @param root the directory to get the files from
* @param recursive to traverse the dirs recursive
* @return file list
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.resolve
/**
* Get a list of files that match the glob expression
*
* @param root the directory to get the files from
* @param recursive to traverse the dirs recursive
* @return file list
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension
/**
* Get a list of files that match the glob expression
*
* @param root the directory to get the files from
* @param recursive to traverse the dirs recursive
* @return file list
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle
/**
* Get a list of files that match the glob expression
*
* @param root the directory to get the files from
* @param recursive to traverse the dirs recursive
* @return file list
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.repository
/**
* Get a list of files that match the glob expression
*
* @param root the directory to get the files from
* @param recursive to traverse the dirs recursive
* @return file list
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: org.osgi/osgi.enroute.configurer.simple.provider
/**
* Get a list of files that match the glob expression
*
* @param root the directory to get the files from
* @param recursive to traverse the dirs recursive
* @return file list
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Get a list of files that match the glob expression
*
* @param root
* the directory to get the files from
* @param recursive
* to traverse the dirs recursive
* @return
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<File>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: org.osgi/osgi.enroute.authorization.simple.provider
/**
* Get a list of files that match the glob expression
*
* @param root
* the directory to get the files from
* @param recursive
* to traverse the dirs recursive
* @return
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<File>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Get a list of files that match the glob expression
*
* @param root
* the directory to get the files from
* @param recursive
* to traverse the dirs recursive
* @return
*/
public List<File> getFiles(File root, boolean recursive, boolean usePath) {
List<File> result = new ArrayList<File>();
getFiles(root, result, recursive, usePath);
return result;
}
代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.bundle
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
代码示例来源:origin: org.apache.aries.spifly/org.apache.aries.spifly.dynamic.framework.extension
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.resolve
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
代码示例来源:origin: org.osgi/osgi.enroute.web.simple.provider
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
}
代码示例来源:origin: org.osgi/osgi.enroute.authorization.simple.provider
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
}
代码示例来源:origin: org.osgi/osgi.enroute.rest.simple.provider
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.repository
public void getFiles(File root, List<File> result, boolean recursive, boolean usePath) {
if (root == null || !root.isDirectory())
return;
for (File sub : root.listFiles()) {
if (sub.isFile()) {
String s = usePath ? sub.getAbsolutePath() : sub.getName();
if (matcher(s).matches())
result.add(sub);
} else if (recursive && sub.isDirectory())
getFiles(sub, result, recursive, usePath);
}
}
内容来源于网络,如有侵权,请联系作者删除!