DATAJPA-210 - System property control of Bundlor configuration

Added the ability to control whether Bundlor will fail on warnings or whether it is enabled at all, using Java system properties. By default, Bundlor will be enabled and will fail on warnings. Specifying `-DfailOnWarnings=true/false` and `-Dbundlor.enabled=true/false` as part of the Maven command will now
control Bundlor's operation.
This commit is contained in:
Ben Hale
2012-05-11 15:57:36 +01:00
committed by Oliver Gierke
parent f8fd5c4b7a
commit 400d37a1d6

View File

@@ -66,7 +66,10 @@
<slf4j.version>1.6.1</slf4j.version>
<cdi.version>1.0</cdi.version>
<webbeans.version>1.1.3</webbeans.version>
<bundlor.failOnWarnings>true</bundlor.failOnWarnings>
<bundlor.enabled>true</bundlor.enabled>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<dist.id>spring-data-jpa</dist.id>
<dist.name>Spring Data JPA</dist.name>
@@ -570,7 +573,8 @@
<artifactId>com.springsource.bundlor.maven</artifactId>
<version>1.0.0.RELEASE</version>
<configuration>
<failOnWarnings>true</failOnWarnings>
<failOnWarnings>${bundlor.failOnWarnings}</failOnWarnings>
<enabled>${bundlor.enabled}</enabled>
</configuration>
<executions>
<execution>