Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
rhbz1110627 - add init mojo as maven goal
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Huang committed Aug 21, 2014
1 parent 531f2cc commit 11c2d46
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions zanata-maven-plugin/src/main/java/org/zanata/maven/InitMojo.java
@@ -0,0 +1,24 @@
package org.zanata.maven;

import org.zanata.client.commands.ConfigurableCommand;
import org.zanata.client.commands.init.InitCommand;
import org.zanata.client.commands.init.InitOptions;

/**
* Initialize Zanata project configuration.
*
* @goal init
* @author Patrick Huang
* <a href="mailto:pahuang@redhat.com">pahuang@redhat.com</a>
*/
public class InitMojo extends ConfigurableProjectMojo<InitOptions> implements InitOptions {
@Override
public ConfigurableCommand<InitOptions> initCommand() {
return new InitCommand(this);
}

@Override
public String getCommandName() {
return "init";
}
}

0 comments on commit 11c2d46

Please sign in to comment.