Examples of StandardConfiguration


Examples of dk.brics.xact.analysis.config.StandardConfiguration

    try {
      BasicConfigurator.configure(); // initialize log4j for string analyzer
      Logger.getRootLogger().setLevel(Level.ERROR);
     
      String classpath = System.getProperty("soot-classpath");
      StandardConfiguration config = new StandardConfiguration();
      if (classpath == null)
        classpath = "";
      List<String> classes = new ArrayList<String>();
      for (String arg : args) {
        if (arg.startsWith("-dir=")) {
          String dir = arg.substring("-dir=".length());
          addClassFilesFromFolder(new File(dir), "", classes);
          classpath += File.separator + dir;
        }
        else if (arg.startsWith("-basedir=")) {
          config.setBasedir(arg.substring("-basedir=".length()));
        }
        else if (arg.startsWith("-cp=")) {
          String cparg = arg.substring("-cp=".length());
          classpath += File.separator + cparg;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.