View Javadoc

1   /*
2    * DaCapo Benchmark Maven Plugin
3    * Copyright (C) 2010 Technische Universität Darmstadt
4    * info@scalabench.org
5    *
6    * Licensed under the Apache License, Version 2.0 (the "License");
7    * you may not use this file except in compliance with the License.
8    * You may obtain a copy of the License at
9    *
10   * http://www.apache.org/licenses/LICENSE-2.0
11   *
12   * Unless required by applicable law or agreed to in writing, software
13   * distributed under the License is distributed on an "AS IS" BASIS,
14   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15   * See the License for the specific language governing permissions and
16   * limitations under the License.
17   */
18  package org.scalabench.plugins.dacapo;
19  
20  public abstract class AbstractIntegrationTestMojo extends AbstractDacapoBenchmarkMojo {
21      
22      /**
23       * Set this to <code>true</code> to skip executing tests, but still compile them. Its use is <em>not recommended</em>,
24       * but quite convenient on occasion.
25       * 
26       * This property is also honored by the <a href="http://maven.apache.org/plugins/maven-surefire-plugin/">Maven Surefire
27       * Plugin</a> and the <a href="http://maven.apache.org/plugins/maven-failsafe-plugin/">Maven Failsafe Plugin</a>.
28       * 
29       * @parameter default-value="false" expression="${skipTests}"
30       */
31      private boolean skipTests;
32      
33      /**
34       * Set this to <code>true</code> to skip executing integration tests, but still compile them. Its use is <em>not
35       * recommended</em>, but quite convenient on occasion.
36       * 
37       * This property is also honored by the <a href="http://maven.apache.org/plugins/maven-failsafe-plugin/">Maven Failsafe
38       * Plugin</a>.
39       * 
40       * @parameter default-value="false" expression="${skipITs}"
41       */
42      private boolean skipITs;
43      
44      public boolean isSkipTests() {
45          return skipTests;
46      }
47      
48      public boolean isSkipITs() {
49          return skipITs;
50      }
51      
52      protected boolean isSkipExecution() {
53          return isSkipTests() || isSkipITs();
54      }
55  }