Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.saumya.mojo.rails3;
 
 
 
goal to run a generator

Goal:
generate
RequiresDependencyResolution:
test
public class GenerateMojo extends AbstractRailsMojo {

    
arguments for the generate command

Parameter:
default-value="${generate.args}"
    protected String generateArgs = null;

    
the name of the generator

Parameter:
default-value="${generator}"
    protected String generator    = null;
    @Override
    public void execute() throws MojoExecutionExceptionMojoFailureException {
        getLog().warn"DEPRECATED: just do not use that anymore. use gem:exec or bundler:exec instead" );
        // make sure the whole things run in the same process
        this. = false;
        super.execute();
    }
    @Override
    protected void executeRails() throws MojoExecutionException,
            ScriptExceptionIOExceptionGemExceptionRailsException {
        this..generate(this.,
                              this.,
                              launchDirectory(),
                              this.,
                              joinArgs(this.this.));
    }
New to GrepCode? Check out our FAQ X