camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dhira...@apache.org
Subject [09/17] camel git commit: CAMEL-8267: Allow to configure Salesforce URL
Date Fri, 20 Mar 2015 21:30:40 GMT
CAMEL-8267: Allow to configure Salesforce URL


Project: http://git-wip-us.apache.org/repos/asf/camel/repo
Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/33b20d59
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/33b20d59
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/33b20d59

Branch: refs/heads/camel-2.12.x
Commit: 33b20d59c504ab1ead9c7e69678abb3870037288
Parents: cbbc8f0
Author: Cristiano Nicolai <cristiano.nicolai@gmail.com>
Authored: Fri Jan 23 12:43:45 2015 +1000
Committer: Dhiraj Bokde <dhirajsb@yahoo.com>
Committed: Fri Mar 20 14:24:44 2015 -0700

----------------------------------------------------------------------
 .../java/org/apache/camel/maven/CamelSalesforceMojo.java    | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/33b20d59/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/java/org/apache/camel/maven/CamelSalesforceMojo.java
----------------------------------------------------------------------
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/java/org/apache/camel/maven/CamelSalesforceMojo.java
b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/java/org/apache/camel/maven/CamelSalesforceMojo.java
index fdb0f8e..dab9c70 100644
--- a/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/java/org/apache/camel/maven/CamelSalesforceMojo.java
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/main/java/org/apache/camel/maven/CamelSalesforceMojo.java
@@ -114,6 +114,12 @@ public class CamelSalesforceMojo extends AbstractMojo {
     protected File outputDirectory;
 
     /**
+     * Salesforce URL.
+     */
+    @Parameter(property = "camelSalesforce.loginUrl", defaultValue = SalesforceLoginConfig.DEFAULT_LOGIN_URL)
+    protected String loginUrl;
+
+    /**
      * Names of Salesforce SObject for which POJOs must be generated
      */
     @Parameter
@@ -178,8 +184,7 @@ public class CamelSalesforceMojo extends AbstractMojo {
         }
 
         final SalesforceSession session = new SalesforceSession(httpClient,
-                new SalesforceLoginConfig(SalesforceLoginConfig.DEFAULT_LOGIN_URL,
-                        clientId, clientSecret, userName, password, false));
+                new SalesforceLoginConfig(loginUrl, clientId, clientSecret, userName, password,
false));
 
         getLog().info("Salesforce login...");
         try {


Mime
View raw message