Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.saumya.mojo.rails3;
 
goal to run rails rake with the given arguments.

Goal:
rake
RequiresDependencyResolution:
test
public class RakeMojo extends AbstractRailsMojo {

    
arguments for the generate command

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

    
the path to the application to be generated

Parameter:
default-value="${task}"
    protected String task     = null;
    @Override
    public void executeWithGems() throws MojoExecutionException {
        final StringBuilder command = binScript("rake");
        if (this. != null) {
            command.append(" ").append(this.);
        }
        if (this. != null) {
            command.append(" ").append(this.);
        }
        if (this. != null) {
            command.append(" ").append(this.);
        }
        if (this. != null) {
            command.append(" RAILS_ENV=").append(this.);
        }
        execute(command.toString(), false);
    }
New to GrepCode? Check out our FAQ X