You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

build.xml 3.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project name="iciql" default="build" xmlns:mx="antlib:org.moxie">
  3. <!--
  4. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  5. Retrieve Moxie Toolkit
  6. documentation @ http://gitblit.github.io/moxie
  7. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  8. -->
  9. <property name="moxie.version" value="0.9.2" />
  10. <property name="moxie.url" value="http://gitblit.github.io/moxie/maven" />
  11. <property name="moxie.jar" value="moxie-toolkit-${moxie.version}.jar" />
  12. <property name="moxie.dir" value="${user.home}/.moxie" />
  13. <!-- Download Moxie from it's Maven repository to user.home -->
  14. <mkdir dir="${moxie.dir}" />
  15. <get src="${moxie.url}/com/gitblit/moxie/moxie-toolkit/${moxie.version}/${moxie.jar}"
  16. dest="${moxie.dir}" skipexisting="true" verbose="true" />
  17. <!-- Register Moxie tasks -->
  18. <taskdef uri="antlib:org.moxie">
  19. <classpath location="${moxie.dir}/${moxie.jar}" />
  20. </taskdef>
  21. <!--
  22. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  23. Initialize Moxie and setup build properties
  24. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25. -->
  26. <target name="prepare" description="Retrieves dependencies and sets up build properties">
  27. <mx:init mxroot="${moxie.dir}" />
  28. </target>
  29. <!--
  30. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  31. Clean
  32. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  33. -->
  34. <target name="clean" depends="prepare" description="Cleans build directory">
  35. <mx:clean />
  36. </target>
  37. <!--
  38. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  39. Compile
  40. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  41. -->
  42. <target name="compile" depends="prepare" description="Compiles iciql from source">
  43. <mx:javac />
  44. </target>
  45. <!--
  46. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  47. TestSuite
  48. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  49. -->
  50. <target name="testsuite" depends="compile" description="runs the benchmark test suite against all databases">
  51. <echo/>
  52. <echo>This will take a minute or two...</echo>
  53. <echo/>
  54. <mx:javac scope="test" />
  55. <mx:run scope="test" classname="com.iciql.test.IciqlSuite">
  56. <arg value="--dbFile" />
  57. <arg value="${project.outputDirectory}/performance_db.txt" />
  58. <arg value="--sqlFile" />
  59. <arg value="${project.outputDirectory}/performance_sql.txt" />
  60. </mx:run>
  61. </target>
  62. <!--
  63. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  64. Build
  65. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  66. -->
  67. <target name="build" depends="compile" description="Packages iciql for deployment">
  68. <!-- Package the jar, javadoc, sources, and zip distribution -->
  69. <mx:package />
  70. <!-- Deploy the artifacts into the version-controlled repository -->
  71. <mx:deploy basedir="${basedir}/maven" allowSnapshots="false" />
  72. </target>
  73. </project>