PageRenderTime 23ms CodeModel.GetById 20ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/build.xml

http://github.com/JavaPosseRoundup/job-dsl-plugin
XML | 33 lines | 25 code | 5 blank | 3 comment | 0 complexity | 31cce4e9eda537f3903d8f396ae4872a MD5 | raw file
 1<!-- This is not a real Ant build. This file is only here so that the IntelliJ
 2Idea run config can call an ant task that kicks off Gradle. When an IntelliJ
 3run config can invoke Gradle tasks this will not be needed.-->
 4<project>
 5
 6    <target name="compile" depends="findPlatform, compileMac, compileWindows"/>
 7
 8    <target name="findPlatform">
 9        <condition property="isUnix">
10            <and>
11                <os family="unix"/>
12            </and>
13        </condition>
14        <condition property="isWindows">
15            <and>
16                <os family="windows"/>
17            </and>
18        </condition>
19    </target>
20
21    <target name="compileMac" if="isUnix">
22        <exec executable="./gradlew" failonerror="true">
23            <arg value="testClasses"/>
24        </exec>
25    </target>
26
27    <target name="compileWindows" if="isWindows">
28        <exec executable="./gradlew.bat" failonerror="true">
29            <arg value="testClasses"/>
30        </exec>
31    </target>
32
33</project>