build.xml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?xml version="1.0"?>
  2. <project name="jqGrid" default="build" basedir=".">
  3. <!-- define the path of compressor in this file -->
  4. <property file="build.properties" />
  5. <target name="init">
  6. <mkdir dir="${distdir}" />
  7. </target>
  8. <target name="jqgrid" depends="init">
  9. <concat destfile="${distdir}/${target}">
  10. <fileset file="js/grid.base.js"/>
  11. <fileset file="js/grid.custom.js"/>
  12. <fileset file="js/jqModal.js"/>
  13. <fileset file="js/jqDnR.js"/>
  14. <fileset file="js/JsonXml.js"/>
  15. <fileset file="js/jquery.fmatter.js"/>
  16. <fileset file="js/grid.common.js"/>
  17. <fileset file="js/grid.filter.js"/>
  18. <fileset file="js/grid.formedit.js"/>
  19. <fileset file="js/grid.inlinedit.js"/>
  20. <fileset file="js/grid.celledit.js"/>
  21. <fileset file="js/grid.subgrid.js"/>
  22. <fileset file="js/grid.treegrid.js"/>
  23. <fileset file="js/grid.grouping.js"/>
  24. <fileset file="js/grid.import.js"/>
  25. <fileset file="js/grid.jqueryui.js"/>
  26. <fileset file="js/grid.tbltogrid.js"/>
  27. <fileset file="js/grid.pivot.js"/>
  28. </concat>
  29. </target>
  30. <target name="jqgrid.min" depends="jqgrid">
  31. <apply executable="java" parallel="false" verbose="true" failonerror="true" dest="${distdir}">
  32. <fileset dir="${distdir}">
  33. <include name="${target}" />
  34. </fileset>
  35. <arg line="-jar" />
  36. <arg path="${GoogleCompiler}" />
  37. <arg value="--warning_level" />
  38. <arg value="QUIET" />
  39. <arg value="--create_source_map" />
  40. <arg value="${distdir}/${target.map}" />
  41. <arg value="--js_output_file" />
  42. <targetfile />
  43. <arg value="--js" />
  44. <mapper type="glob" from="${target}" to="${target.min}" />
  45. </apply>
  46. <echo message="${target.min} built." />
  47. </target>
  48. <target name="minfiles">
  49. <mkdir dir="${distdir}/min" />
  50. <apply executable="java" parallel="false" verbose="true" failonerror="true" dest="${distdir}/min">
  51. <fileset dir="${srcdir}">
  52. <include name="*.js" />
  53. </fileset>
  54. <arg line="-jar" />
  55. <arg path="${GoogleCompiler}" />
  56. <arg value="--warning_level" />
  57. <arg value="QUIET" />
  58. <arg value="--js_output_file" />
  59. <targetfile />
  60. <arg value="--js" />
  61. <mapper type="glob" from="*.js" to="*.js" />
  62. </apply>
  63. </target>
  64. <target name="i18n">
  65. <mkdir dir="${distdir}/i18n" />
  66. <copy todir="${distdir}/i18n" overwrite="true">
  67. <fileset dir="${srcdir}/i18n">
  68. <include name="grid.locale-*.js" />
  69. </fileset>
  70. </copy>
  71. </target>
  72. <target name="build" depends="jqgrid, jqgrid.min, i18n, minfiles"/>
  73. <target name="clean">
  74. <delete dir="${distdir}" />
  75. </target>
  76. <target name="all" depends="clean,build"/>
  77. </project>