org.mule.devkit.maven
Class GitHubDocMojo

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.mule.devkit.maven.AbstractGitHubMojo
          extended by org.mule.devkit.maven.GitHubDocMojo
All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

@Mojo(name="github-upload-doc")
public class GitHubDocMojo
extends AbstractGitHubMojo

Based on Maven plugin by Kevin Sawicki (kevin@github.com)


Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
GitHubDocMojo()
           
 
Method Summary
 void execute()
           
static String[] getMatchingPaths(String[] includes, String[] excludes, String baseDir)
          Get matching paths found in given base directory
static String[] removeEmpties(String... values)
          Create an array with only the non-null and non-empty values
 
Methods inherited from class org.mule.devkit.maven.AbstractGitHubMojo
createClient, debug, debug, error, error, getRepository, info, info, isDebug, isInfo, warn, warn
 
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
 

Constructor Detail

GitHubDocMojo

public GitHubDocMojo()
Method Detail

execute

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

removeEmpties

public static String[] removeEmpties(String... values)
Create an array with only the non-null and non-empty values

Parameters:
values -
Returns:
non-null but possibly empty array of non-null/non-empty strings

getMatchingPaths

public static String[] getMatchingPaths(String[] includes,
                                        String[] excludes,
                                        String baseDir)
Get matching paths found in given base directory

Parameters:
includes -
excludes -
baseDir -
Returns:
non-null but possibly empty array of string paths relative to the base directory


Copyright © 2010–2015 MuleSoft, Inc.. All rights reserved.