/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
  2. Idea run config can call an ant task that kicks off Gradle. When an IntelliJ
  3. run config can invoke Gradle tasks this will not be needed.-->
  4. <project>
  5. <target name="compile" depends="findPlatform, compileMac, compileWindows"/>
  6. <target name="findPlatform">
  7. <condition property="isUnix">
  8. <and>
  9. <os family="unix"/>
  10. </and>
  11. </condition>
  12. <condition property="isWindows">
  13. <and>
  14. <os family="windows"/>
  15. </and>
  16. </condition>
  17. </target>
  18. <target name="compileMac" if="isUnix">
  19. <exec executable="./gradlew" failonerror="true">
  20. <arg value="testClasses"/>
  21. </exec>
  22. </target>
  23. <target name="compileWindows" if="isWindows">
  24. <exec executable="./gradlew.bat" failonerror="true">
  25. <arg value="testClasses"/>
  26. </exec>
  27. </target>
  28. </project>