Examples of GeneratorConfiguration


Examples of com.cedarsoft.codegen.GeneratorConfiguration

      getLog().info( "Running Generator for" );
      for ( File domainClassSourceFile : domainSourceFiles ) {
        getLog().info( "\t" + domainClassSourceFile.getPath() );
      }
      GeneratorConfiguration configuration = new GeneratorConfiguration( domainSourceFiles, getOutputDirectory(), getResourcesOutputDirectory(), getTestOutputDirectory(), getTestResourcesOutputDirectory(), buildClassPath(), printWriter, GeneratorConfiguration.CreationMode.get( createClasses(), createTests() ) );
      createGenerator().run( configuration );
    } catch ( Exception e ) {
      throw new MojoExecutionException( "Generation failed due to: " + e.getMessage(), e );
    } finally {
      printWriter.close();
View Full Code Here

Examples of org.codehaus.mojo.appassembler.model.GeneratorConfiguration

    String[] windowsServiceDependencies = null;

    for (Iterator i = daemon.getGeneratorConfigurations().iterator();
      i.hasNext(); )
    {
      GeneratorConfiguration generatorConfiguration =
        (GeneratorConfiguration) i.next();

      if (generatorConfiguration.getGenerator().equals(NATIVE_GROUPID))
      {
        String winSerDep =
          generatorConfiguration.getConfiguration().getProperty(
            PROPERTY_WIN_DEPENDENCIES);

        if ((winSerDep != null) && (winSerDep.length() > 0))
        {
          windowsServiceDependencies = winSerDep.split(",");
        }
        else
        {
          windowsServiceDependencies = new String[0];
        }

        startup = generatorConfiguration.getConfiguration().getProperty(
          PROPERTY_WIN_STARTUP, startup);

        if (startup.equalsIgnoreCase("manual")
          || startup.equalsIgnoreCase("auto"))
        {
          startup = startup.toLowerCase(Locale.ENGLISH);
        }
        else
        {
          throw new IllegalArgumentException(
            "wrong value for windows.service.startup, possible values are manual or auto");
        }

        configDirectory = generatorConfiguration.getConfiguration().getProperty(
          PROPERTY_CONFIGDIRECTORY);

        String value = generatorConfiguration.getConfiguration().getProperty(
                         PROPERTY_DARWIN_USE_ARCH);

        if ((value != null) && value.equalsIgnoreCase("false"))
        {
          darwinArch = false;
View Full Code Here

Examples of org.stjs.generator.GeneratorConfiguration

      GenerationDirectory targetFolder = new GenerationDirectory(new File(outputDir), null, null);
      File generationFolder = targetFolder.getAbsolutePath();

      GeneratorConfigurationBuilder configBuilder = new GeneratorConfigurationBuilder();
      configBuilder.allowedPackage(builtProjectClassLoader.loadClass(className).getPackage().getName());
      GeneratorConfiguration configuration = configBuilder.build();

      gen.init(builtProjectClassLoader, configuration.getSourceEncoding());
      gen.generateJavascript(builtProjectClassLoader, className, sourceFolder, targetFolder, generationFolder, configuration);
    }
    catch (Exception e) {
      throw Throwables.propagate(e);
    }
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

            config.setQuestionPathUnionLimit(limit);
            config.setSpeculativeQuestionAsking(speculative);

            String experimentDescription = "BLUE_"+qk+"_"+(limit<0?"all":limit)+(speculative?"_SPEC_":"");
            learnerNames.add(experimentDescription);
            experiment.addLearnerEvaluator(new GeneratorConfiguration(config,RPNIEvaluator.class,experimentDescription));
          }     
     
      //experiment.setOutputDir(experimentDescription+"_");
      //experiment.runExperiment(args);
      experiment.robustRunExperiment("resources/testfilelist.txt", "output/Incremental");
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

            config.setQuestionPathUnionLimit(limit);
            config.setSpeculativeQuestionAsking(speculative);

            String experimentDescription = "BLUE_"+qk+"_"+(limit<0?"all":limit)+(speculative?"_SPEC_":"");
            learnerNames.add(experimentDescription);
            experiment.addLearnerEvaluator(new GeneratorConfiguration(config,RPNIEvaluator.class,experimentDescription));
          }     
     
      //experiment.setOutputDir(experimentDescription+"_");
      //experiment.runExperiment(args);
      experiment.robustRunExperiment(GlobalConfiguration.getConfiguration().getProperty(G_PROPERTIES.RESOURCES)+File.separator+"testfilelist.txt", "output/Incremental");
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

            Configuration config= Configuration.getDefaultConfiguration().copy();
            config.setLearnerIdMode(IDMode.POSITIVE_NEGATIVE);           
            config.setQuestionGenerator(qk);
            config.setQuestionPathUnionLimit(limit);
            config.setSpeculativeQuestionAsking(speculative);
            experiment.addLearnerEvaluator(new GeneratorConfiguration(config,IterativeEvaluator.class,experimentDescription));
          }     
     
      //experiment.setOutputDir(experimentDescription+"_");
      experiment.runExperiment(args);
    } catch (Exception e1) {
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

            config.setQuestionPathUnionLimit(limit);
            config.setSpeculativeQuestionAsking(speculative);

            String experimentDescription = "BLUE_"+qk+"_"+(limit<0?"all":limit)+(speculative?"_SPEC_":"");
            learnerNames.add(experimentDescription);
            experiment.addLearnerEvaluator(new GeneratorConfiguration(config,RPNIEvaluator.class,experimentDescription));
          }     
     
      //experiment.setOutputDir(experimentDescription+"_");
      //experiment.runExperiment(args);
      experiment.robustRunExperiment("resources/testfilelist.txt", "output/Incremental");
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

  {
    ExperimentRunner experiment = new ExperimentRunner();
    experiment.setLearnerStages(new int[]{10,20,30,40,50,60,70,80,90});
    Configuration config = Configuration.getDefaultConfiguration();
    config.setLearnerIdMode(IDMode.POSITIVE_NEGATIVE);
    experiment.addLearnerEvaluator(new GeneratorConfiguration(config,RPNIEvaluator.class,"Path_compression"));
  }
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

            Configuration config= Configuration.getDefaultConfiguration().copy();
            config.setLearnerIdMode(IDMode.POSITIVE_NEGATIVE);           
            config.setQuestionGenerator(qk);
            config.setQuestionPathUnionLimit(limit);
            config.setSpeculativeQuestionAsking(speculative);
            experiment.addLearnerEvaluator(new GeneratorConfiguration(config,IterativeEvaluator.class,experimentDescription));
          }     
     
      //experiment.setOutputDir(experimentDescription+"_");
      experiment.runExperiment(args);
    } catch (Exception e1) {
View Full Code Here

Examples of statechum.analysis.learning.experiments.ExperimentRunner.GeneratorConfiguration

  public static void main(String []args)
  {
    try {
      ExperimentRunner experiment = new ExperimentRunner();
      experiment.addLearnerEvaluator(new GeneratorConfiguration(Configuration.getDefaultConfiguration(),WEvaluator.class,"W_learner"));
      experiment.runExperiment(args);
    } catch (Exception e1) {
      e1.printStackTrace();
      return;
    }
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.