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
    protected void executeWithGems() throws MojoExecutionException {
        final StringBuilder command = railsScript("generate");
        if (this. != null) {
            command.append(" ").append(this.);
        }
        if (this. != null) {
            command.append(" ").append(this.);
        }
        if (this. != null) {
            command.append(" ").append(this.);
        }
        execute(command.toString(), false);
    }
New to GrepCode? Check out our FAQ X