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

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

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

Main.getLibrariesFiles介绍

暂无

代码示例

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

private void addFilesFrom(File javaHome, String propertyName, String defaultPath, ArrayList<File> files) {
  String extdirsStr = System.getProperty(propertyName);
  File[] directoriesToCheck = null;
  if (extdirsStr == null) {
    if (javaHome != null) {
      directoriesToCheck = new File[] { new File(javaHome, defaultPath) };
    }
  } else {
    StringTokenizer tokenizer = new StringTokenizer(extdirsStr, File.pathSeparator);
    ArrayList<String> paths = new ArrayList<String>();
    while (tokenizer.hasMoreTokens()) {
      paths.add(tokenizer.nextToken());
    }
    if (paths.size() != 0) {
      directoriesToCheck = new File[paths.size()];
      for (int i = 0; i < directoriesToCheck.length; i++)  {
        directoriesToCheck[i] = new File(paths.get(i));
      }
    }
  }
  if (directoriesToCheck != null) {
    addFiles(Main.getLibrariesFiles(directoriesToCheck), files);
  }
  
}

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

private void addFilesFrom(File javaHome, String propertyName, String defaultPath, ArrayList<File> files) {
  String extdirsStr = System.getProperty(propertyName);
  File[] directoriesToCheck = null;
  if (extdirsStr == null) {
    if (javaHome != null) {
      directoriesToCheck = new File[] { new File(javaHome, defaultPath) };
    }
  } else {
    StringTokenizer tokenizer = new StringTokenizer(extdirsStr, File.pathSeparator);
    ArrayList<String> paths = new ArrayList<String>();
    while (tokenizer.hasMoreTokens()) {
      paths.add(tokenizer.nextToken());
    }
    if (paths.size() != 0) {
      directoriesToCheck = new File[paths.size()];
      for (int i = 0; i < directoriesToCheck.length; i++)  {
        directoriesToCheck[i] = new File(paths.get(i));
      }
    }
  }
  if (directoriesToCheck != null) {
    addFiles(Main.getLibrariesFiles(directoriesToCheck), files);
  }
  
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

private void addFilesFrom(File javaHome, String propertyName, String defaultPath, ArrayList<File> files) {
  String extdirsStr = System.getProperty(propertyName);
  File[] directoriesToCheck = null;
  if (extdirsStr == null) {
    if (javaHome != null) {
      directoriesToCheck = new File[] { new File(javaHome, defaultPath) };
    }
  } else {
    StringTokenizer tokenizer = new StringTokenizer(extdirsStr, File.pathSeparator);
    ArrayList<String> paths = new ArrayList<String>();
    while (tokenizer.hasMoreTokens()) {
      paths.add(tokenizer.nextToken());
    }
    if (paths.size() != 0) {
      directoriesToCheck = new File[paths.size()];
      for (int i = 0; i < directoriesToCheck.length; i++)  {
        directoriesToCheck[i] = new File(paths.get(i));
      }
    }
  }
  if (directoriesToCheck != null) {
    addFiles(Main.getLibrariesFiles(directoriesToCheck), files);
  }
  
}

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

private void addFilesFrom(File javaHome, String propertyName, String defaultPath, ArrayList<File> files) {
  String extdirsStr = System.getProperty(propertyName);
  File[] directoriesToCheck = null;
  if (extdirsStr == null) {
    if (javaHome != null) {
      directoriesToCheck = new File[] { new File(javaHome, defaultPath) };
    }
  } else {
    StringTokenizer tokenizer = new StringTokenizer(extdirsStr, File.pathSeparator);
    ArrayList<String> paths = new ArrayList<String>();
    while (tokenizer.hasMoreTokens()) {
      paths.add(tokenizer.nextToken());
    }
    if (paths.size() != 0) {
      directoriesToCheck = new File[paths.size()];
      for (int i = 0; i < directoriesToCheck.length; i++)  {
        directoriesToCheck[i] = new File(paths.get(i));
      }
    }
  }
  if (directoriesToCheck != null) {
    addFiles(Main.getLibrariesFiles(directoriesToCheck), files);
  }
  
}

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

private void addFilesFrom(File javaHome, String propertyName, String defaultPath, ArrayList<File> files) {
  String extdirsStr = System.getProperty(propertyName);
  File[] directoriesToCheck = null;
  if (extdirsStr == null) {
    if (javaHome != null) {
      directoriesToCheck = new File[] { new File(javaHome, defaultPath) };
    }
  } else {
    StringTokenizer tokenizer = new StringTokenizer(extdirsStr, File.pathSeparator);
    ArrayList<String> paths = new ArrayList<String>();
    while (tokenizer.hasMoreTokens()) {
      paths.add(tokenizer.nextToken());
    }
    if (paths.size() != 0) {
      directoriesToCheck = new File[paths.size()];
      for (int i = 0; i < directoriesToCheck.length; i++)  {
        directoriesToCheck[i] = new File(paths.get(i));
      }
    }
  }
  if (directoriesToCheck != null) {
    addFiles(Main.getLibrariesFiles(directoriesToCheck), files);
  }
  
}

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

};
File[][] systemLibrariesJars = Main.getLibrariesFiles(directoriesToCheck);
if (systemLibrariesJars != null) {
  for (int i = 0, max = systemLibrariesJars.length; i < max; i++) {

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

};
File[][] jars = Main.getLibrariesFiles(directoriesToCheck);
addFiles(jars, files);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

};
File[][] jars = Main.getLibrariesFiles(directoriesToCheck);
addFiles(jars, files);

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

};
File[][] systemLibrariesJars = Main.getLibrariesFiles(directoriesToCheck);
if (systemLibrariesJars != null) {
  for (int i = 0, max = systemLibrariesJars.length; i < max; i++) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

};
File[][] systemLibrariesJars = Main.getLibrariesFiles(directoriesToCheck);
if (systemLibrariesJars != null) {
  for (int i = 0, max = systemLibrariesJars.length; i < max; i++) {

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

};
File[][] jars = Main.getLibrariesFiles(directoriesToCheck);
addFiles(jars, files);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

};
File[][] jars = Main.getLibrariesFiles(directoriesToCheck);
addFiles(jars, files);

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

