svn commit: r566258 - /activemq/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunCamelMojo.java

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

svn commit: r566258 - /activemq/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunCamelMojo.java

jstrachan-2
Author: jstrachan
Date: Wed Aug 15 09:46:01 2007
New Revision: 566258

URL: http://svn.apache.org/viewvc?view=rev&rev=566258
Log:
allow the DOT file generation to be easily disabled

Modified:
    activemq/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunCamelMojo.java

Modified: activemq/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunCamelMojo.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunCamelMojo.java?view=diff&rev=566258&r1=566257&r2=566258
==============================================================================
--- activemq/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunCamelMojo.java (original)
+++ activemq/camel/trunk/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunCamelMojo.java Wed Aug 15 09:46:01 2007
@@ -96,6 +96,14 @@
     protected String dotFile;
 
     /**
+     * Allows the DOT file generation to be disabled
+     *
+     * @parameter expression="true"
+     * @readonly
+     */
+    protected boolean dotEnabled;
+
+    /**
      * @component
      */
     private ArtifactResolver artifactResolver;
@@ -287,7 +295,7 @@
 
         // lets create the command line arguments to pass in...
         List<String> args = new ArrayList<String>();
-        if (dotFile != null) {
+        if (dotFile != null && dotEnabled) {
             args.add("-f");
             args.add(dotFile);
         }