You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by pp...@apache.org on 2010/05/26 23:50:27 UTC
svn commit: r948608 - in /openjpa/trunk/openjpa-examples/openbooks:
build.jee.xml build.xml
Author: ppoddar
Date: Wed May 26 21:50:26 2010
New Revision: 948608
URL: http://svn.apache.org/viewvc?rev=948608&view=rev
Log:
add parser generator to build script
Modified:
openjpa/trunk/openjpa-examples/openbooks/build.jee.xml
openjpa/trunk/openjpa-examples/openbooks/build.xml
Modified: openjpa/trunk/openjpa-examples/openbooks/build.jee.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/build.jee.xml?rev=948608&r1=948607&r2=948608&view=diff
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/build.jee.xml (original)
+++ openjpa/trunk/openjpa-examples/openbooks/build.jee.xml Wed May 26 21:50:26 2010
@@ -37,6 +37,7 @@
<war destfile="openbooks.war" webxml="${rsrc.dir}/META-INF/web.xml" filesonly="true">
<fileset dir="${web.dir}"/>
<classes dir="${classes.dir}">
+ <include name="META-INF/persistence.xml"/>
<include name="openbook/domain/**"/>
<include name="openbook/server/**"/>
<include name="openbook/util/**"/>
@@ -45,6 +46,8 @@
<fileset dir="${rsrc.dir}">
<include name="images/Add2Cart.jpg"/>
<include name="images/OpenBooks.jpg"/>
+ <include name="images/openjpa-logo-small.png"/>
+ <include name="images/java_link.png"/>
</fileset>
<fileset dir="${target.dir}">
<include name="generated-html/**"/>
Modified: openjpa/trunk/openjpa-examples/openbooks/build.xml
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-examples/openbooks/build.xml?rev=948608&r1=948607&r2=948608&view=diff
==============================================================================
--- openjpa/trunk/openjpa-examples/openbooks/build.xml (original)
+++ openjpa/trunk/openjpa-examples/openbooks/build.xml Wed May 26 21:50:26 2010
@@ -177,6 +177,15 @@
buildpath="${basedir}"/>
</target>
+ <target name="build-parser" depends="check-env" if="antlr.exists">
+ <java classname="org.antlr.Tool">
+ <classpath refid="code.generation.classpath"/>
+ <arg value="-o"/>
+ <arg value="${generated.src.dir}/openbook/tools/parser"/>
+ <arg value="-debug"/>
+ <arg value="${rsrc.dir}/META-INF/Java.g"/>
+ </java>
+ </target>
<!-- Generating viewable syntax colored Java code as html is to be split -->
<!-- for JSE and JEE mode for some differences in Swing based browser -->
<!-- versus general purpose web browsers. Swing based browser treats -->