protected Outline generateCode(final Model model) throws MojoExecutionException { if (getVerbose()) { getLog().info("Compiling input schema(s)..."); } final Outline outline = model.generateCode(model.options, new LoggingErrorReceiver("Error while generating code.", getLog(), getVerbose())); if (outline == null) { throw new MojoExecutionException( "Failed to compile input schema(s)! Error messages should have been provided."); } else { return outline; } }
protected Outline generateCode(final Model model) throws MojoExecutionException { if (getVerbose()) { getLog().info("Compiling input schema(s)..."); } final Outline outline = model.generateCode(model.options, new LoggingErrorReceiver("Error while generating code.", getLog(), getVerbose())); if (outline == null) { throw new MojoExecutionException( "Failed to compile input schema(s)! Error messages should have been provided."); } else { return outline; } }
protected Outline generateCode(final Model model) throws MojoExecutionException { if (getVerbose()) { getLog().info("Compiling input schema(s)..."); } final Outline outline = model.generateCode(model.options, new LoggingErrorReceiver("Error while generating code.", getLog(), getVerbose())); if (outline == null) { throw new MojoExecutionException( "Failed to compile input schema(s)! Error messages should have been provided."); } else { return outline; } }
protected Outline generateCode(final Model model) throws MojoExecutionException { if (getVerbose()) { getLog().info("Compiling input schema(s)..."); } final Outline outline = model.generateCode(model.options, new LoggingErrorReceiver("Error while generating code.", getLog(), getVerbose())); if (outline == null) { throw new MojoExecutionException( "Failed to compile input schema(s)! Error messages should have been provided."); } else { return outline; } }
protected Outline generateCode(final Model model) throws MojoExecutionException { if (getVerbose()) { getLog().info("Compiling input schema(s)..."); } final Outline outline = model.generateCode(model.options, new LoggingErrorReceiver("Error while generating code.", getLog(), getVerbose())); if (outline == null) { throw new MojoExecutionException( "Failed to compile input schema(s)! Error messages should have been provided."); } else { return outline; } }
protected Outline generateCode(final Model model) throws MojoExecutionException { if (getVerbose()) { getLog().info("Compiling input schema(s)..."); } final Outline outline = model.generateCode(model.options, new LoggingErrorReceiver("Error while generating code.", getLog(), getVerbose())); if (outline == null) { throw new MojoExecutionException( "Failed to compile input schema(s)! Error messages should have been provided."); } else { return outline; } }
protected Outline generateCode(final Model model) throws MojoExecutionException { if (getVerbose()) { getLog().info("Compiling input schema(s)..."); } final Outline outline = model.generateCode(model.options, new LoggingErrorReceiver("Error while generating code.", getLog(), getVerbose())); if (outline == null) { throw new MojoExecutionException( "Failed to compile input schema(s)! Error messages should have been provided."); } else { return outline; } }
try { Model model = ModelLoader.load(opt, codeModel, receiver); Outline outline = model.generateCode(opt, receiver); for (ClassOutline co : outline.getClasses()) { JDefinedClass cl = co.implClass;
Outline outline = model.generateCode(opt, receiver); for (ClassOutline co : outline.getClasses()) { JDefinedClass cl = co.implClass;
Outline outline = model.generateCode(opt, receiver); for (ClassOutline co : outline.getClasses()) { JDefinedClass cl = co.implClass;
private void execute(String configuration) throws Exception { Options options = createOptions(configuration); Model model = ModelLoader.load(options, new JCodeModel(), ERROR_RECEIVER); Outline outline = model.generateCode(model.options, ERROR_RECEIVER); writeCode(outline); }
errorReceiver ); model.generateCode( xjcOpts, errorReceiver );
if (model.generateCode(options, errorReceiver) == null) { throw new Cob2JaxbGeneratorException( "JAXB-XJC failed to compile a schema");
if (model.generateCode(options, errorReceiver) == null) throw new BuildException("failed to compile a schema");
if (model.generateCode(options, errorReceiver) == null) throw new BuildException("failed to compile a schema");
if (model.generateCode(options, errorReceiver) == null) throw new BuildException("failed to compile a schema");
if(model.generateCode(options,errorReceiver)==null) throw new BuildException("failed to compile a schema");
if(model.generateCode(options,errorReceiver)==null) throw new BuildException("failed to compile a schema");
Outline context = model.generateCode(opts,this); if(context==null) return null;
Outline context = model.generateCode(opts,this); if(context==null) return null;