Package net.grinder.util

Examples of net.grinder.util.AbstractGrinderClassPathProcessor


   * @param logger     logger
   * @return foremost classpath
   */
  private String getForeMostClassPath(Properties properties, AbstractLanguageHandler handler, Logger logger) {
    String systemClassPath = properties.getProperty("java.class.path");
    AbstractGrinderClassPathProcessor classPathProcessor = handler.getClassPathProcessor();
    return classPathProcessor.filterForeMostClassPath(systemClassPath, logger) + File.pathSeparator
        + classPathProcessor.filterPatchClassPath(systemClassPath, logger);
  }
View Full Code Here


      fanOutStreamSender = new FanOutStreamSender(1);
      deleteLogs(base);

      AbstractLanguageHandler handler = Lang.getByFileName(script).getHandler();
      AbstractGrinderClassPathProcessor classPathProcessor = handler.getClassPathProcessor();
      GrinderProperties properties = new GrinderProperties();
      PropertyBuilder builder = new PropertyBuilder(properties, new Directory(base), securityEnabled, hostString,
          NetworkUtils.getLocalHostName());
      properties.setInt("grinder.agents", 1);
      properties.setInt("grinder.processes", 1);
      properties.setInt("grinder.threads", 1);
      properties.setBoolean("grinder.script.validation", true);
      String grinderJVMClassPath = classPathProcessor.buildForemostClasspathBasedOnCurrentClassLoader(LOGGER)
          + File.pathSeparator + classPathProcessor.buildPatchClasspathBasedOnCurrentClassLoader(LOGGER)
          + File.pathSeparator + builder.buildCustomClassPath(true);
      properties.setProperty("grinder.jvm.classpath", grinderJVMClassPath);
      LOGGER.info("grinder.jvm.classpath  : {} ", grinderJVMClassPath);
      AgentIdentityImplementation agentIdentity = new AgentIdentityImplementation("validation");
      agentIdentity.setNumber(0);
      String newClassPath = classPathProcessor.buildClasspathBasedOnCurrentClassLoader(LOGGER);
      LOGGER.debug("validation class path " + newClassPath);
      Properties systemProperties = new Properties();
      systemProperties.put("java.class.path", base.getAbsolutePath() + File.pathSeparator + newClassPath);

      Directory workingDirectory = new Directory(base);
View Full Code Here

TOP

Related Classes of net.grinder.util.AbstractGrinderClassPathProcessor

Copyright © 2018 www.massapicom. 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.