Author: olamy
Date: Tue Nov  8 11:02:18 2011
New Revision: 1199188

URL: http://svn.apache.org/viewvc?rev=1199188&view=rev
Log:
[ARCHETYPE-389] add some various options to improve how Maven is invoked in 
IntegrationTestMojo
showVersion and debug configurable.

Modified:
    
maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java

Modified: 
maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
URL: 
http://svn.apache.org/viewvc/maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java?rev=1199188&r1=1199187&r2=1199188&view=diff
==============================================================================
--- 
maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
 (original)
+++ 
maven/archetype/trunk/maven-archetype-plugin/src/main/java/org/apache/maven/archetype/mojos/IntegrationTestMojo.java
 Tue Nov  8 11:02:18 2011
@@ -153,9 +153,25 @@ public class IntegrationTestMojo
      * @parameter expression="${archetype.test.localRepositoryPath}" 
default-value="${settings.localRepository}"
      * @required
      * @readonly
+     * @since 2.2
      */
     private File localRepositoryPath;
 
+    /**
+     * flag to enable show mvn version used for running its (cli option : 
-V,--show-version )
+     * @parameter expression="${archetype.test.showVersion}" 
default-value="false"
+     * @since 2.2
+     */
+    private boolean showVersion;
+
+    /**
+     * Whether to show debug statements in the build output.
+     *
+     * @parameter expression="${archetype.test.debug}" default-value="false"
+     * @since 2.2
+     */
+    private boolean debug;
+
     public void execute()
         throws MojoExecutionException, MojoFailureException
     {
@@ -401,6 +417,10 @@ public class IntegrationTestMojo
                 Arrays.asList( StringUtils.split( goals, "," ) ) 
).setLocalRepositoryDirectory(
                 localRepositoryPath ).setInteractive( false ).setShowErrors( 
true );
 
+            request.setDebug( debug );
+
+            request.setShowVersion( showVersion );
+
             if ( logger != null )
             {
                 request.setErrorHandler( logger );


Reply via email to