[jbpm-commits] JBoss JBPM SVN: r3890 - jbpm4/trunk/modules/db.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Feb 16 10:28:13 EST 2009
Author: heiko.braun at jboss.com
Date: 2009-02-16 10:28:13 -0500 (Mon, 16 Feb 2009)
New Revision: 3890
Modified:
jbpm4/trunk/modules/db/README.txt
jbpm4/trunk/modules/db/pom.xml
Log:
Break up create and drop commands
Modified: jbpm4/trunk/modules/db/README.txt
===================================================================
--- jbpm4/trunk/modules/db/README.txt 2009-02-16 14:56:47 UTC (rev 3889)
+++ jbpm4/trunk/modules/db/README.txt 2009-02-16 15:28:13 UTC (rev 3890)
@@ -7,7 +7,7 @@
Database creation can be triggered through the maven command line
usally as part of the test preparation:
- mvn -Pdrop-create -Ddatabase=<database> install
+ mvn -P<drop|create>-tables -Ddatabase=<database> install
Supported databases
-------------------
Modified: jbpm4/trunk/modules/db/pom.xml
===================================================================
--- jbpm4/trunk/modules/db/pom.xml 2009-02-16 14:56:47 UTC (rev 3889)
+++ jbpm4/trunk/modules/db/pom.xml 2009-02-16 15:28:13 UTC (rev 3890)
@@ -135,7 +135,7 @@
<profiles>
<profile>
- <id>drop-create</id>
+ <id>drop-tables</id>
<build>
<plugins>
<plugin>
@@ -157,7 +157,6 @@
<property name="maven.runtime.classpath" refid="maven.runtime.classpath" />
<ant antfile="target/test-classes/antrun-create_drop.xml" target="drop-tables" />
- <ant antfile="target/test-classes/antrun-create_drop.xml" target="create-tables" />
</tasks>
</configuration>
</execution>
@@ -167,6 +166,38 @@
</build>
</profile>
+ <profile>
+ <id>create-tables</id>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-drop-tables</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ <configuration>
+ <tasks>
+ <!-- Implicit reference to all command line switches, i.e. -Ddatabase=xyz -->
+ <property name="compile_classpath" refid="maven.compile.classpath"/>
+ <property name="runtime_classpath" refid="maven.runtime.classpath"/>
+ <property name="test_classpath" refid="maven.test.classpath"/>
+ <property name="plugin_classpath" refid="maven.plugin.classpath"/>
+
+ <property name="maven.runtime.classpath" refid="maven.runtime.classpath" />
+ <ant antfile="target/test-classes/antrun-create_drop.xml" target="create-tables" />
+ </tasks>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
<!-- -Ddatabase=oracle -->
<profile>
<id>oracle</id>
More information about the jbpm-commits
mailing list