maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject [maven-ant-plugin] 09/18: o Decoupled from settings
Date Wed, 20 Dec 2017 09:28:50 GMT
This is an automated email from the ASF dual-hosted git repository.

hboutemy pushed a commit to annotated tag maven-ant-plugin-2.2
in repository https://gitbox.apache.org/repos/asf/maven-ant-plugin.git

commit 44a01183528d986cebd4a829f0aced2ecc1c841e
Author: Benjamin Bentmann <bentmann@apache.org>
AuthorDate: Mon Apr 13 11:22:03 2009 +0000

    o Decoupled from settings
    
    git-svn-id: https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ant-plugin@764413
13f79535-47bb-0310-9956-ffa450edef68
---
 .../org/apache/maven/plugin/ant/AntCleanMojo.java  | 23 +++++++++++-----------
 1 file changed, 11 insertions(+), 12 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java b/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java
index ede253e..ed29464 100644
--- a/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java
+++ b/src/main/java/org/apache/maven/plugin/ant/AntCleanMojo.java
@@ -26,7 +26,6 @@ import java.util.Locale;
 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 @@ public class AntCleanMojo
     // ----------------------------------------------------------------------
 
     /**
-     * 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 @@ public class AntCleanMojo
      */
     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 @@ public class AntCleanMojo
             return true;
         }
 
-        if ( !settings.isInteractiveMode() )
+        if ( !interactiveMode )
         {
             if ( getLog().isErrorEnabled() )
             {

-- 
To stop receiving notification emails like this one, please contact
"commits@maven.apache.org" <commits@maven.apache.org>.

Mime
View raw message