tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Dutoit (Created) (JIRA) <j...@apache.org>
Subject [jira] [Created] (MTOMCAT-120) Support "skip" parameter
Date Wed, 22 Feb 2012 07:52:55 GMT
Support "skip" parameter
------------------------

                 Key: MTOMCAT-120
                 URL: https://issues.apache.org/jira/browse/MTOMCAT-120
             Project: Apache Tomcat Maven Plugin
          Issue Type: Improvement
          Components: tomcat7
    Affects Versions: 2.0-beta-1
         Environment: -
            Reporter: Cédric Dutoit
            Assignee: Olivier Lamy
             Fix For: 2.0


Please support a "skip" parameter to tomcat-run, tomcat-shutdown, as does jetty project.

For my project, I use SkipITs variable to ask failsafe plugin to not execute IT tests.
I also want to avoid having Tomcat started, stopped if IT tests won't execute (skipITs=true).
I have the following configuration:

				<plugins>
					<plugin>
						<groupId>org.apache.tomcat.maven</groupId>
						<artifactId>tomcat7-maven-plugin</artifactId>
						<version>2.0-SNAPSHOT</version>
						<configuration>
							<domain>TomcatRunner</domain>
							<!-- ... -->
						</configuration>
						<executions>
							<execution>
								<id>tomcat-run</id>
								<goals>
									<goal>run-war-only</goal>
								</goals>
								<phase>pre-integration-test</phase>
							</execution>
							<execution>
								<id>tomcat-shutdown</id>
								<goals>
									<goal>shutdown</goal>
								</goals>
								<phase>post-integration-test</phase>
							</execution>
						</executions>
					</plugin>

I need a skip variable as to use the following execution configuration:
<configuration><skip>${skipITs}</skip></configuration>


Maybe a single variable + 
if (skip)  {
   log(...)
   return;
}
... in org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo
(http://svn.apache.org/repos/asf/tomcat/maven-plugin/trunk/tomcat7-maven-plugin/src/main/java/org/apache/tomcat/maven/plugin/tomcat7/run/AbstractRunMojo.java)
would be enough.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

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


Mime
View raw message