You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by dw...@apache.org on 2010/05/14 23:42:37 UTC
svn commit: r944491 - in /openjpa/trunk/openjpa-examples/openbooks: pom.xml
run.xml
Author: dwoods
Date: Fri May 14 21:42:37 2010
New Revision: 944491
URL: http://svn.apache.org/viewvc?rev=944491&view=rev
Log:
openbooks updates: copy run files to target dir for easy testing, added a run profile to pom.xml to allow launching of app from maven
Modified:
openjpa/trunk/openjpa-examples/openbooks/pom.xml
openjpa/trunk/openjpa-examples/openbooks/run.xml
Modified: openjpa/trunk/openjpa-examples/openbooks/pom.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/pom.xml?rev=944491&r1=944490&r2=944491&view=diff
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/pom.xml (original)
+++ openjpa/trunk/openjpa-examples/openbooks/pom.xml Fri May 14 21:42:37 2010
@@ -120,6 +120,47 @@
<ant antfile="${basedir}/build.xml">
<target name="generate-html-source" />
</ant>
+ <copy todir="${basedir}/target">
+ <fileset dir="${basedir}"
+ includes="index.html"/>
+ <fileset dir="${basedir}"
+ includes="*.txt"/>
+ <fileset dir="${basedir}"
+ includes="run.*"/>
+ </copy>
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <!-- Profile to launch OpenBooks via "mvn test -Prun" -->
+ <profile>
+ <id>run</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>run</id>
+ <phase>test</phase>
+ <configuration>
+ <tasks>
+ <echo>Launching OpenBooks</echo>
+ <property name="openjpa.version" value="${project.version}" />
+ <property name="maven.repos" value="${settings.localRepository}" />
+ <ant antfile="run.xml"
+ dir="${basedir}/target">
+ <target name="run" />
+ </ant>
</tasks>
</configuration>
<goals>
Modified: openjpa/trunk/openjpa-examples/openbooks/run.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/run.xml?rev=944491&r1=944490&r2=944491&view=diff
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/run.xml (original)
+++ openjpa/trunk/openjpa-examples/openbooks/run.xml Fri May 14 21:42:37 2010
@@ -31,7 +31,9 @@
<path id="run.classpath"
description="Runs on OpenBooks packaged library and database driver">
<pathelement location="${basedir}" />
- <pathelement location="${basedir}/openbooks.jar" />
+ <fileset dir="${basedir}">
+ <include name="*.jar" />
+ </fileset>
<fileset dir="${openjpa.lib}">
<include name="*.jar" />
</fileset>