com.googlecode.crowdin.maven
Class AbstractCrowdinMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by com.googlecode.crowdin.maven.AbstractCrowdinMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo
Direct Known Subclasses:
ExportCrowdinMojo, PullCrowdinMojo, PushCrowdinMojo

public abstract class AbstractCrowdinMojo
extends org.apache.maven.plugin.AbstractMojo


Field Summary
protected  org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo
           
protected  org.apache.commons.httpclient.HttpClient client
           
protected  String crowdinServerId
          Server id in settings.xml. username is project identifier, password is API key
protected  File messagesInputDirectory
          The directory where the messages can be fund.
protected  File messagesOutputDirectory
          The directory where the messages can be fund.
protected  org.apache.maven.project.MavenProject project
          The current Maven project
protected  org.apache.maven.project.MavenProjectHelper projectHelper
          Maven ProjectHelper.
protected static org.jdom.input.SAXBuilder saxBuilder
           
protected  org.apache.maven.artifact.manager.WagonManager wagonManager
          The Maven Wagon manager to use when obtaining server authentication details.
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractCrowdinMojo()
           
 
Method Summary
protected  boolean crowdinContainsFile(org.jdom.Element files, String fileName, boolean folder)
           
protected  org.jdom.Element crowdinGetFolder(List<org.jdom.Element> items, String fileName)
           
protected  boolean crowdinIsFolder(org.jdom.Element item)
           
protected  org.jdom.Document crowdinRequestAPI(String method, Map<String,String> parameters, Map<String,File> files, boolean shallSuccess)
           
 void execute()
           
protected  String getMavenId(org.apache.maven.artifact.Artifact artifact)
           
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

saxBuilder

protected static final org.jdom.input.SAXBuilder saxBuilder

project

protected org.apache.maven.project.MavenProject project
The current Maven project


wagonManager

protected org.apache.maven.artifact.manager.WagonManager wagonManager
The Maven Wagon manager to use when obtaining server authentication details.


projectHelper

protected org.apache.maven.project.MavenProjectHelper projectHelper
Maven ProjectHelper.


crowdinServerId

protected String crowdinServerId
Server id in settings.xml. username is project identifier, password is API key


messagesInputDirectory

protected File messagesInputDirectory
The directory where the messages can be fund.


messagesOutputDirectory

protected File messagesOutputDirectory
The directory where the messages can be fund.


client

protected org.apache.commons.httpclient.HttpClient client

authenticationInfo

protected org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo
Constructor Detail

AbstractCrowdinMojo

public AbstractCrowdinMojo()
Method Detail

execute

public void execute()
             throws org.apache.maven.plugin.MojoExecutionException,
                    org.apache.maven.plugin.MojoFailureException
Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException

crowdinContainsFile

protected boolean crowdinContainsFile(org.jdom.Element files,
                                      String fileName,
                                      boolean folder)

crowdinGetFolder

protected org.jdom.Element crowdinGetFolder(List<org.jdom.Element> items,
                                            String fileName)

crowdinIsFolder

protected boolean crowdinIsFolder(org.jdom.Element item)

crowdinRequestAPI

protected org.jdom.Document crowdinRequestAPI(String method,
                                              Map<String,String> parameters,
                                              Map<String,File> files,
                                              boolean shallSuccess)
                                       throws org.apache.maven.plugin.MojoExecutionException
Throws:
org.apache.maven.plugin.MojoExecutionException

getMavenId

protected String getMavenId(org.apache.maven.artifact.Artifact artifact)


Copyright © 2012. All Rights Reserved.