mirror of
https://github.com/apache/openjpa.git
synced 2025-03-06 16:39:11 +00:00
OPENJPA-1088 fix new all target for Windows users
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@775344 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a5f85ac7f8
commit
f6c64474ed
@ -36,10 +36,24 @@ Please traverse to a sub-directory, like hellojpa, and run "ant" from there.
|
|||||||
</fail>
|
</fail>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="all">
|
<target name="init" depends="init:discover, init:windows, init:unix">
|
||||||
<exec dir="${basedir}/hellojpa" executable="ant" />
|
</target>
|
||||||
<exec dir="${basedir}/relations" executable="ant" />
|
<target name="init:discover">
|
||||||
<exec dir="${basedir}/reversemapping" executable="ant" />
|
<condition property="isWindows">
|
||||||
|
<os family="windows"/>
|
||||||
|
</condition>
|
||||||
|
</target>
|
||||||
|
<target name="init:windows" if="isWindows">
|
||||||
|
<property name="platform.script.ext" value=".bat"/>
|
||||||
|
</target>
|
||||||
|
<target name="init:unix" unless="isWindows">
|
||||||
|
<property name="platform.script.ext" value=""/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="all" depends="init">
|
||||||
|
<exec dir="${basedir}/hellojpa" executable="ant${platform.script.ext}"/>
|
||||||
|
<exec dir="${basedir}/relations" executable="ant${platform.script.ext}"/>
|
||||||
|
<exec dir="${basedir}/reversemapping" executable="ant${platform.script.ext}"/>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<path id="classpath"
|
<path id="classpath"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user