@Mojo(name="generate",
defaultPhase=GENERATE_SOURCES)
public class CamelSalesforceMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
CamelSalesforceMojo.GeneratorUtility |
| Modifier and Type | Field and Description |
|---|---|
protected String |
clientId
Salesforce client id
|
protected String |
clientSecret
Salesforce client secret
|
protected String |
excludePattern
Exclude Salesforce SObjects that match pattern
|
protected String[] |
excludes
Do NOT generate POJOs for these Salesforce SObjects
|
protected String |
includePattern
Include Salesforce SObjects that match pattern
|
protected String[] |
includes
Names of Salesforce SObject for which POJOs must be generated
|
protected File |
outputDirectory
Location of the file.
|
protected String |
packageName
Java package name for generated POJOs
|
protected String |
password
Salesforce password
|
protected String |
userName
Salesforce user name
|
protected String |
version
Salesforce version
|
| Constructor and Description |
|---|
CamelSalesforceMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Execute the mojo to generate SObject POJOs
|
@Parameter(property="camelSalesforce.clientId",
required=true)
protected String clientId
@Parameter(property="camelSalesforce.clientSecret",
required=true)
protected String clientSecret
@Parameter(property="camelSalesforce.userName",
required=true)
protected String userName
@Parameter(property="camelSalesforce.password",
required=true)
protected String password
@Parameter(property="camelSalesforce.version",
defaultValue="27.0")
protected String version
@Parameter(property="camelSalesforce.outputDirectory",
defaultValue="${project.build.directory}/generated-sources/camel-salesforce")
protected File outputDirectory
@Parameter protected String[] includes
@Parameter protected String[] excludes
@Parameter(property="camelSalesforce.includePattern") protected String includePattern
@Parameter(property="camelSalesforce.excludePattern") protected String excludePattern
@Parameter(property="camelSalesforce.packageName",
defaultValue="org.apache.camel.salesforce.dto")
protected String packageName
Apache Camel