gpt4 book ai didi

com.ibm.wala.properties.WalaProperties.getJarsInDirectory()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-21 23:43:05 27 4
gpt4 key购买 nike

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

WalaProperties.getJarsInDirectory介绍

暂无

代码示例

代码示例来源:origin: wala/WALA

/**
 * @return names of the Jar files holding J2EE libraries
 * @throws IllegalStateException if the J2EE_DIR property is not set
 */
public static String[] getJ2EEJarFiles() {
 Properties p = null;
 try {
  p = WalaProperties.loadProperties();
 } catch (WalaException e) {
  e.printStackTrace();
  throw new IllegalStateException("problem loading wala.properties");
 }
 String dir = p.getProperty(WalaProperties.J2EE_DIR);
 if (dir == null) {
  throw new IllegalStateException("No J2EE directory specified");
 }
 return getJarsInDirectory(dir);
}

代码示例来源:origin: com.ibm.wala/com.ibm.wala.core

/**
 * @return names of the Jar files holding J2EE libraries
 * @throws IllegalStateException if the J2EE_DIR property is not set
 */
public static String[] getJ2EEJarFiles() {
 Properties p = null;
 try {
  p = WalaProperties.loadProperties();
 } catch (WalaException e) {
  e.printStackTrace();
  throw new IllegalStateException("problem loading wala.properties");
 }
 String dir = p.getProperty(WalaProperties.J2EE_DIR);
 if (dir == null) {
  throw new IllegalStateException("No J2EE directory specified");
 }
 return getJarsInDirectory(dir);
}

代码示例来源:origin: com.ibm.wala/com.ibm.wala.core

/**
 * Determine the classpath noted in wala.properties for J2SE standard libraries
 * 
 * If wala.properties cannot be loaded, returns jar files in boot classpath.
 * @throws IllegalStateException if jar files cannot be discovered
 * @see PlatformUtil#getBootClassPathJars() 
 */
public static String[] getJ2SEJarFiles() {
 Properties p = null;
 try {
  p = WalaProperties.loadProperties();
 } catch (WalaException e) {
  return PlatformUtil.getBootClassPathJars();
 }
 String dir = p.getProperty(WalaProperties.J2SE_DIR);
 if (dir == null || !(new File(dir)).isDirectory()) {
  System.err.println("WARNING: java_runtime_dir " + dir + " in wala.properties is invalid.  Using boot class path instead.");
  return PlatformUtil.getBootClassPathJars();      
 }
 return getJarsInDirectory(dir);
}

代码示例来源:origin: wala/WALA

/**
 * Determine the classpath noted in wala.properties for J2SE standard libraries
 * 
 * If wala.properties cannot be loaded, returns jar files in boot classpath.
 * @throws IllegalStateException if jar files cannot be discovered
 * @see PlatformUtil#getBootClassPathJars() 
 */
public static String[] getJ2SEJarFiles() {
 Properties p = null;
 try {
  p = WalaProperties.loadProperties();
 } catch (WalaException e) {
  return PlatformUtil.getBootClassPathJars();
 }
 String dir = p.getProperty(WalaProperties.J2SE_DIR);
 if (dir == null || !(new File(dir)).isDirectory()) {
  System.err.println("WARNING: java_runtime_dir " + dir + " in wala.properties is invalid.  Using boot class path instead.");
  return PlatformUtil.getBootClassPathJars();      
 }
 return getJarsInDirectory(dir);
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com