Package com.commander4j.sys

Source Code of com.commander4j.sys.JLaunchExec

package com.commander4j.sys;

import org.apache.log4j.Logger;

import com.commander4j.db.JDBModule;
import com.commander4j.util.JUtility;

/**
*/
public class JLaunchExec
{

  /**
   * Field mod. Value: {@value mod}
   */
  public static JDBModule mod;

  /**
   * Method runExec.
   *
   * @param optionName
   *            String
   */
  public static void runExec(String host, String session, String optionName) {
    final Logger logger = Logger.getLogger(JLaunchMenu.class);
    mod = new JDBModule(host, session);

    logger.debug("runForm :" + optionName);

    mod.setModuleId(optionName);
    if (mod.getModuleProperties() == true)
    {
      String command = mod.getExecFilename();
      String dir = mod.getExecDir();
      JUtility.exec(command, dir);

    }

  }
}
TOP

Related Classes of com.commander4j.sys.JLaunchExec

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.