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

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

本文整理了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

  1. protected ArrayList<FileSystem.Classpath> handleModulepath(String arg) {
  2. ArrayList<String> modulePaths = processModulePathEntries(arg);
  3. ArrayList<Classpath> result = new ArrayList<>();
  4. if ((modulePaths != null && modulePaths.size() > 0)) {
  5. for (String path : modulePaths) {
  6. File file = new File(path);
  7. if (file.isDirectory()) {
  8. result.addAll(
  9. ModuleFinder.findModules(file, null, getNewParser(), this.options, true, this.releaseVersion));
  10. } else {
  11. Classpath modulePath = ModuleFinder.findModule(file, null, getNewParser(), this.options, true, this.releaseVersion);
  12. if (modulePath != null)
  13. result.add(modulePath);
  14. }
  15. }
  16. }
  17. // TODO: What about chained jars from MANIFEST.MF? Check with spec
  18. return result;
  19. }
  20. protected ArrayList<FileSystem.Classpath> handleModuleSourcepath(String arg) {

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

  1. protected ArrayList<FileSystem.Classpath> handleModulepath(String arg) {
  2. ArrayList<String> modulePaths = processModulePathEntries(arg);
  3. ArrayList<Classpath> result = new ArrayList<>();
  4. if ((modulePaths != null && modulePaths.size() > 0)) {
  5. for (String path : modulePaths) {
  6. File file = new File(path);
  7. if (file.isDirectory()) {
  8. result =
  9. (ArrayList<Classpath>) ModuleFinder.findModules(file, null, getNewParser(), this.options, true);
  10. } else {
  11. Classpath modulePath = ModuleFinder.findModule(file, null, getNewParser(), this.options, true);
  12. if (modulePath != null)
  13. result.add(modulePath);
  14. }
  15. }
  16. }
  17. // TODO: What about chained jars from MANIFEST.MF? Check with spec
  18. return result;
  19. }
  20. protected ArrayList<FileSystem.Classpath> handleModuleSourcepath(String arg) {

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

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

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

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

相关文章