@Mojo(name="pull",
defaultPhase=NONE)
public class PullCrowdinMojo
extends AbstractCrowdinMojo
FetchCrowdinMojo and DeployCrowdinMojo in that
order. This effectively builds and downloads the latest translations from
Crowdin and then deploys them to the local project.| Modifier and Type | Field and Description |
|---|---|
protected Integer |
buildTimeout
The number of seconds to wait for builds to complete
|
protected boolean |
exportApprovedOnly
Only texts that are both translated and approved will be included in the
exported translation files.
|
protected boolean |
skipUntranslatedFiles
Only translated files will be included in the exported translation files.
|
protected boolean |
skipUntranslatedStrings
Only translated strings will be included in the exported translation
files.
|
client, comment, crowdinServerId, disableBranches, downloadFolder, downloadFolderPath, gitBaseFolder, httpTimeout, lineSeparator, mavenSession, project, projectId, rootBranch, server, statusFiles, translationFileSets| Constructor and Description |
|---|
PullCrowdinMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected void |
initializeServer()
Initializes
AbstractCrowdinMojo.server by retrieving the appropriate Server
instance from the Maven settings and validating its settings. |
cleanDownloadFolder, createClient, getBranch, getBranch, getPluginVersion, initializeParameters, setClient, setComment, setCrowdinServerId, setDisableBranches, setDownloadFolder, setDownloadFolder, setGitBaseFolder, setHTTPTimeout, setLineSeparator, setProject, setProjectId, setRootBranch, setServer, setStatusFiles, setTranslationFileSets@Parameter(property="skipUntranslatedStrings",
defaultValue="true")
protected boolean skipUntranslatedStrings
Note: This parameter cannot be true if
skipUntranslatedFiles is true.
@Parameter(property="skipUntranslatedFiles",
defaultValue="false")
protected boolean skipUntranslatedFiles
Note: This parameter cannot be true if
skipUntranslatedStrings is true.
@Parameter(property="exportApprovedOnly",
defaultValue="false")
protected boolean exportApprovedOnly
@Parameter(property="buildTimeouot",
defaultValue="60")
protected Integer buildTimeout
public void execute()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void initializeServer()
throws org.apache.maven.plugin.MojoExecutionException
AbstractCrowdinMojoAbstractCrowdinMojo.server by retrieving the appropriate Server
instance from the Maven settings and validating its settings.initializeServer in class AbstractCrowdinMojoorg.apache.maven.plugin.MojoExecutionException - If a required parameter is missing or the
specified crowdinServerId isn't configured.Copyright © 2024. All rights reserved.