You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by be...@apache.org on 2009/04/13 13:22:03 UTC

svn commit: r764413 - /maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java

Author: bentmann
Date: Mon Apr 13 11:22:03 2009
New Revision: 764413

URL: http://svn.apache.org/viewvc?rev=764413&view=rev
Log:
o Decoupled from settings

Modified:
    maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java

Modified: maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java
URL: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java?rev=764413&r1=764412&r2=764413&view=diff
==============================================================================
--- maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java (original)
+++ maven/plugins/trunk/maven-ant-plugin/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java Mon Apr 13 11:22:03 2009
@@ -26,7 +26,6 @@
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
 import org.apache.maven.project.MavenProject;
-import org.apache.maven.settings.Settings;
 import org.codehaus.plexus.components.interactivity.InputHandler;
 
 /**
@@ -44,16 +43,6 @@
     // ----------------------------------------------------------------------
 
     /**
-     * The current user system settings for use in Maven.
-     *
-     * @parameter expression="${settings}"
-     * @required
-     * @readonly
-     * @since 2.1.1
-     */
-    private Settings settings;
-
-    /**
      * Input handler, needed for command line handling.
      *
      * @component
@@ -82,6 +71,16 @@
      */
     private boolean force;
 
+    /**
+     * The flag whether Maven is operating in interactive mode or in batch mode.
+     * 
+     * @parameter default-value="${settings.interactiveMode}"
+     * @required
+     * @readonly
+     * @since 2.1.1
+     */
+    private boolean interactiveMode;
+
     /** {@inheritDoc} */
     public void execute()
         throws MojoExecutionException
@@ -139,7 +138,7 @@
             return true;
         }
 
-        if ( !settings.isInteractiveMode() )
+        if ( !interactiveMode )
         {
             if ( getLog().isErrorEnabled() )
             {