Package org.jacoco.core.tools

Examples of org.jacoco.core.tools.ExecDumpClient


      throw new BuildException(
          "Destination file is required when dumping execution data",
          getLocation());
    }

    final ExecDumpClient client = new ExecDumpClient() {
      @Override
      protected void onConnecting(final InetAddress address,
          final int port) {
        log(format("Connecting to %s:%s", address,
            Integer.valueOf(port)));
      }

      @Override
      protected void onConnectionFailure(final IOException exception) {
        log(exception.getMessage());
      }
    };
    client.setDump(dump);
    client.setReset(reset);
    client.setRetryCount(retryCount);

    try {
      final ExecFileLoader loader = client.dump(address, port);
      if (dump) {
        log(format("Dumping execution data to %s",
            destfile.getAbsolutePath()));
        loader.save(destfile, append);
      }
View Full Code Here


   */
  private int retryCount;

  @Override
  public void executeMojo() throws MojoExecutionException {
    final ExecDumpClient client = new ExecDumpClient() {
      @Override
      protected void onConnecting(final InetAddress address,
          final int port) {
        getLog().info(
            format("Connecting to %s:%s", address,
                Integer.valueOf(port)));
      }

      @Override
      protected void onConnectionFailure(final IOException exception) {
        getLog().info(exception.getMessage());
      }
    };
    client.setDump(dump);
    client.setReset(reset);
    client.setRetryCount(retryCount);

    try {
      final ExecFileLoader loader = client.dump(address, port);
      if (dump) {
        getLog().info(
            format("Dumping execution data to %s",
                destFile.getAbsolutePath()));
        loader.save(destFile, append);
View Full Code Here

TOP

Related Classes of org.jacoco.core.tools.ExecDumpClient

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.