public abstract class BaseRestSdkMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
apiSpec |
static String |
EXCHANGE_JSON_FILE |
protected File |
outputDir |
protected boolean |
skipValidation |
| Constructor and Description |
|---|
BaseRestSdkMojo() |
| Modifier and Type | Method and Description |
|---|---|
File |
getApiSpec(org.apache.maven.plugin.logging.Log log)
Determines if the apiSpec is an exchange file, if so it will assume there's a main file to properly point out the API spec
relative to the exchange.json file.
|
getLog, getPluginContext, setLog, setPluginContextpublic static final String EXCHANGE_JSON_FILE
@Parameter(property="apiSpec",
required=true)
protected File apiSpec
@Parameter(property="outputDir",
defaultValue=".")
protected File outputDir
@Parameter(property="skipValidation",
defaultValue="false")
protected boolean skipValidation
public File getApiSpec(org.apache.maven.plugin.logging.Log log) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if the exchange.json file cannot be parsedCopyright © 2023. All rights reserved.