選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

centibuild.xml 4.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <?xml version="1.0"?>
  2. <project default="interactive" basedir="." name="project build file">
  3. <description>
  4. * ===================================== *
  5. | Krysalis Centipede Build System |
  6. * ===================================== *
  7. by
  8. Nicola Ken Barozzi (nicolaken@apache.org)
  9. Marc Johnson (mjohnson@apache.org)
  10. For a simple interactive build, simply
  11. run the build script (build.bar or build.sh)
  12. </description>
  13. <import file="${ant.home}/src/core/xbuild.xml"/>
  14. <taskdef file="${ant.home}/src/core/tasks.properties"/>
  15. <importcent name="java" />
  16. <importcent name="junit" />
  17. <!-- commenting these out till the base build works on Gump
  18. <importcent name="checkstyle" />
  19. <importcent name="forrest" />
  20. <importcent name="changelog" />
  21. <importcent name="changelog" />
  22. -->
  23. <!-- =================================================================== -->
  24. <!-- Basic build targets for the project -->
  25. <!-- =================================================================== -->
  26. <!-- =================================================================== -->
  27. <!-- Interactive build -->
  28. <!-- =================================================================== -->
  29. <target name="interactive" description="Interactive Build">
  30. <echo>
  31. --------------------------------------------------------------
  32. ${jxpath:/references/module.xml/root/module/project[1]/@name} [${YEAR}]
  33. --------------------------------------------------------------
  34. Using ${ant.version}
  35. Build file ${ant.file}
  36. --------------------------------------------------------------
  37. These are the most common build targets.
  38. You can also invoke them directly; see build.xml for more info.
  39. Builds will be in /build directory, distributions in /dist.
  40. all -------------- creates the jars and the site
  41. compile ---------- compiles the source code
  42. test ------------- performs the jUnit tests
  43. jar -------------- create the jar files
  44. docs ------------- generates the html docs - clean not needed
  45. javadocs --------- generates the API documentation
  46. site ------------- generates the html site (docs+reports)
  47. clean ------------ cleans the build directory
  48. dist ------------- creates src and bin distributions
  49. scratchpad ------- build-run scratchpad code
  50. contrib ---------- build-run contributed code
  51. generate-records - generate excel records
  52. generate-types --- generate word types
  53. poibrowser - POIBrowser 0.10 GUI POI Viewer
  54. sheetviewer - SheetViewer 0.20 GUI Applet/Application Viewer for XLS files
  55. </echo>
  56. <input message="Please select a target "
  57. addproperty="input.selection"/>
  58. <condition property="do.abort">
  59. <equals arg1="" arg2="input.selection" />
  60. </condition>
  61. <fail if="do.abort">Build aborted by user.</fail>
  62. <antrun target="splash"/>
  63. <antrun target="${input.selection}"/>
  64. </target>
  65. <!-- ================================== -->
  66. <!-- Generate records -->
  67. <!-- ================================== -->
  68. <target name="generate-records"
  69. description="generate-records">
  70. <ant antfile="${project.src.dir}/targets/record-generation/xbuild.xml"
  71. target="generate-records"/>
  72. </target>
  73. <!-- ================================== -->
  74. <!-- Generate types -->
  75. <!-- ================================== -->
  76. <target name="generate-types"
  77. description="generate-types">
  78. <ant antfile="${project.src.dir}/targets/record-generation/xbuild.xml"
  79. target="generate-types"/>
  80. </target>
  81. <!-- ================================== -->
  82. <!-- Target used by Gump -->
  83. <!-- ================================== -->
  84. <target name="gump"
  85. depends="compile, package, test"
  86. description="Target used by Gump"/>
  87. <!-- ================================== -->
  88. <!-- Generate all -->
  89. <!-- ================================== -->
  90. <target name="all"
  91. depends="package"
  92. description="Generate all"/>
  93. </project>