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.

build.xml 18 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. <?xml version="1.0" ?>
  2. <project name="xdocs" default="default">
  3. <!--
  4. Give user a chance to override without editing this file
  5. (and without typing -D each time)
  6. -->
  7. <property file="${user.home}/.${ant.project.name}.properties"/>
  8. <property name="src.root"
  9. location="../../src/main"/>
  10. <property name="docs.src"
  11. location="../../xdocs"/>
  12. <property name="build.dir" location="build"/>
  13. <property name="gen.dir" location="${build.dir}/gen"/>
  14. <property name="ant.package" value="org/apache/tools/ant"/>
  15. <property name="optional.package" value="${ant.package}/taskdefs/optional"/>
  16. <property name="optional.type.package" value="${ant.package}/types/optional"/>
  17. <property name="apache.resolver.type.package" value="${ant.package}/types/resolver"/>
  18. <property name="util.package" value="${ant.package}/util"/>
  19. <property name="regexp.package" value="${util.package}/regexp"/>
  20. <path id="classpath">
  21. </path>
  22. <!-- depends on JDK version -->
  23. <selector id="needs.jdk1.2+">
  24. <or>
  25. <filename name="${util.package}/optional/WeakishReference12*"/>
  26. <filename name="${optional.package}/extension/**"/>
  27. <filename name="${util.package}/optional/NoExitSecurityManager*"/>
  28. <filename name="${optional.package}/Javah*"/>
  29. <filename name="${optional.package}/metamata/*"/>
  30. <filename name="${optional.package}/ejb/EjbJar*"/>
  31. <filename name="${optional.package}/ejb/*DeploymentTool*"/>
  32. <filename name="${optional.package}/ejb/IPlanet*"/>
  33. <filename name="${optional.package}/ejb/Borland*"/>
  34. <filename name="${optional.package}/j2ee/*"/>
  35. <!-- uses the context classloader -->
  36. <filename name="${optional.package}/junit/JUnitClassLoaderTest*"/>
  37. <!-- use various 1.2 methods -->
  38. <filename name="${optional.package}/sitraka/**"/>
  39. <filename name="${optional.package}/ide/VAJ*"/>
  40. <filename name="${optional.package}/starteam/*"/>
  41. </or>
  42. </selector>
  43. <selector id="needs.jdk1.3+">
  44. <or>
  45. <filename name="${ant.package}/taskdefs/TestProcess*"/>
  46. <filename name="${optional.package}/extension/**"/>
  47. </or>
  48. </selector>
  49. <selector id="needs.jdk1.4+">
  50. <filename name="${regexp.package}/Jdk14Regexp*"/>
  51. </selector>
  52. <!-- classes that should be present in Sun based JVMs, but not in
  53. Kaffe for example -->
  54. <selector id="needs.sun.tools">
  55. <or>
  56. <filename name="${optional.package}/Native2Ascii*"/>
  57. <filename name="${optional.package}/Javah*"/>
  58. </or>
  59. </selector>
  60. <selector id="needs.sun.uue">
  61. <filename name="${ant.package}/taskdefs/email/UUMailer*"/>
  62. </selector>
  63. <selector id="needs.sun.b64">
  64. <or>
  65. <filename name="${ant.package}/taskdefs/Get*"/>
  66. <filename name="${optional.package}/splash/SplashTask*"/>
  67. </or>
  68. </selector>
  69. <selector id="needs.trax">
  70. <or>
  71. <filename name="${optional.package}/TraXLiaison*"/>
  72. <filename name="${optional.package}/sitraka/**"/>
  73. <filename name="${optional.package}/metamata/MMetrics*"/>
  74. <filename name="${optional.package}/XsltTest*"/>
  75. <filename name="${ant.package}/types/XMLCatalogBuildFileTest*"/>
  76. </or>
  77. </selector>
  78. <selector id="needs.xalan1">
  79. <or>
  80. <filename name="${optional.package}/XalanLiaison*"/>
  81. <filename name="${optional.package}/junit/Xalan1Executor*"/>
  82. </or>
  83. </selector>
  84. <selector id="needs.xalan2">
  85. <filename name="${optional.package}/junit/Xalan2Executor*"/>
  86. </selector>
  87. <selector id="needs.xslp">
  88. <filename name="${optional.package}/XslpLiaison*"/>
  89. </selector>
  90. <selector id="needs.apache.resolver">
  91. <filename name="${apache.resolver.type.package}/**"/>
  92. </selector>
  93. <selector id="needs.junit">
  94. <filename name="${optional.package}/junit/**"/>
  95. </selector>
  96. <selector id="needs.jakarta.regexp">
  97. <filename name="${regexp.package}/JakartaRegexp*"/>
  98. </selector>
  99. <selector id="needs.jakarta.oro">
  100. <or>
  101. <filename name="${regexp.package}/JakartaOro*"/>
  102. <filename name="${optional.package}/perforce/*"/>
  103. <filename name="${optional.package}/metamata/MAudit*"/>
  104. </or>
  105. </selector>
  106. <selector id="needs.jakarta.bcel">
  107. <or>
  108. <filename name="${ant.package}/filters/util/JavaClassHelper*"/>
  109. <filename name="${util.package}/depend/bcel/*"/>
  110. <filename name="${optional.type.package}/depend/ClassFileSetTest*"/>
  111. </or>
  112. </selector>
  113. <selector id="needs.jakarta.log4j">
  114. <filename name="${ant.package}/listener/Log4jListener*"/>
  115. </selector>
  116. <selector id="needs.commons.logging">
  117. <filename name="${ant.package}/listener/CommonsLoggingListener*"/>
  118. </selector>
  119. <selector id="needs.bsf">
  120. <filename name="${optional.package}/Script*"/>
  121. </selector>
  122. <selector id="needs.stylebook">
  123. <filename name="${optional.package}/StyleBook*"/>
  124. </selector>
  125. <selector id="needs.javamail">
  126. <filename name="${ant.package}/taskdefs/email/MimeMailer*"/>
  127. </selector>
  128. <selector id="needs.icontract">
  129. <filename name="${optional.package}/IContract*"/>
  130. </selector>
  131. <selector id="needs.netrexx">
  132. <filename name="${optional.package}/NetRexxC*"/>
  133. </selector>
  134. <selector id="needs.weblogic.ejbc">
  135. <filename name="${optional.package}/ejb/Ejbc*"/>
  136. </selector>
  137. <selector id="needs.weblogic.ddcreator">
  138. <filename name="${optional.package}/ejb/DDCreator*"/>
  139. </selector>
  140. <selector id="needs.weblogic.server">
  141. <or>
  142. <filename name="${optional.package}/ejb/WLRun*"/>
  143. <filename name="${optional.package}/ejb/WLStop*"/>
  144. </or>
  145. </selector>
  146. <selector id="needs.netcomponents">
  147. <or>
  148. <filename name="${optional.package}/net/FTP*"/>
  149. <filename name="${optional.package}/net/TelnetTask*"/>
  150. </or>
  151. </selector>
  152. <selector id="needs.starteam">
  153. <or>
  154. <filename name="${optional.package}/scm/AntStarTeam*"/>
  155. <filename name="${optional.package}/starteam/*"/>
  156. </or>
  157. </selector>
  158. <selector id="needs.vaj">
  159. <filename name="${optional.package}/ide/VAJ*"/>
  160. </selector>
  161. <selector id="needs.antlr">
  162. <filename name="${optional.package}/ANTLR*"/>
  163. </selector>
  164. <selector id="needs.servletapi">
  165. <filename name="${optional.package}/ide/VAJ*Servlet*"/>
  166. </selector>
  167. <selector id="needs.jmf">
  168. <filename name="${optional.package}/sound/*"/>
  169. </selector>
  170. <selector id="needs.jai">
  171. <or>
  172. <filename name="${optional.package}/image/*"/>
  173. <filename name="${ant.package}/types/optional/image/*"/>
  174. </or>
  175. </selector>
  176. <selector id="needs.jdepend">
  177. <filename name="${optional.package}/jdepend/*"/>
  178. </selector>
  179. <selector id="needs.swing">
  180. <filename name="${optional.package}/splash/*"/>
  181. </selector>
  182. <available property="jdk1.2+" classname="java.lang.ThreadLocal"/>
  183. <available property="jdk1.3+" classname="java.lang.StrictMath"/>
  184. <available property="jdk1.4+" classname="java.lang.CharSequence"/>
  185. <available property="kaffe" classname="kaffe.util.NotImplemented"/>
  186. <available property="bsf.present"
  187. classname="org.apache.bsf.BSFManager"
  188. classpathref="classpath"/>
  189. <condition property="netrexx.present">
  190. <and>
  191. <isset property="jdk1.2+"/>
  192. <available classname="netrexx.lang.Rexx"
  193. classpathref="classpath"/>
  194. </and>
  195. </condition>
  196. <available property="trax.present"
  197. classname="javax.xml.transform.Transformer"
  198. classpathref="classpath"/>
  199. <condition property="trax.impl.present">
  200. <or>
  201. <and>
  202. <isset property="javax.xml.transform.TransformerFactory"/>
  203. <available classname="${javax.xml.transform.TransformerFactory}"
  204. classpathref="classpath"/>
  205. </and>
  206. <available resource="META-INF/services/javax.xml.transform.TransformerFactory"/>
  207. </or>
  208. </condition>
  209. <available property="xslp.present"
  210. classname="com.kvisco.xsl.XSLProcessor"
  211. classpathref="classpath"/>
  212. <available property="apache.resolver.present"
  213. classname="org.apache.xml.resolver.tools.CatalogResolver"
  214. classpathref="classpath" />
  215. <available property="xalan.present"
  216. classname="org.apache.xalan.xslt.XSLTProcessorFactory"
  217. classpathref="classpath"/>
  218. <available property="xalan2.present"
  219. classname="org.apache.xalan.transformer.TransformerImpl"
  220. classpathref="classpath"/>
  221. <available property="ejb.ejbc.present"
  222. classname="weblogic.ejbc"
  223. classpathref="classpath"/>
  224. <available property="ejb.DDCreator.present"
  225. classname="weblogic.ejb.utils.DDCreator"
  226. classpathref="classpath"/>
  227. <available property="ejb.wls.present"
  228. classname="weblogic.Server"
  229. classpathref="classpath"/>
  230. <available property="junit.present"
  231. classname="junit.framework.TestCase"
  232. classpathref="classpath"/>
  233. <available property="netcomp.present"
  234. classname="com.oroinc.net.ftp.FTPClient"
  235. classpathref="classpath"/>
  236. <available property="starteam.present"
  237. classname="com.starbase.util.Platform"
  238. classpathref="classpath"/>
  239. <available property="antlr.present"
  240. classname="antlr.Tool"
  241. classpathref="classpath"/>
  242. <available property="vaj.present"
  243. classname="com.ibm.ivj.util.base.Workspace"
  244. classpathref="classpath"/>
  245. <available property="stylebook.present"
  246. classname="org.apache.stylebook.Engine"
  247. classpathref="classpath"/>
  248. <available property="jakarta.regexp.present"
  249. classname="org.apache.regexp.RE"
  250. classpathref="classpath"/>
  251. <available property="jakarta.oro.present"
  252. classname="org.apache.oro.text.regex.Perl5Matcher"
  253. classpathref="classpath"/>
  254. <available property="jmf.present"
  255. classname="javax.sound.sampled.Clip"
  256. classpathref="classpath"/>
  257. <available property="jai.present"
  258. classname="javax.media.jai.JAI"
  259. classpathref="classpath"/>
  260. <condition property="icontract.present">
  261. <and>
  262. <isset property="jdk1.2+"/>
  263. <available classname="com.reliablesystems.iContract.IContracted"
  264. classpathref="classpath"/>
  265. </and>
  266. </condition>
  267. <available property="jdepend.present"
  268. classname="jdepend.framework.JDepend"
  269. classpathref="classpath"/>
  270. <available property="log4j.present"
  271. classname="org.apache.log4j.Category"
  272. classpathref="classpath"/>
  273. <available property="commons.logging.present"
  274. classname="org.apache.commons.logging.LogFactory"
  275. classpathref="classpath"/>
  276. <available property="xalan.envcheck"
  277. classname="org.apache.xalan.xslt.EnvironmentCheck"
  278. classpathref="classpath"/>
  279. <available property="which.present"
  280. classname="org.apache.env.Which"
  281. classpathref="classpath"/>
  282. <available property="servlet.present"
  283. classname="javax.servlet.Servlet"
  284. classpathref="classpath"/>
  285. <available property="xerces.present"
  286. classname="org.apache.xerces.parsers.SAXParser"
  287. classpathref="classpath"/>
  288. <condition property="bcel.present">
  289. <and>
  290. <isset property="jdk1.2+"/>
  291. <available classname="org.apache.bcel.Constants"
  292. classpathref="classpath"/>
  293. </and>
  294. </condition>
  295. <available property="sunuue.present"
  296. classname="sun.misc.UUEncoder"
  297. classpathref="classpath"/>
  298. <condition property="javamail.complete">
  299. <and>
  300. <available classname="javax.activation.DataHandler"
  301. classpathref="classpath"/>
  302. <available classname="javax.mail.Transport"
  303. classpathref="classpath"/>
  304. </and>
  305. </condition>
  306. <condition property="some.regexp.support">
  307. <or>
  308. <isset property="jdk1.4+"/>
  309. <isset property="jakarta.regexp.present"/>
  310. <isset property="jakarta.oro.present"/>
  311. </or>
  312. </condition>
  313. <condition property="sun.tools.present">
  314. <and>
  315. <available classname="sun.tools.native2ascii.Main"/>
  316. <available classname="com.sun.tools.javah.Main"/>
  317. </and>
  318. </condition>
  319. <available property="base64.present" classname="sun.misc.BASE64Encoder"/>
  320. <condition property="jasper.present">
  321. <and>
  322. <available classname="org.apache.jasper.compiler.Compiler"/>
  323. <available classname="org.apache.jasper.JasperException"/>
  324. </and>
  325. </condition>
  326. <condition property="swing.present">
  327. <or>
  328. <and>
  329. <isset property="jdk1.2+"/>
  330. <not>
  331. <isset property="kaffe"/>
  332. </not>
  333. </and>
  334. <available classname="javax.swing.ImageIcon"
  335. classpathref="classpath"/>
  336. </or>
  337. </condition>
  338. <available property="rhino.present"
  339. classname="org.mozilla.javascript.Scriptable"
  340. classpathref="classpath"/>
  341. <available property="beanshell.present"
  342. classname="bsh.StringUtil"
  343. classpathref="classpath"/>
  344. <path id="xdoclet.classpath">
  345. <path>
  346. <fileset dir="lib" includes="*.jar"/>
  347. </path>
  348. <path>
  349. <fileset dir="${ant.home}/lib" includes="*.jar"/>
  350. </path>
  351. </path>
  352. <target name="init">
  353. <mkdir dir="${build.dir}" />
  354. <mkdir dir="${gen.dir}" />
  355. </target>
  356. <target name="clean">
  357. <delete dir="${build.dir}"/>
  358. <delete dir="${gen.dir}"/>
  359. </target>
  360. <target name="gen" depends="init">
  361. <taskdef name="antdoclet"
  362. classname="xdoclet.modules.apache.ant.AntDocletTask"
  363. classpathref="xdoclet.classpath"/>
  364. <antdoclet destdir="${gen.dir}"
  365. excludedtags="@version,@author"
  366. force="${xdoclet.force}"
  367. mergedir="src">
  368. <fileset dir="${src.root}">
  369. <selector id="conditional-patterns">
  370. <not>
  371. <or>
  372. <selector refid="needs.jdk1.2+" unless="jdk1.2+"/>
  373. <selector refid="needs.jdk1.3+" unless="jdk1.3+"/>
  374. <selector refid="needs.jdk1.4+" unless="jdk1.4+"/>
  375. <selector refid="needs.sun.tools" unless="sun.tools.present"/>
  376. <selector refid="needs.sun.uue" unless="sunuue.present"/>
  377. <selector refid="needs.sun.b64" unless="base64.present"/>
  378. <selector refid="needs.trax" unless="trax.present"/>
  379. <selector refid="needs.xalan1" unless="xalan.present"/>
  380. <selector refid="needs.xalan2" unless="xalan2.present"/>
  381. <selector refid="needs.xslp" unless="xslp.present"/>
  382. <selector refid="needs.apache.resolver" unless="apache.resolver.present"/>
  383. <selector refid="needs.junit" unless="junit.present"/>
  384. <selector refid="needs.jakarta.regexp"
  385. unless="jakarta.regexp.present"/>
  386. <selector refid="needs.jakarta.oro" unless="jakarta.oro.present"/>
  387. <selector refid="needs.jakarta.bcel" unless="bcel.present"/>
  388. <selector refid="needs.jakarta.log4j" unless="log4j.present"/>
  389. <selector refid="needs.commons.logging"
  390. unless="commons.logging.present"/>
  391. <selector refid="needs.bsf" unless="bsf.present"/>
  392. <selector refid="needs.stylebook" unless="stylebook.present"/>
  393. <selector refid="needs.javamail" unless="javamail.complete"/>
  394. <selector refid="needs.icontract" unless="icontract.present"/>
  395. <selector refid="needs.netrexx" unless="netrexx.present"/>
  396. <selector refid="needs.weblogic.ejbc" unless="ejb.ejbc.present"/>
  397. <selector refid="needs.weblogic.ddcreator"
  398. unless="ejb.DDCreator.present"/>
  399. <selector refid="needs.weblogic.server" unless="ejb.wls.present"/>
  400. <selector refid="needs.netcomponents" unless="netcomp.present"/>
  401. <selector refid="needs.starteam" unless="starteam.present"/>
  402. <selector refid="needs.vaj" unless="vaj.present"/>
  403. <selector refid="needs.antlr" unless="antlr.present"/>
  404. <selector refid="needs.servletapi" unless="servlet.present"/>
  405. <selector refid="needs.jmf" unless="jmf.present"/>
  406. <selector refid="needs.jai" unless="jai.present"/>
  407. <selector refid="needs.jdepend" unless="jdepend.present"/>
  408. <selector refid="needs.swing" unless="swing.present"/>
  409. </or>
  410. </not>
  411. </selector>
  412. </fileset>
  413. <taskdescriptor/>
  414. <taskdefproperties/>
  415. </antdoclet>
  416. </target>
  417. <target name="docs"> <!-- depends="gen" -->
  418. <mkdir dir="${build.dir}/docs" />
  419. <!-- Copy stuff so things are in the correct relative location. -->
  420. <copy todir="${build.dir}/docs">
  421. <fileset dir="${basedir}/../../docs" includes="artwork/**" />
  422. </copy>
  423. <mkdir dir="${basedir}/xdocs" />
  424. <copy todir="${basedir}/xdocs">
  425. <fileset dir="${docs.src}" includes="stylesheets/project.xml" />
  426. </copy>
  427. <!-- Generate HTML using DVSL -->
  428. <ant dir="dvsl"/>
  429. </target>
  430. <target name="default" depends="gen"/>
  431. </project>