public class PushCrowdinMojo extends AbstractCrowdinMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
confirm
This parameter must be
true for push to execute. |
protected int |
escapeQuotes
The default "escape_quotes" parameter to use.
|
protected String |
projectName
This parameter must match the POM name of the current project in is used
to prevent pushing from the wrong project.
|
protected UpdateOption |
updateOption
The default update behavior for updates string when pushing.
|
client, comment, crowdinServerId, downloadFolder, downloadFolderPath, lineSeparator, mavenSession, project, rootBranch, server, statusFiles, translationFileSets| Constructor and Description |
|---|
PushCrowdinMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected int |
getEscapeQuotes(TranslationFileSet fileSet)
Gets the effective "
escape_quotes" value from either the
TranslationFileSet or the default parameter. |
protected UpdateOption |
getUpdateOption(TranslationFileSet fileSet)
Gets the effective "
update_option" value from either the
TranslationFileSet or the default parameter. |
protected void |
initializeParameters()
Initializes the
Mojo parameters since they are set via reflection
and can't be handled in the constructor. |
cleanDownloadFolder, createClient, getBranch, getBranch, initializeServer, isBlank, setClient, setComment, setCrowdinServerId, setDownloadFolder, setDownloadFolder, setLineSeparator, setProject, setRootBranch, setServer, setStatusFiles, setTranslationFileSetsprotected String projectName
protected String confirm
true for push to execute. If this isn't
specified in the POM file, -Dconfirm=true is required as a
command line argument for the push to execute.protected int escapeQuotes
{0})protected UpdateOption updateOption
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected int getEscapeQuotes(TranslationFileSet fileSet)
escape_quotes" value from either the
TranslationFileSet or the default parameter.fileSet - the TranslationFileSet to use.escape_quotes" value.protected UpdateOption getUpdateOption(TranslationFileSet fileSet)
update_option" value from either the
TranslationFileSet or the default parameter.fileSet - the TranslationFileSet to use.update_option" value.protected void initializeParameters()
throws org.apache.maven.plugin.MojoExecutionException
AbstractCrowdinMojoMojo parameters since they are set via reflection
and can't be handled in the constructor.initializeParameters in class AbstractCrowdinMojoorg.apache.maven.plugin.MojoExecutionException - If an error occurs during initialization.Copyright © 2018. All rights reserved.