Examples of JCLParser


Examples of org.rzo.yajsw.tools.JCLParser

  }

  public void setCommand(String command)
  {
    _command = command.trim();
    JCLParser p = null;
    try
    {
      p = JCLParser.parse(_command);
    }
    catch (Exception ex)
    {
    }
    if (p == null)
      return;
    if ("org.rzo.yajsw.boot.WrapperServiceBooter".equals(p.getMainClass()))
    {
      _wrapped = "Service";
      for (String option : p.getVmOptions())
        if (option.startsWith("-Dwrapper.config="))
          _wrapperConfigurationPath = option.substring("-Dwrapper.config=".length());
    }
    else if (p.getJar() != null && p.getJar().endsWith("wrapper.jar") && p.getArgs().size() > 1 && p.getArgs().get(0).equals("-c"))
    {
      _wrapped = "Console";
      _wrapperConfigurationPath = p.getArgs().get(1);
    }
  }
View Full Code Here

Examples of org.rzo.yajsw.tools.JCLParser

        _processes.put(pid, p);
      }
      String cmd = p.getCommand();
      if (cmd != null && cmd.contains("wrapper.jar\" -c"))
      {
        JCLParser jp = JCLParser.parse(cmd);
        ServiceInfoImpl service = new ServiceInfoImpl();
        service.setCommand(cmd);
        String confFile = jp.getArgs().get(1);
        if (confFile == null)
          continue;
        File f = new File(confFile);
        if (!f.exists())
          f = new File(p.getWorkingDir(), confFile);
        service.setDisplayName(f.getAbsolutePath());
        service.setName(jp.getArgs().get(1));
        service.setPid(pid);
        service.setWrapperAppPid(getAppPid(pid));
        service.setAccount(p.getUser());
        result.put(service.getName(), service);
      }
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.