for (int i = 0; i < directoriesToCheck.length; i++)
  directoriesToCheck[i] = new File(extdirsClasspaths.get(i));
File[][] extdirsJars = getLibrariesFiles(directoriesToCheck);
if (extdirsJars != null) {
  for (int i = 0, max = extdirsJars.length; i < max; i++) {

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

};
File[][] jars = Main.getLibrariesFiles(directoriesToCheck);
addFiles(jars, files);

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

directoriesToCheck[i] = new File((String) extdirsClasspaths.get(i));
extdirsClasspaths.clear();
File[][] extdirsJars = getLibrariesFiles(directoriesToCheck);
if (extdirsJars != null) {
  for (int i = 0, max = extdirsJars.length; i < max; i++) {

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

directoriesToCheck[i] = new File((String) extdirsClasspaths.get(i));
extdirsClasspaths.clear();
File[][] extdirsJars = getLibrariesFiles(directoriesToCheck);
if (extdirsJars != null) {
  for (int i = 0, max = extdirsJars.length; i < max; i++) {

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

directoriesToCheck[i] = new File((String) extdirsClasspaths.get(i));
extdirsClasspaths.clear();
File[][] extdirsJars = getLibrariesFiles(directoriesToCheck);
if (extdirsJars != null) {
  for (int i = 0, max = extdirsJars.length; i < max; i++) {

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

directoriesToCheck[i] = new File((String) endorsedDirClasspaths.get(i));
endorsedDirClasspaths.clear();
File[][] endorsedDirsJars = getLibrariesFiles(directoriesToCheck);
if (endorsedDirsJars != null) {
  for (int i = 0, max = endorsedDirsJars.length; i < max; i++) {

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

directoriesToCheck[i] = new File((String) extdirsClasspaths.get(i));
extdirsClasspaths.clear();
File[][] extdirsJars = getLibrariesFiles(directoriesToCheck);
if (extdirsJars != null) {
  for (int i = 0, max = extdirsJars.length; i < max; i++) {

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

directoriesToCheck[i] = new File((String) extdirsClasspaths.get(i));
extdirsClasspaths.clear();
File[][] extdirsJars = getLibrariesFiles(directoriesToCheck);
if (extdirsJars != null) {
  for (int i = 0, max = extdirsJars.length; i < max; i++) {

相关文章