Package org.apache.tools.ant.taskdefs

Examples of org.apache.tools.ant.taskdefs.LogStreamHandler


      if (jmProperty.isValid()) {
        cmd.createArgument().setValue("-J" + jmProperty.toString());
      }
    }

    Execute execute = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));
    execute.setCommandline(cmd.getCommandline());
    execute.setAntRun(getProject());

    execute.setWorkingDirectory(new File(jmeterHome.getAbsolutePath() + File.separator + "bin"));
    log(cmd.describeCommand(), Project.MSG_VERBOSE);
View Full Code Here


    return runner;
  }

  protected ExecuteStreamHandler createStreamHandler()
  {
    LogStreamHandler streamHandler = new LogStreamHandler(this, Project.MSG_INFO,
              Project.MSG_WARN);
    return streamHandler;
  }
View Full Code Here

            throw new BuildException(e, location);
        }
    }

    protected int run(Commandline cmd) {       
        return run(cmd,new LogStreamHandler(this, Project.MSG_VERBOSE, Project.MSG_WARN));
    }
View Full Code Here

        m_serverPath = serverPath;
    }

    protected int run(Commandline cmd) {
        try {
            Execute exe = new Execute(new LogStreamHandler(this,
                                                           Project.MSG_INFO,
                                                           Project.MSG_WARN));

            // If location of ss.ini is specified we need to set the
            // environment-variable SSDIR to this value
View Full Code Here


    protected int run(Commandline cmd) {
        try {
            Project aProj = getProject();
            Execute exe = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));
            exe.setAntRun(aProj);
            exe.setWorkingDirectory(aProj.getBaseDir());
            exe.setCommandline(cmd.getCommandline());
            return exe.execute();
        }
View Full Code Here

        final Commandline.Argument arg = cmdl.createVmArgument();
        arg.setValue("-mx140M");
        arg.setValue("-Dinstall.root="+javaccHome.getAbsolutePath());

        final Execute process =
            new Execute(new LogStreamHandler(this,
                                             Project.MSG_INFO,
                                             Project.MSG_INFO),
                        null);
        log(cmdl.toString(), Project.MSG_VERBOSE);
        process.setCommandline(cmdl.getCommandline());
View Full Code Here

            }

            commandLine.createArgument().setValue("@"+tmp2.getAbsolutePath());
            log("Getting files", Project.MSG_INFO);
            log("Executing " + commandLine.toString(), Project.MSG_VERBOSE);
            result = runCmd(commandLine, new LogStreamHandler(this,Project.MSG_INFO, Project.MSG_WARN));
            if ( result != 0 && !ignorerc) {
                String msg = "Failed executing: " + commandLine.toString() + ". Return code was "+result;
                throw new BuildException(msg, location);
            }
View Full Code Here

      // we need to run Coverage from his directory due to dll/jar issues
      cmdl.setExecutable( new File(home, "jplauncher").getAbsolutePath() );
      cmdl.createArgument().setValue("-jp_input=" + paramfile.getAbsolutePath());
     
      // use the custom handler for stdin issues
      LogStreamHandler handler = new CoverageStreamHandler(this);
      Execute exec = new Execute( handler );
      log(cmdl.toString(), Project.MSG_VERBOSE);
      exec.setCommandline(cmdl.getCommandline());
      int exitValue = exec.execute();
      if (exitValue != 0) {
View Full Code Here

            propsFile.delete();
            throw new BuildException("Error creating temporary properties "
                                     + "file.", e, getLocation());
        }

        Execute execute = new Execute(new LogStreamHandler(this,
                                                           Project.MSG_INFO,
                                                           Project.MSG_WARN),
                                      watchdog);
        execute.setCommandline(cmd.getCommandline());
        execute.setAntRun(getProject());
View Full Code Here

    private int executeAsForked(final AppletPluginArguments appletPluginArguments) {
        CommandlineJava cmd = AppletRunnerStepBoundary.tryClone(fCommandline, this);
        cmd.setClassname(AppletRunner.class.getName());
        cmd.addSysproperty(getProtocolHandler());
        cmd.createArgument().setValue(writeArguments(appletPluginArguments));
        Execute execute = new Execute(new LogStreamHandler(this, Project.MSG_INFO, Project.MSG_WARN));
        execute.setCommandline(cmd.getCommandline());
        execute.setAntRun(getProject());

        // propagate the environment here?
        LOG.info(cmd.describeCommand());
View Full Code Here

TOP

Related Classes of org.apache.tools.ant.taskdefs.LogStreamHandler

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.