Examples of CLArgsParser


Examples of org.apache.avalon.excalibur.cli.CLArgsParser

        }

        final Preferences        preferences = Preferences.userNodeForPackage( Main.class );

        // parse command-line options
        final CLArgsParser optParser   = new CLArgsParser( args, OPTIONS );

        if( optParser.getErrorString() != null ) {
            System.err.println( "ERROR: " + optParser.getErrorString() );
            return;
        }
        final List<CLOption> opts          = optParser.getArguments();
        String               optionBackup  = null;
        String               optionRestore = null;
        String               optionPass    = null;
        String               optionDbaPass = null;
        boolean              doBackup      = false;
View Full Code Here

Examples of org.apache.avalon.excalibur.cli.CLArgsParser

   * @param args
   */
  public static void main(String[] args) {
    init();
 
    CLArgsParser optParser = new CLArgsParser( args, OPTIONS );

        if( optParser.getErrorString() != null ) {
            System.err.println( "ERROR: " + optParser.getErrorString() );
            return;
        }
        List<String> files = new ArrayList<String>();
        String id = null;
       
        List<CLOption> opts = optParser.getArguments();

        for( CLOption option : opts ) {

            switch( option.getId() ) {
              case HELP_OPT:
View Full Code Here

Examples of org.apache.avalon.excalibur.cli.CLArgsParser

    };

    private final static File CSS_FILE = new File("test/src/org/exist/performance/style.css");
   
    public static void main(String[] args) {
        CLArgsParser optParser = new CLArgsParser(args, OPTIONS);
        if (optParser.getErrorString() != null) {
            System.err.println("ERROR: " + optParser.getErrorString());
            return;
        }
        for (String arg : args) {
            System.out.println("ARG: " + arg);
        }
        List<?> opt = optParser.getArguments();
        int size = opt.size();
        CLOption option;
        File outputDir = null;
        boolean createReport = false;
        List<String> groups = new ArrayList<String>();
View Full Code Here

Examples of org.apache.avalon.excalibur.cli.CLArgsParser

                    URI_OPT,
                    "the XML:DB URI of the database instance to be shut down.") };

    @SuppressWarnings("unchecked")
  public static void main(String[] args) {
        final CLArgsParser optParser = new CLArgsParser(args, OPTIONS);
        if (optParser.getErrorString() != null) {
            System.err.println("ERROR: " + optParser.getErrorString());
            return;
        }
        final Properties properties = loadProperties();
        String user = "admin";
        String passwd = "";
        String uri = properties.getProperty("uri", "xmldb:exist://localhost:8080/exist/xmlrpc");
        final List<CLOption> opts = optParser.getArguments();
        for (final CLOption option : opts) {
            switch (option.getId()) {
                case HELP_OPT:
                    System.out.println("Usage: java "
                            + ServerShutdown.class.getName() + " [options]");
View Full Code Here

Examples of org.apache.avalon.excalibur.cli.CLArgsParser


    @SuppressWarnings( "unchecked" )
    public static void main( String[] args )
    {
        final CLArgsParser optParser = new CLArgsParser( args, OPTIONS );

        if( optParser.getErrorString() != null ) {
            System.err.println( "ERROR: " + optParser.getErrorString() );
            return;
        }
        boolean        export       = false;
        boolean        incremental  = false;
        boolean        direct       = false;
        boolean        zip          = false;
        boolean        nocheck      = false;
        boolean        verbose      = false;
        boolean        checkDocs    = false;
        String         exportTarget = "export/";
        String         dbConfig     = null;

        final List<CLOption> opts         = optParser.getArguments();

        for( final CLOption option : opts ) {

            switch( option.getId() ) {
View Full Code Here

Examples of org.apache.avalon.excalibur.cli.CLArgsParser

    private final static int MODE_STATS = 0;
    private final static int MODE_LOCKS = 1;
   
    @SuppressWarnings("unchecked")
  public static void main(String[] args) {
        final CLArgsParser optParser = new CLArgsParser( args, OPTIONS );
        if(optParser.getErrorString() != null) {
            System.err.println( "ERROR: " + optParser.getErrorString());
            return;
        }
        String dbInstance = "exist";
        long waitTime = 0;
        final List<CLOption> opts = optParser.getArguments();
        int mode = -1;
        int port = 1099;
        String address = "localhost";
        boolean displayMem = false;
        boolean displayInstance = false;
View Full Code Here

Examples of org.apache.axis.utils.CLArgsParser

     * checks the command-line arguments and runs the tool.
     * @param args String[] command-line arguments.
     */
    protected void run(String[] args) {
        // Parse the arguments
        CLArgsParser argsParser = new CLArgsParser(args, options);

        // Print parser errors, if any
        if (null != argsParser.getErrorString()) {
            System.err.println(
                    Messages.getMessage("j2werror00", argsParser.getErrorString()));
            printUsage();
        }

        // Get a list of parsed options
        List clOptions = argsParser.getArguments();
        int size = clOptions.size();

        try {
            // Parse the options and configure the emitter as appropriate.
            for (int i = 0; i < size; i++) {
View Full Code Here

Examples of org.apache.axis.utils.CLArgsParser

     * checkes the command-line arguments and runs the tool.
     * @param args String[] command-line arguments.
     */
    protected void run(String[] args) {
        // Parse the arguments
        CLArgsParser argsParser = new CLArgsParser(args, options);

        // Print parser errors, if any
        if (null != argsParser.getErrorString()) {
            System.err.println(
                    JavaUtils.getMessage("error01", argsParser.getErrorString()));
            printUsage();
        }

        // Get a list of parsed options
        List clOptions = argsParser.getArguments();
        int size = clOptions.size();

        try {
            // Parse the options and configure the emitter as appropriate.
            for (int i = 0; i < size; i++) {
View Full Code Here

Examples of org.apache.axis.utils.CLArgsParser

     * checks the command-line arguments and runs the tool.
     * @param args String[] command-line arguments.
     */
    protected void run(String[] args) {
        // Parse the arguments
        CLArgsParser argsParser = new CLArgsParser(args, options);

        // Print parser errors, if any
        if (null != argsParser.getErrorString()) {
            System.err.println(
                    JavaUtils.getMessage("j2werror00", argsParser.getErrorString()));
            printUsage();
        }

        // Get a list of parsed options
        List clOptions = argsParser.getArguments();
        int size = clOptions.size();

        try {
            // Parse the options and configure the emitter as appropriate.
            for (int i = 0; i < size; i++) {
View Full Code Here

Examples of org.apache.axis.utils.CLArgsParser

    *
    * @param args arguments
    */
   public void run( String[] args )
   {
      CLArgsParser argsParser       = processArgs( args );
      String       srcOutPath       = getSourceOutputPath( argsParser );
      String       classesOutPath   = getClassesOutputPath( argsParser );
      String       wsddWsdlLocation = getWsddWsdlLocation( argsParser );

      //add the wsddWsdlLocation to a WsdmPropeties object and place in Emitter for later retrieval
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.