BATCH-1407: add environment property to samples.

This commit is contained in:
dsyer
2009-09-22 11:56:27 +00:00
parent 78768959b0
commit 84d0f2c170

View File

@@ -12,6 +12,10 @@
<version>2.1.0.CI-SNAPSHOT</version>
<relativePath>../spring-batch-parent</relativePath>
</parent>
<properties>
<!-- Override this with -Denvironment=XXXX to change database type -->
<environment>hsql</environment>
</properties>
<profiles>
<profile>
<id>tiger</id>
@@ -244,6 +248,17 @@
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<systemProperties>
<property>
<name>org.springframework.batch.support.SystemPropertyInitializer.ENVIRONMENT</name>
<value>${environment}</value>
</property>
</systemProperties>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>