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

javadoc.xml 4.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <!--
  2. * Licensed to the Apache Software Foundation (ASF) under one or more
  3. * contributor license agreements. See the NOTICE file distributed with
  4. * this work for additional information regarding copyright ownership.
  5. * The ASF licenses this file to You under the Apache License, Version 2.0
  6. * (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS,
  13. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. * See the License for the specific language governing permissions and
  15. * limitations under the License.
  16. *
  17. -->
  18. <project name="javadoc" basedir=".">
  19. <path id="path.dirset">
  20. <dirset dir="." />
  21. </path>
  22. <property name="javadoc" location="javadoc"/>
  23. <target name="tearDown">
  24. <delete dir="${javadoc}" quiet="true"/>
  25. </target>
  26. <target name="dirsetPath">
  27. <javadoc sourcepathref="path.dirset" packagenames="*" destdir="${javadoc}" />
  28. </target>
  29. <target name="dirsetPathWithoutPackagenames">
  30. <javadoc sourcepathref="path.dirset" destdir="${javadoc}" />
  31. </target>
  32. <target name="nestedDirsetPath">
  33. <javadoc packagenames="*" destdir="${javadoc}">
  34. <sourcepath refid="path.dirset" />
  35. </javadoc>
  36. </target>
  37. <path id="path.fileset">
  38. <pathelement location="."/>
  39. <fileset dir="java/" id="fileset.inpath">
  40. <include name="**/*.java" />
  41. </fileset>
  42. </path>
  43. <target name="filesetPath">
  44. <javadoc sourcepathref="path.fileset" packagenames="*" destdir="${javadoc}" />
  45. </target>
  46. <target name="nestedFilesetPath">
  47. <javadoc packagenames="*" destdir="${javadoc}">
  48. <sourcepath refid="path.fileset" />
  49. </javadoc>
  50. </target>
  51. <target name="nestedFilesetRefInPath">
  52. <javadoc packagenames="*" destdir="${javadoc}">
  53. <fileset refid="fileset.inpath" />
  54. </javadoc>
  55. </target>
  56. <target name="nestedFilesetNoPatterns">
  57. <javadoc packagenames="*" destdir="${javadoc}">
  58. <fileset dir="java/"/>
  59. </javadoc>
  60. </target>
  61. <target name="doublyNestedFileset">
  62. <javadoc packagenames="*" destdir="${javadoc}">
  63. <sourcefiles>
  64. <fileset dir="java/" includes="**/*.java"/>
  65. </sourcefiles>
  66. </javadoc>
  67. </target>
  68. <target name="doublyNestedFilesetNoPatterns">
  69. <javadoc packagenames="*" destdir="${javadoc}">
  70. <sourcefiles>
  71. <fileset dir="java/"/>
  72. </sourcefiles>
  73. </javadoc>
  74. </target>
  75. <path id="path.filelist">
  76. <pathelement location="."/>
  77. <filelist dir="java/">
  78. <file name="ClassToJavadoc.java" />
  79. </filelist>
  80. </path>
  81. <target name="filelistPath">
  82. <javadoc sourcepathref="path.filelist" packagenames="*"
  83. destdir="${javadoc}" />
  84. </target>
  85. <target name="nestedFilelistPath">
  86. <javadoc packagenames="*" destdir="${javadoc}">
  87. <sourcepath refid="path.filelist" />
  88. </javadoc>
  89. </target>
  90. <!-- this property is set when the tests are run using ant's build.xml -->
  91. <property name="root" location="../../../../.."/>
  92. <path id="path.pathelement.path">
  93. <pathelement path="${root}/src" />
  94. </path>
  95. <target name="pathelementPath">
  96. <javadoc sourcepathref="path.pathelement.path"
  97. packagenames="etc.testcases.taskdefs.javadoc.*" destdir="${javadoc}" />
  98. </target>
  99. <path id="path.pathelement.location">
  100. <pathelement location="."/>
  101. <pathelement path="java/ClassToJavadoc.java" />
  102. </path>
  103. <target name="pathelementLocationPath">
  104. <javadoc sourcepathref="path.pathelement.location"
  105. packagenames="*" destdir="${javadoc}" />
  106. </target>
  107. <target name="nestedSource">
  108. <javadoc destdir="${javadoc}">
  109. <source file="java/ClassToJavadoc.java" />
  110. </javadoc>
  111. </target>
  112. <fileset dir="java/" id="fileset.simple">
  113. <include name="**/*.java" />
  114. </fileset>
  115. <target name="nestedFilesetRef">
  116. <javadoc destdir="${javadoc}">
  117. <fileset refid="fileset.simple" />
  118. </javadoc>
  119. </target>
  120. </project>