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 2011/09/30 19:30:51 UTC
svn commit: r1177745 -
/tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/AbstractRunMojo.java
Author: olamy
Date: Fri Sep 30 17:30:51 2011
New Revision: 1177745
URL: http://svn.apache.org/viewvc?rev=1177745&view=rev
Log:
restore previous version with default naming enabled to not break to much users
Modified:
tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/AbstractRunMojo.java
Modified: tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/AbstractRunMojo.java
URL: http://svn.apache.org/viewvc/tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/AbstractRunMojo.java?rev=1177745&r1=1177744&r2=1177745&view=diff
==============================================================================
--- tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/AbstractRunMojo.java (original)
+++ tomcat/maven-plugin/trunk/tomcat6-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/AbstractRunMojo.java Fri Sep 30 17:30:51 2011
@@ -259,15 +259,11 @@ public abstract class AbstractRunMojo
* naming disabled by default.
* </p>
* <p>
- * With release 1.2 of this plugin useNaming defaults to false as it does for Tomcat 7. To enable it,
- * set this parameter to true or set the property <code>maven.tomcat.useNaming</code>.
- * </p>
- * <p>
* <strong>Note:</strong> This setting is ignored if you provide a <code>server.xml</code> for your
* Tomcat. Instead please configure naming in the <code>server.xml</code>.
* </p>
*
- * @parameter expression="${maven.tomcat.useNaming}" default-value="false"
+ * @parameter expression="${maven.tomcat.useNaming}" default-value="true"
* @todo adopt documentation once Tomcat 7 is supported (MTOMCAT-62)
* @see <a href="http://tomcat.apache.org/tomcat-6.0-doc/api/org/apache/catalina/startup/Embedded.html">org.apache.catalina.startup.Embedded</a>
* @see <a href="http://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/startup/Tomcat.html">org.apache.catalina.startup.Tomcat</a>
@@ -614,9 +610,9 @@ public abstract class AbstractRunMojo
private void startContainer()
throws IOException, LifecycleException, MojoExecutionException
{
-
// Set the system properties
setupSystemProperties();
+
final Embedded container;
if ( serverXml != null )
{
@@ -704,6 +700,7 @@ public abstract class AbstractRunMojo
container.start();
EmbeddedRegistry.getInstance().register( container );
+
}
protected ClassRealm getTomcatClassLoader()
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org