Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.byclosure.maven.plugins.phonegap;
 
 
 import java.io.File;
 import java.util.Map;

Goal:
build
RequiresProject:
true
public class BuildMojo extends AbstractPhoneGapMojo {

Parameter:
default-value="false" expression="${phonegap.verbose}"
	protected boolean verbose;

Parameter:
default-value="false" expression="${phonegap.release}"
	protected boolean release;
	protected void executeComand() throws IOException {
		final String phonegapBinPath;
		if ( != null) {
			phonegapBinPath = new File("phonegap").getPath();
else {
			phonegapBinPath = "phonegap";
		}
		final StringBuilder sb = new StringBuilder();
		sb.append(phonegapBinPath);
		sb.append(" build");
		if () {
			sb.append(" --verbose");
		}
		if () {
			sb.append(" --release");
		}
		cmd.addArgument(sb.toString() , false);
		final Map<StringStringenv = getEnv();
		final File phonegapDir = new File();
		executeCommandLine(cmdenvphonegapDir);
	}
New to GrepCode? Check out our FAQ X