org.eclipse.jdt.internal.compiler.batch.Main.processModulePathEntries()方法的使用及代码示例

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

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

Main.processModulePathEntries介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

protected ArrayList<FileSystem.Classpath> handleModulepath(String arg) {
  ArrayList<String> modulePaths = processModulePathEntries(arg);
  ArrayList<Classpath> result = new ArrayList<>();
  if ((modulePaths != null && modulePaths.size() > 0)) {
    for (String path : modulePaths) {
      File file = new File(path);
      if (file.isDirectory()) {
        result.addAll(
          ModuleFinder.findModules(file, null, getNewParser(), this.options, true, this.releaseVersion));
      } else {
        Classpath modulePath = ModuleFinder.findModule(file, null, getNewParser(), this.options, true, this.releaseVersion);
        if (modulePath != null)
          result.add(modulePath);
      }
    }
  }
  // TODO: What about chained jars from MANIFEST.MF? Check with spec
  return result;
}
protected ArrayList<FileSystem.Classpath> handleModuleSourcepath(String arg) {

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

protected ArrayList<FileSystem.Classpath> handleModulepath(String arg) {
  ArrayList<String> modulePaths = processModulePathEntries(arg);
  ArrayList<Classpath> result = new ArrayList<>();
  if ((modulePaths != null && modulePaths.size() > 0)) {
    for (String path : modulePaths) {
      File file = new File(path);
      if (file.isDirectory()) {
        result =
          (ArrayList<Classpath>) ModuleFinder.findModules(file, null, getNewParser(), this.options, true);
      } else {
        Classpath modulePath = ModuleFinder.findModule(file, null, getNewParser(), this.options, true);
        if (modulePath != null)
          result.add(modulePath);
      }
    }
  }
  // TODO: What about chained jars from MANIFEST.MF? Check with spec
  return result;
}
protected ArrayList<FileSystem.Classpath> handleModuleSourcepath(String arg) {

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

protected ArrayList<FileSystem.Classpath> handleModuleSourcepath(String arg) {
  ArrayList<String> modulePaths = processModulePathEntries(arg);
  ArrayList<FileSystem.Classpath> result = new ArrayList<>();
  if ((modulePaths != null)

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

protected ArrayList<FileSystem.Classpath> handleModuleSourcepath(String arg) {
  ArrayList<String> modulePaths = processModulePathEntries(arg);
  ArrayList<FileSystem.Classpath> result = new ArrayList<>();
  if ((modulePaths != null)

相关文章