Examples of printWrapped()


Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

    */
   @CoberturaIgnore
   public void printVersion() {
      final HelpFormatter formatter = new HelpFormatter();
      PrintWriter pw = new PrintWriter(System.out);
      formatter.printWrapped(pw, HelpFormatter.DEFAULT_WIDTH, JarUtils.readManifestImplementationVersion());
      pw.flush();
   }


   /**
 
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

        pw.format(PROG_TITLE + " %s%n%n" + HEADER + "%n%n", getVersion());
        fmt.setSyntaxPrefix("Usage: ");
        fmt.printHelp(pw, helpWidth, progName + " <option> ... <test-case|test-suite> ...\n",
            null, options, HelpFormatter.DEFAULT_LEFT_PAD, HelpFormatter.DEFAULT_DESC_PAD, null);
        pw.println();
        fmt.printWrapped(pw, helpWidth, FOOTER);
        pw.flush();
        exit(1);
    }

    /**
 
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

        System.out.println(s);
    }
    private void pw(String message, int indent) {
        PrintWriter out = new PrintWriter(System.out);
        HelpFormatter formatter = new HelpFormatter();
        formatter.printWrapped(out, 78, indent, message);
        out.flush();
    }
   
    @SuppressWarnings("unchecked")
    private void collectMatchingClasses(ClassFinder finder, Class annotation, LinkedHashSet<Class<?>> collector) {
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

    */
   @CoberturaIgnore
   public void printVersion() {
      final HelpFormatter formatter = new HelpFormatter();
      PrintWriter pw = new PrintWriter(System.out);
      formatter.printWrapped(pw, HelpFormatter.DEFAULT_WIDTH, JarUtils.readManifestImplementationVersion());
      pw.flush();
   }


   /**
 
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

         //Do nothing
      }

      final HelpFormatter formatter = new HelpFormatter();
      PrintWriter pw = new PrintWriter(System.out);
      formatter.printWrapped(pw, HelpFormatter.DEFAULT_WIDTH, version);
      pw.flush();
   }


   /**
 
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

    */
   @CoberturaIgnore
   public void printVersion() {
      final HelpFormatter formatter = new HelpFormatter();
      PrintWriter pw = new PrintWriter(System.out);
      formatter.printWrapped(pw, HelpFormatter.DEFAULT_WIDTH, JarUtils.readManifestImplementationVersion());
      pw.flush();
   }


   /**
 
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

        } catch (CommandExecutionException ceex) {
            returnCode = 1;
            PrintWriter err = new PrintWriter(System.err);
            HelpFormatter formatter = new HelpFormatter();
            formatter.printWrapped(err, WRAP_WIDTH, ceex.getMessage());
            err.close();
            log.error("Droid Execution Error", ceex);
            throw ceex;

        } catch (CommandLineException clex) {
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

        } catch (CommandLineException clex) {
            returnCode = 1;
            PrintWriter err = new PrintWriter(System.err);
            HelpFormatter formatter = new HelpFormatter();
            formatter.printWrapped(err, WRAP_WIDTH, clex.getMessage());
            err.close();
            log.error("Droid CommandLineException", clex);
            throw clex;
        }
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

     */
    @Override
    public void execute() throws CommandExecutionException {
        HelpFormatter formatter = new HelpFormatter();
        String versionString = ResourceBundle.getBundle("options").getString("version_no");
        formatter.printWrapped(writer, WRAP_WIDTH, versionString);
    }

}
View Full Code Here

Examples of org.apache.commons.cli.HelpFormatter.printWrapped()

     * {@inheritDoc}
     */
    @Override
    public void execute() {
        HelpFormatter formatter = new HelpFormatter();
        formatter.printWrapped(writer, WRAP_WIDTH, getResource(I18N.BAD_OPTIONS));
        formatter.printHelp(writer, WRAP_WIDTH,
                USAGE, getResource(I18N.OPTIONS_HEADER), options, 2, 2, null);
    }
}
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.