OPENJPA-1996: OpenJPA Samples fail on MacOS X

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1101989 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jody Grassel 2011-05-11 17:24:01 +00:00
parent 862e818e50
commit 64bd51ea04
1 changed files with 11 additions and 0 deletions

View File

@ -58,6 +58,14 @@ Please traverse to a sub-directory, like hellojpa, and run "ant" from there.
<exec dir="${basedir}/reversemapping" executable="ant${platform.script.ext}"/>
</target>
<!-- OPENJPA-1996: The build of derby that ships with the OpenJPA build has an
incompatibility with MacOS X. This can be resolved by leveraging the Derby
build that ships with MacOS X in the /usr/share/derby directory. -->
<condition property="derby.loc" value="/usr/share/derby">
<os family="mac"/>
</condition>
<property name="derby.loc" value="${root}"/>
<path id="classpath"
description="The classpath to use for compiling and running">
<pathelement path="${parent}"/>
@ -70,6 +78,9 @@ Please traverse to a sub-directory, like hellojpa, and run "ant" from there.
-->
<fileset dir="${root}">
<include name="openjpa-all-*.jar"/>
<!-- <include name="lib/derby*.jar"/> -->
</fileset>
<fileset dir="${derby.loc}">
<include name="lib/derby*.jar"/>
</fileset>
</path>