org.zanata.maven.PutVersionMojo 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.zanata.client.commands.PutVersionCommand;
import org.zanata.client.commands.PutVersionOptions;
/**
* Creates or updates a Zanata project version.
*
* @goal put-version
* @requiresOnline true
* @author Sean Flanigan
*/
public class PutVersionMojo extends ConfigurableMojo implements PutVersionOptions
{
/**
* ID of Zanata project
*
* @parameter expression="${zanata.versionProject}"
* @required
*/
private String versionProject;
/**
* Project version ID
*
* @parameter expression="${zanata.versionSlug}"
* @required
*/
private String versionSlug;
/**
* Project type {utf8properties, properties, gettext, podir, xliff, xml, file}
* Leave blank to inherit default project type from parent project
*
* @parameter expression="${zanata.projectType}"
*
*/
private String projectType;
public PutVersionMojo() throws Exception
{
super();
}
public PutVersionCommand initCommand()
{
return new PutVersionCommand(this);
}
public String getVersionProject()
{
return versionProject;
}
public void setVersionProject(String versionProject)
{
this.versionProject = versionProject;
}
public String getVersionSlug()
{
return versionSlug;
}
public void setVersionSlug(String versionSlug)
{
this.versionSlug = versionSlug;
}
public String getProjectType()
{
return projectType;
}
public void setProjectType(String projectType)
{
this.projectType = projectType;
}
@Override
public String getCommandName()
{
return "put-version";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy