You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ol...@apache.org on 2013/01/31 10:58:36 UTC

svn commit: r1440891 - /tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java

Author: olamy
Date: Thu Jan 31 09:58:35 2013
New Revision: 1440891

URL: http://svn.apache.org/viewvc?rev=1440891&view=rev
Log:
fix possible values for clientAuth

Modified:
    tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java

Modified: tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java
URL: http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java?rev=1440891&r1=1440890&r2=1440891&view=diff
==============================================================================
--- tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java (original)
+++ tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java Thu Jan 31 09:58:35 2013
@@ -458,11 +458,12 @@ public abstract class AbstractRunMojo
 
     /**
      * enable client authentication for https (if configured)
+     * see <a href="http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support_-_BIO_and_NIO">http://tomcat.apache.org/tomcat-7.0-doc/config/http.html#SSL_Support_-_BIO_and_NIO</a>
      *
      * @since 2.1
      */
     @Parameter( property = "maven.tomcat.https.clientAuth", defaultValue = "false" )
-    protected boolean clientAuth = false;
+    protected String clientAuth = "false";
 
     @Component( role = MavenFileFilter.class, hint = "default" )
     protected MavenFileFilter mavenFileFilter;
@@ -1059,10 +1060,8 @@ public abstract class AbstractRunMojo
                         httpsConnector.setAttribute( "keystoreType", keystoreType );
                     }
 
-                    if ( clientAuth )
-                    {
-                        httpsConnector.setAttribute( "clientAuth", clientAuth );
-                    }
+                    httpsConnector.setAttribute( "clientAuth", clientAuth );
+
                     embeddedTomcat.getEngine().getService().addConnector( httpsConnector );
 
                 }



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org