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

org.zanata.maven.GlossaryMojo 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 java.io.File;

import org.apache.maven.plugins.annotations.Parameter;
import org.zanata.client.commands.ConfigurableGlossaryOptions;
import org.zanata.client.commands.ConfigurableOptions;

/**
 * Base mojo for glossary commands.
 *
 * @author Alex Eng [email protected]
 */
public abstract class GlossaryMojo
        extends ConfigurableMojo implements ConfigurableGlossaryOptions {
    /**
     * Zanata configuration file.
     */
    @Parameter(property = "zanata.config", defaultValue = "${basedir}/zanata.xml")
    private File config;

    /**
     * Project slug (id) within Zanata server. Required for project glossary.
     */
    @Parameter(property = "zanata.project")
    private String project;

    @Override
    public File getConfig() {
        return config;
    }

    @Override
    public void setConfig(File config) {
        this.config = config;
    }

    @Override
    public String getProject() {
        return project;
    }

    @Override
    public void setProject(String project) {
        this.project = project;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy