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.

centibuild.xml 4.2KB

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