Package org.cruxframework.crux.tools.parameters

Examples of org.cruxframework.crux.tools.parameters.ConsoleParameter


   * Creates the console parameters processor for this program
   * @return
   */
  protected ConsoleParametersProcessor createParametersProcessor()
  {
    ConsoleParameter parameter;
    ConsoleParametersProcessor parametersProcessor = new ConsoleParametersProcessor("serviceMapper");

    parameter = new ConsoleParameter("projectDir", "The crux project folder .", true, true);
    parameter.addParameterOption(new ConsoleParameterOption("dirName", "Folder name"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-help", "Display the usage screen.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-h", "Display the usage screen.", false, true));
    return parametersProcessor; 
 
View Full Code Here


        }
    }

  protected ConsoleParametersProcessor createParametersProcessor()
  {
    ConsoleParameter parameter;
    ConsoleParametersProcessor parametersProcessor = new ConsoleParametersProcessor("JettyDevServer");
   
    parameter = new ConsoleParameter("-appRootDir", "The application web folder.", true, true);
    parameter.addParameterOption(new ConsoleParameterOption("dir", "root dir"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-bindAddress", "The ip address of the code server. Defaults to 127.0.0.1.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("ip", "Ip address"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-port", "The port where the jetty server will run.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("port", "Port"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-pageOutputCharset", "Output charset for generated pages.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("dir", "Work dir"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-addDevelopmentComponents", "If informed, Server will add all components required for development on application context.", false, false);
    parametersProcessor.addSupportedParameter(parameter);

    parametersProcessor.addSupportedParameter(new ConsoleParameter("-help", "Display the usage screen.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-h", "Display the usage screen.", false, true));
    return parametersProcessor; 
 
View Full Code Here

   *
   * @return
   */
  protected static ConsoleParametersProcessor createParametersProcessor()
  {
    ConsoleParameter parameter;
    ConsoleParametersProcessor parametersProcessor = new ConsoleParametersProcessor("CrawlingTool");

    parameter = new ConsoleParameter("outputDir", "The folder where the snapshots will be created.", true, true);
    parameter.addParameterOption(new ConsoleParameterOption("dirName", "Folder name"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("applicationBaseURL", "Web application base URL.", true, true);
    parameter.addParameterOption(new ConsoleParameterOption("baseURL", "web application root URLĖ›"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("javascriptTime", "Time to wait for page rendering before takes the snapshot.", true, true);
    parameter.addParameterOption(new ConsoleParameterOption("time", "Time in miliseconds"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("urls", "A file containing the application urls for snapshot generation.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("fileName", "File name"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("stopOnErrors", "Inform if the process must stop if an error occurs.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("stop", "True if the process must stop."));
    parametersProcessor.addSupportedParameter(parameter);

    parametersProcessor.addSupportedParameter(new ConsoleParameter("-help", "Display the usage screen.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-h", "Display the usage screen.", false, true));
    return parametersProcessor; 
  }
View Full Code Here

        }
    }

  protected ConsoleParametersProcessor createParametersProcessor()
  {
    ConsoleParameter parameter;
    ConsoleParametersProcessor parametersProcessor = new ConsoleParametersProcessor("CodeServer");

    parameter = new ConsoleParameter("-moduleName", "The name of the module to be compiled.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("name", "Module name"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("-sourceDir", "The application source folder.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("dir", "Source dir"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-bindAddress", "The ip address of the code server. Defaults to 127.0.0.1.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("ip", "Ip address"));
    parametersProcessor.addSupportedParameter(parameter);

    parametersProcessor.addSupportedParameter(new ConsoleParameter("-noprecompile", "If informed, code server will not pre compile the source.", false, true));

    parametersProcessor.addSupportedParameter(new ConsoleParameter("-startHotDeploymentScanner", "If informed, a hotdeployment scanner will be started to automatically recompile the module when changes are made on the project.", false, true));
   
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-startJetty", "If informed, starts the default application server (Jetty).", false, true));
   
    parameter = new ConsoleParameter("-userAgent", "The userAgent used by hotdeployment scanner to recompile the project.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("agent", "user agent"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("-locale", "The locale used by hotdeployment scanner to recompile the project.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("locale", "locale"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-port", "The port where the code server will run.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("port", "Port"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-notificationServerPort", "The port where the compile notification server will run.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("port", "Port"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-workDir", "The root of the directory tree where the code server will write compiler output. If not supplied, a temporary directory will be used.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("dir", "Work dir"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-webDir", "The directory to be updated by code server compiler. If provided, after each code server compilation, this folder will be updated.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("dir", "Web dir"));
    parametersProcessor.addSupportedParameter(parameter);

    parametersProcessor.addSupportedParameter(new ConsoleParameter("-help", "Display the usage screen.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-h", "Display the usage screen.", false, true));
    return parametersProcessor; 
 
View Full Code Here

  /**
   * @return
   */
  protected ConsoleParametersProcessor createParametersProcessor()
  {
    ConsoleParameter parameter;
    ConsoleParametersProcessor parametersProcessor = new ConsoleParametersProcessor(getProgramName());

    parameter = new ConsoleParameter("outputDir", "The folder where the compiled files will be created.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("dirName", "Folder name"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("sourceDir", "The project source folder.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("dirName", "Folder name"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("webDir", "The application web root folder.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("dirName", "Folder name"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("classpathDir", "The classpath folder.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("classpathDir", "Classpath dir"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("resourcesDir", "The resources folder.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("resourcesDir", "Resources dir"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("pagesOutputDir", "The folder where the generated page files will be created.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("output", "Folder name"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("scanAllowedPackages",
        "A list of packages (separated by commas) that will be scanned to find Controllers, Modules and CrossDevices", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("allowed", "Allowed packages"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter =new ConsoleParameter("scanIgnoredPackages",
        "A list of packages (separated by commas) that will not be scanned to find Controllers, Modules and CrossDevices", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("ignored", "Ignored packages"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("outputCharset", "Charset used on output files", true, true);
    parameter.addParameterOption(new ConsoleParameterOption("charset", "Output charset"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("pageFileExtension", "Extension of the pages generated", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("fileExtension", "File Extension"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-indentPages", "If true, the output pages will be indented.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-keepPagesGeneratedFiles",
        "If false, the output pages will be removed after compilation.", false, true));

    parametersProcessor.addSupportedParameter(new ConsoleParameter("-doNotPreCompileJavaSource", "Makes compiler ignore java pre compilation.", false, true));

    parameter = new ConsoleParameter("-gen", "Specify the folder where the GWT generators will output generated classes.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("genFolder", "Folder Name"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("-style", "Specify the output style for GWT generated code.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("style", "GWT output Style"));
    parametersProcessor.addSupportedParameter(parameter);
   
    parameter = new ConsoleParameter("-extra", "The directory into which extra files, not intended for deployment, will be written.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("extraFolder", "Folder Name"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-localWorkers", "Number of threads used to compile the permutations in parallel.", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("numberOfWorkers", "Number of Workers"));
    parametersProcessor.addSupportedParameter(parameter);

    parameter = new ConsoleParameter("-logLevel", "Level of Logging", false, true);
    parameter.addParameterOption(new ConsoleParameterOption("level", "Level"));
    parametersProcessor.addSupportedParameter(parameter);

    parametersProcessor.addSupportedParameter(new ConsoleParameter("-validateOnly", " Validate all source code, but do not compile.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-compileReport", "Create a compile report that tells the Story of Your Compile.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-draftCompile", "Disable compiler optimizations and run faster.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-strict", "Only succeed if no input files have errors.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-XenableClosureCompiler", "Enable JS size optimizations.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-XfragmentCount", "Enable automatic fragment merging.", false, false));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-help", "Display the usage screen.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-h", "Display the usage screen.", false, true));
    return parametersProcessor; 
  }
View Full Code Here

   * @return
   */
  private static ConsoleParametersProcessor createParametersProcessor()
  {
    ConsoleParametersProcessor parametersProcessor = new ConsoleParametersProcessor("SchemaGenerator");
    parametersProcessor.addSupportedParameter(new ConsoleParameter("projectBaseDir", "The project folder."));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("outputDir", "The folder where the files will be created."));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("webDir", "The project web root folder.", false, false));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-help", "Display the usage screen.", false, true));
    parametersProcessor.addSupportedParameter(new ConsoleParameter("-h", "Display the usage screen.", false, true));
    return parametersProcessor;
 
View Full Code Here

TOP

Related Classes of org.cruxframework.crux.tools.parameters.ConsoleParameter

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.