Package net.sf.gluebooster.java.booster.essentials.meta

Examples of net.sf.gluebooster.java.booster.essentials.meta.ValueDescription


  }

  @Test
  public void testParsing() throws Exception {
    SourcePreprocessor processor = new SourcePreprocessor();
    ValueDescription valueDescription = processor.getConfiguration()
        .getValueDescription();
    String file1 = new File("x").getCanonicalPath();
    String file2 = new File("y").getCanonicalPath();
    String file3 = new File("z").getCanonicalPath();
    String[] parameters = new String[] {
View Full Code Here


      if (parameters[i] == null)
        parameters[i] = "";
    }

    ObjectDescription configuration = getConfiguration();
    ValueDescription valueDescription = configuration.getValueDescription();

    GnuParser parser = new GnuParser();
    try {
      valueDescription.setValue(parser.parse(getCommandLineOptions(),
        parameters));
    } catch (ParseException ex) {
      throw new ParseException(ex.getLocalizedMessage()
          + "\nOptions were " + Arrays.asList(parameters) + "\n"
          + getOptionsHelp());
View Full Code Here

    ObjectDescription configuration = new ObjectDescription(
        SourcePreprocessor.class.getSimpleName() + " configuration",
        "Configuration of the transform method of the "
            + SourcePreprocessor.class.getSimpleName());
    ValueDescription value = new ValueDescription(Map.class
    /*
     * Map.class has changed to commandline
     */);
    configuration.setValueDescription(value);
    value.addSubdescription(new ObjectDescription(
        IoBoostUtils.PARAMETERNAME_ENCODING,
        "Encoding of generated files", String.class, true));
    value.addSubdescription(new ObjectDescription(PARAMETERNAME_SRC_ROOT,
        "The root directory of the files to process", File.class, true));
    value.addSubdescription(new ObjectDescription(
        PARAMETERNAME_GENERATED_JAVA_ROOT,
        "The root directory of the generated java files", File.class,
        true));
    value.addSubdescription(new ObjectDescription(
        PARAMETERNAME_GENERATED_RESOURCES_ROOT,
        "The root directory of generated resource files", File.class,
        true));

    setConfiguration(configuration);
View Full Code Here

TOP

Related Classes of net.sf.gluebooster.java.booster.essentials.meta.ValueDescription

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.