org.zanata.maven.InitMojo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zanata-maven-plugin Show documentation
Show all versions of zanata-maven-plugin Show documentation
Zanata client for managing projects, publishing
source text and retrieving translations.
package org.zanata.maven;
import org.apache.maven.plugins.annotations.Mojo;
import org.zanata.client.commands.ConfigurableCommand;
import org.zanata.client.commands.init.InitCommand;
import org.zanata.client.commands.init.InitOptions;
/**
* Initialize Zanata project configuration.
* @author Patrick Huang
* [email protected]
*/
@Mojo(name = "init", requiresOnline = true, requiresProject = false)
public class InitMojo extends ConfigurableProjectMojo implements InitOptions {
@Override
public ConfigurableCommand initCommand() {
return new InitCommand(this);
}
@Override
public String getCommandName() {
return "init";
}
}