This is an automated email from the ASF dual-hosted git repository. zregvart pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push: new 79ee96f Update sobject-pojo-optional.vm 79ee96f is described below commit 79ee96fdee9be984bfc156987bbf14bbcf0df624 Author: Tinus Aamand Norstved <ti...@short.dk> AuthorDate: Fri Aug 10 09:13:05 2018 +0200 Update sobject-pojo-optional.vm Fixed error in setting the $fieldType - the syntax in the template document throws the following error upon running: [ERROR] Failed to execute goal org.apache.camel.maven:camel-salesforce-maven-plugin:2.21.0:generate (executable pom) on project test-project: Execution executable pom of goal org.apache.camel.maven:camel-salesforce-maven-plugin:2.21.0:generate failed: Encountered "(" at /sobject-pojo-optional.vm[line 64, column 8] [ERROR] Was expecting one of: [ERROR] <WHITESPACE> ... [ERROR] <NEWLINE> ... [ERROR] <IDENTIFIER> ... [ERROR] "{" ... This change fixes that. --- .../src/main/resources/sobject-pojo-optional.vm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm index 3caea04..55d9ce1 100644 --- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm +++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/resources/sobject-pojo-optional.vm @@ -61,7 +61,7 @@ import com.fasterxml.jackson.databind.annotation.JsonSerialize; public class ${desc.Name}Optional extends AbstractSObjectBase { #foreach ( $field in $desc.Fields ) -#set ( ($fieldType = $utility.getFieldType($desc, $field)) && ($fieldType) ) +#set ( $fieldType = $utility.getFieldType($desc, $field) ) #if ( $utility.notBaseField($field.Name) ) #set ( $fieldName = $field.Name ) #set ( $isMultiSelectPicklist = $utility.isMultiSelectPicklist($field) )