Package net.sf.launch4j

Examples of net.sf.launch4j.Log


    public void actionPerformed(ActionEvent e) {
      try {
        getGlassPane().setVisible(true);
        Worker.post(new Task() {
          public Object run() throws ExecException {
            Log log = Log.getSwingLog(_configForm.getLogTextArea());
            log.clear();
            String path = _outfile.getPath();
            if (Util.WINDOWS_OS) {
              log.append(Messages.getString("MainFrame.executing") + path);
              Util.exec(new String[] { path }, log);
            } else {
              log.append(Messages.getString("MainFrame.jar.integrity.test")
                  + path);
              Util.exec(new String[] { "java", "-jar", path }, log);
            }
            return null;
          }
View Full Code Here


    }
  }
 
  private class BuildActionListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      final Log log = Log.getSwingLog(_configForm.getLogTextArea());
      try {
        if ((!_saved || _configForm.isModified())
            && !save()) {
          return;
        }
        log.clear();
        ConfigPersister.getInstance().getConfig().checkInvariants();
        Builder b = new Builder(log);
        _outfile = b.build();
        setRunEnabled(ConfigPersister.getInstance().getConfig()
            .getHeaderType() == Config.GUI_HEADER  // TODO fix console app test
            && (Util.WINDOWS_OS || !ConfigPersister.getInstance()
                        .getConfig().isDontWrapJar()));
      } catch (InvariantViolationException ex) {
        setRunEnabled(false);
        ex.setBinding(_configForm.getBinding(ex.getProperty()));
        warn(ex);
      } catch (BuilderException ex) {
        setRunEnabled(false);
        log.append(ex.getMessage());
      }
    }
View Full Code Here

    }
  }
 
  private class BuildActionListener implements ActionListener {
    public void actionPerformed(ActionEvent e) {
      final Log log = Log.getSwingLog(_configForm.getLogTextArea());
      try {
        if ((!_saved || _configForm.isModified())
            && !save()) {
          return;
        }
        log.clear();
        ConfigPersister.getInstance().getConfig().checkInvariants();
        Builder b = new Builder(log);
        _outfile = b.build();
        setRunEnabled(ConfigPersister.getInstance().getConfig()
            .getHeaderType() == Config.GUI_HEADER  // TODO fix console app test
            && (Util.WINDOWS_OS || !ConfigPersister.getInstance()
                        .getConfig().isDontWrapJar()));
      } catch (InvariantViolationException ex) {
        setRunEnabled(false);
        ex.setBinding(_configForm.getBinding(ex.getProperty()));
        warn(ex);
      } catch (BuilderException ex) {
        setRunEnabled(false);
        log.append(ex.getMessage());
      }
    }
View Full Code Here

    public void actionPerformed(ActionEvent e) {
      try {
        getGlassPane().setVisible(true);
        Worker.post(new Task() {
          public Object run() throws ExecException {
            Log log = Log.getSwingLog(_configForm.getLogTextArea());
            log.clear();
            String path = _outfile.getPath();
            if (Util.WINDOWS_OS) {
              log.append(Messages.getString("MainFrame.executing") + path);
              Util.exec(new String[] { path, "--l4j-debug" }, log);
            } else {
              log.append(Messages.getString("MainFrame.jar.integrity.test")
                  + path);
              Util.exec(new String[] { "java", "-jar", path }, log);
            }
            return null;
          }
View Full Code Here

TOP

Related Classes of net.sf.launch4j.Log

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.