org.axway.grapes.maven
Class GrapesMavenPlugin

java.lang.Object
  extended by org.axway.grapes.maven.GrapesMavenPlugin

public class GrapesMavenPlugin
extends Object

Grapes Maven plugin

This class acts as a container for methods used throughout the plugin.

Author:
jdcoffre

Field Summary
static String MODULE_JSON_FILE_NAME
           
static String TMP_MODULE_FILE_SUFFIX
           
 
Method Summary
static File getGrapesPluginWorkingFolder(org.apache.maven.project.MavenProject rootProject)
          Returns Grapes working folder of a project
static org.axway.grapes.commons.datamodel.Module getModule(File folder, String moduleJsonFileName)
          Return a module from Json file in a targeted folder
static String getSubModuleFileName(String subModuleName)
          Returns the temp file names where the information of the sub-module is stored
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MODULE_JSON_FILE_NAME

public static final String MODULE_JSON_FILE_NAME
See Also:
Constant Field Values

TMP_MODULE_FILE_SUFFIX

public static final String TMP_MODULE_FILE_SUFFIX
See Also:
Constant Field Values
Method Detail

getGrapesPluginWorkingFolder

public static File getGrapesPluginWorkingFolder(org.apache.maven.project.MavenProject rootProject)
Returns Grapes working folder of a project

Parameters:
rootProject -
Returns:

getSubModuleFileName

public static String getSubModuleFileName(String subModuleName)
Returns the temp file names where the information of the sub-module is stored

Parameters:
subModuleName - String
Returns:
String

getModule

public static org.axway.grapes.commons.datamodel.Module getModule(File folder,
                                                                  String moduleJsonFileName)
                                                           throws org.apache.maven.plugin.MojoExecutionException,
                                                                  IOException
Return a module from Json file in a targeted folder

Parameters:
folder - File
moduleJsonFileName - String
Returns:
Module
Throws:
org.apache.maven.plugin.MojoExecutionException
IOException


Copyright © 2014. All rights reserved.