All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.zanata.maven.PutVersionMojo Maven / Gradle / Ivy

Go to download

Zanata client for managing projects, publishing source text and retrieving translations.

There is a newer version: 4.6.2
Show newest version
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