camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bvah...@apache.org
Subject svn commit: r1443749 - /camel/trunk/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageMojo.java
Date Thu, 07 Feb 2013 22:00:05 GMT
Author: bvahdat
Date: Thu Feb  7 22:00:05 2013
New Revision: 1443749

URL: http://svn.apache.org/r1443749
Log:
Polished the PackageMojo implementation a bit. 

Modified:
    camel/trunk/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageMojo.java

Modified: camel/trunk/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageMojo.java
URL: http://svn.apache.org/viewvc/camel/trunk/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageMojo.java?rev=1443749&r1=1443748&r2=1443749&view=diff
==============================================================================
--- camel/trunk/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageMojo.java
(original)
+++ camel/trunk/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/PackageMojo.java
Thu Feb  7 22:00:05 2013
@@ -68,7 +68,7 @@ public class PackageMojo extends Abstrac
             File[] files = componentMetaDir.listFiles();
             if (files != null) {
                 Properties properties = new Properties();
-                StringBuffer buffer = new StringBuffer();
+                StringBuilder buffer = new StringBuilder();
                 for (File file : files) {
                     String name = file.getName();
                     if (buffer.length() > 0) {
@@ -87,7 +87,7 @@ public class PackageMojo extends Abstrac
                 File outFile = new File(camelMetaDir, "component.properties");
                 try {
                     properties.store(new FileWriter(outFile), "Generated by camel-package-maven-plugin");
-                    getLog().info("Generated " + outFile + " containing camel components
" + names);
+                    getLog().info("Generated " + outFile + " containing the camel " + (files.length
> 1 ? "components " : "component ") + names);
                 } catch (IOException e) {
                     throw new MojoExecutionException("Failed to write properties to " + outFile
+ ". Reason: " + e, e);
                 }



Mime
View raw message