org.jlot.maven.plugin.AddLocaleMojo Maven / Gradle / Ivy
package org.jlot.maven.plugin;
import org.apache.maven.plugins.annotations.Mojo;
import org.apache.maven.plugins.annotations.Parameter;
import org.jlot.client.executor.AddLocaleCommandExecutor;
import org.jlot.client.executor.spi.CommandExecutor;
/**
* Register as a jlot user
*
* All Mojos requires a maven project. Even this mojo. This is because we always
* want to be sure to have a full blown ProjectConfiguration object with baseDir
* and projectName.
*/
@Mojo(name = "addLocale", requiresOnline = true, requiresProject = true, inheritByDefault = false, aggregator = true, requiresDirectInvocation = true)
public class AddLocaleMojo extends AbstractJlotMojo
{
@Parameter
private String locale;
@Override
protected Class extends CommandExecutor> getCommandExecutorClass ( ) throws Exception
{
return AddLocaleCommandExecutor.class;
}
}