[camel] branch camel-2.21.x updated: CAMEL-12725: Update sobject-pojo-optional.vm

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[camel] branch camel-2.21.x updated: CAMEL-12725: Update sobject-pojo-optional.vm

zregvart
This is an automated email from the ASF dual-hosted git repository.

zregvart pushed a commit to branch camel-2.21.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-2.21.x by this push:
     new 37810ca  CAMEL-12725: Update sobject-pojo-optional.vm
37810ca is described below

commit 37810ca83d8fb7322cd5a907951fc61f9f6e1865
Author: Tinus Aamand Norstved <[hidden email]>
AuthorDate: Fri Aug 10 09:13:05 2018 +0200

    CAMEL-12725: 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.
   
    (cherry picked from commit 79ee96fdee9be984bfc156987bbf14bbcf0df624)
---
 .../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) )