* </ul>
* @throws org.apache.maven.plugin.MojoExecutionException
* if gem installation fails.
*/
protected void installGem(String gemArgs) throws MojoExecutionException {
GemTask gem = new GemTask();
if (gemDirectory != null && gemDirectory.exists()) {
gem.setDir(gemDirectory);
}
gem.setProject(getProject());
gem.setArgs(gemArgs + getProxyArg());
gem.execute();
}