Author: jbarrez
Date: 2009-10-26 09:32:54 -0400 (Mon, 26 Oct 2009)
New Revision: 5797
Modified:
jbpm4/trunk/modules/test-upgrade/pom.xml
Log:
Added mvn profile to cope with -Ddatabase property of Hudson db axis
Modified: jbpm4/trunk/modules/test-upgrade/pom.xml
===================================================================
--- jbpm4/trunk/modules/test-upgrade/pom.xml 2009-10-26 10:42:39 UTC (rev 5796)
+++ jbpm4/trunk/modules/test-upgrade/pom.xml 2009-10-26 13:32:54 UTC (rev 5797)
@@ -40,5 +40,64 @@
</dependency>
</dependencies>
+ <profiles>
+ <!-- -Ddatabase= -->
+ <profile>
+ <id>run.database.upgrade.testsuite</id>
+ <activation>
+ <property>
+ <name>database</name>
+ </property>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>database-test-cfg-customization</id>
+ <!-- Replace the hibernate config during test compilation -->
+ <phase>test-compile</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <echo message="Creating test-upgrade cfg for database:
${database}" />
+ <mkdir dir="target/jdbc.properties" />
+ <copy todir="target/jdbc.properties"
overwrite="true">
+ <fileset dir="../../qa/jdbc" />
+ </copy>
+ <copy todir="target/jdbc.properties"
overwrite="true" failonerror="false">
+ <fileset dir="${user.home}/.jbpm4/jdbc" />
+ </copy>
+
+ <replace dir="target/jdbc.properties">
+ <include name="*.properties" />
+ <replacefilter token="PVM1" value="PVM2"
/>
+ <replacefilter token="pvm1" value="pvm2"
/>
+ </replace>
+
+ <ant
antfile="../distro/src/main/files/install/build.xml"
target="create.cfg">
+ <property name="tx"
value="standalone.testsuite" />
+ <property name="mail.cfg" value="testsuite"
/>
+ <property name="database"
value="${database}" />
+ <property name="cfg.dest.dir"
value="target/test-classes" />
+ <property name="install.src.dir"
value="../distro/src/main/files/install/src" />
+ <property name="jdbc.properties.dir"
value="target/jdbc.properties" />
+ <property name="logging" value="none" />
<!-- then the original logging.properties in the resources of this project will be used
-->
+ </ant>
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ </profiles>
+
+
</project>
Show replies by date