changeset 1536:97512f3b25a5

Disable license check when skipping tests Reviewed-by: vanaltj Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2014-November/011416.html
author Omair Majid <omajid@redhat.com>
date Wed, 05 Nov 2014 10:36:15 -0500
parents f380c0ac5d57
children 3fe3b3b92be2
files pom.xml
diffstat 1 files changed, 32 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pom.xml	Wed Nov 05 10:40:33 2014 -0500
+++ b/pom.xml	Wed Nov 05 10:36:15 2014 -0500
@@ -48,6 +48,15 @@
   <url>${thermostat.url}</url>
 
   <profiles>
+    <profile>
+      <id>default</id>
+      <activation>
+        <activeByDefault>true</activeByDefault>
+      </activation>
+      <properties>
+        <license.skip>false</license.skip>
+      </properties>
+    </profile>
     <!-- Profile for running performance tests. Performance tests are
          excluded from normal builds. That is, they'll only run if
          explicitly requested via -Pperf-tests. See web/common/pom.xml 
@@ -165,6 +174,28 @@
         </agent.auth.snippet>
       </properties>
     </profile>
+    <profile>
+      <id>skip-license-check-on-skip-tests</id>
+      <activation>
+        <property>
+          <name>skipTests</name>
+        </property>
+      </activation>
+      <properties>
+        <license.skip>true</license.skip>
+      </properties>
+    </profile>
+    <profile>
+      <id>skip-license-check-on-test-skip</id>
+      <activation>
+        <property>
+          <name>maven.test.skip</name>
+        </property>
+      </activation>
+      <properties>
+        <license.skip>true</license.skip>
+      </properties>
+    </profile>
   </profiles>
 
   <properties>
@@ -472,6 +503,7 @@
          <version>2.6</version>
          <inherited>false</inherited>
          <configuration>
+           <skip>${license.skip}</skip>
            <headerDefinitions>
              <headerDefinition>src/license/thermostat-java.xml</headerDefinition>
              <headerDefinition>src/license/thermostat-xml.xml</headerDefinition>