Repository: camel
Updated Branches:
  refs/heads/camel-2.17.x 33048a86a -> cbe8c3268
  refs/heads/master 6c36d9000 -> ed6056171


Update CamelSalesforceMojo.java

the current pattern does not allow valid package names like "abc.xyz_123"
the new pattern is based on the excellent discussion at 
http://stackoverflow.com/questions/5205339/regular-expression-matching-fully-qualified-class-names

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

Branch: refs/heads/master
Commit: ed6056171a971ad7f235adb6988cb2ef870970fb
Parents: 239a4fc
Author: ssatguru <[email protected]>
Authored: Thu Jun 16 13:20:49 2016 -0500
Committer: Claus Ibsen <[email protected]>
Committed: Tue Jun 21 08:44:22 2016 +0200

----------------------------------------------------------------------
 .../src/main/java/org/apache/camel/maven/CamelSalesforceMojo.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/ed605617/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 350a815..287ca71 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
@@ -88,7 +88,7 @@ public class CamelSalesforceMojo extends AbstractMojo {
     protected static final int DEFAULT_TIMEOUT = 60000;
 
     private static final String JAVA_EXT = ".java";
-    private static final String PACKAGE_NAME_PATTERN = 
"^[a-z]+(\\.[a-z][a-z0-9]*)*$";
+    private static final String PACKAGE_NAME_PATTERN = 
"(\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*\\.)+\\p{javaJavaIdentifierStart}\\p{javaJavaIdentifierPart}*";
 
     private static final String SOBJECT_POJO_VM = "/sobject-pojo.vm";
     private static final String SOBJECT_POJO_OPTIONAL_VM = 
"/sobject-pojo-optional.vm";

Reply via email to