1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684
|
<?xml version="1.0"?>
<!DOCTYPE project [
<!ENTITY check-targets SYSTEM "file:check-targets.ent">
]>
<!--
==============================================================================
LogKit build file
Authors:
Peter Donald <peter at apache.org>
Legal:
Copyright (c) 2001-2002 The Apache Software Foundation. All Rights Reserved.
==============================================================================
-->
<project name="Avalon Logkit" default="main" basedir=".">
<!--
Give user a chance to override without editing this file
(and without typing -D each time he compiles it)
-->
<property file="ant.properties"/>
<property file="${user.home}/.ant.properties"/>
<property name="name" value="logkit"/>
<property name="Name" value="LogKit"/>
<property name="version" value="1.2.1"/>
<property name="year" value="1999-2003"/>
<property name="status" value="beta"/>
<property name="release" value="1st"/>
<property name="short.version" value="1.2.1"/>
<property name="compress.jars" value="true"/>
<!--
these are here only for those who use jikes compiler. For other
developers this part makes no difference.
-->
<property name="build.compiler.emacs" value="on"/>
<property name="build.compiler.pedantic" value="true"/>
<property name="debug" value="on"/>
<property name="optimize" value="off"/>
<property name="deprecation" value="off"/>
<!-- Set the properties for intermediate directory -->
<property name="build.dir" value="build"/>
<property name="build.lib" value="${build.dir}/lib"/>
<property name="build.src" value="${build.dir}/src"/>
<property name="build.classes" value="${build.dir}/classes"/>
<property name="build.javadocs" value="${build.dir}/javadocs"/>
<property name="build.docs" value="${build.dir}/docs"/>
<property name="build.testdocs" value="${build.docs}/test"/>
<property name="build.reports" value="${build.dir}/reports"/>
<property name="build.context" value="${build.dir}/documentation"/>
<property name="build.xdocs" value="${build.context}/xdocs"/>
<!-- Set the properties for source directories -->
<property name="src.dir" value="src"/>
<property name="lib.dir" value="lib"/>
<property name="java.dir" value="${src.dir}/java"/>
<property name="compat.dir" value="${src.dir}/compat"/>
<property name="test.dir" value="${src.dir}/test"/>
<property name="tools.dir" value="../avalon/tools"/>
<property name="docs.dir" value="${build.dir}/docs"/>
<property name="www.dir" value="../avalon-site/docs/${name}"/>
<property name="xdocs.dir" value="${src.dir}/xdocs"/>
<property name="context.dir" value="../avalon/src/documentation"/>
<property name="javadocs.dir" value="${docs.dir}/api"/>
<property name="dist.dir" value="dist"/>
<property name="src.dist.dir" value="src-dist"/>
<property name="tools.jar" value="${java.home}/../lib/tools.jar"/>
<property name="j2ee.jar" value="${cjan.dir}/j2ee.jar"/>
<property name="dist.name" value="${Name}-${version}"/>
<property name="dist.base" value="distributions"/>
<property name="announce2txt" value="${tools.dir}/announcement2txt.xsl"/>
<property name="announce2header" value="${tools.dir}/announcement2header.xsl"/>
<property name="announce2readme" value="${tools.dir}/announcement2readme.xsl"/>
<property name="announce2site" value="${tools.dir}/announcement2site.xsl"/>
<property name="servletapi.jar" value=""/>
<property name="mail.jar" value=""/>
<property name="jms.jar" value=""/>
<property name="junit.jar" value=""/>
<property name="jdbc.jar" value=""/>
<property name="log4j.jar" value=""/>
<property name="avalon-site.dir" value="../avalon-site"/>
<path id="project.class.path">
<pathelement path="${java.class.path}" />
<pathelement path="${servletapi.jar}" />
<pathelement path="${mail.jar}"/>
<pathelement path="${j2ee.jar}" />
<pathelement path="${jdbc.jar}" />
<pathelement path="${jms.jar}" />
<pathelement path="${log4j.jar}" />
<pathelement path="${avalon-framework.jar}"/>
<fileset dir="${lib.dir}">
<include name="*.jar" />
</fileset>
<pathelement path="${build.classes}" />
</path>
<path id="tools.class.path">
<fileset dir="${avalon-site.dir}/lib"/>
</path>
<path id="test.class.path">
<path refid="tools.class.path"/>
<path refid="project.class.path"/>
</path>
<!-- &check-targets; -->
<!-- defer to check-targets.ent for figuring out dependencies -->
<target name="check-dependencies" />
<!-- defer to check-targets.ent for downloading dependencies -->
<!--
<target name="import-dependencies"
depends="import-junit,import-log4j"/>
-->
<!-- Main target -->
<target name="main" depends="jar" description="Build complete"/>
<!-- Help on usage -->
<target name="usage">
<echo message=""/>
<echo message="${Name} Build file"/>
<echo message="-------------------------------------------------------------"/>
<echo message=""/>
<echo message=" available targets are:"/>
<echo message=""/>
<echo message=" clean -> cleans up the created directories"/>
<echo message=" dist -> generates the ${Name} distribution"/>
<echo message=" docs -> generates the ${Name} Documentation"/>
<echo message=" jar -> generates the ${Name} jar file"/>
<echo message=" javadocs -> generates the API documentation (java 1.2+ only)"/>
<echo message=" distclean -> cleans up all genereated files and directories"/>
<echo message=" import-dependencies -> "/>
<echo message=" downloads automatically downloadable dependencies"/>
<echo message=""/>
<echo message="-------------------------------------------------------------"/>
<echo message=""/>
</target>
<target name="import-avalon-site" description="Imports the avalon-site">
<!-- these are really old releases. Need to verify we can get the
latest of everything and just download that! -->
<mkdir dir="${avalon-site.dir}"/>
<mkdir dir="${avalon-site.dir}/lib"/>
<get src="http://www.ibiblio.org/maven/ant/jars/ant-1.4.1.jar"
dest="${avalon-site.dir}/lib/ant-1.4.1.jar"
verbose="true"
usetimestamp="true"/>
<get src="http://www.ibiblio.org/maven/commons-collections/jars/commons-collections-2.0.jar"
dest="${avalon-site.dir}/lib/commons-collections-2.0.jar"
verbose="true"
usetimestamp="true"/>
<get src="http://www.ibiblio.org/maven/jdom/jars/jdom-b8.jar"
dest="${avalon-site.dir}/lib/jdom-b8.jar"
verbose="true"
usetimestamp="true"/>
<get src="http://www.ibiblio.org/maven/jdom/jars/jdom-b8.jar"
dest="${avalon-site.dir}/lib/jdom-b8.jar"
verbose="true"
usetimestamp="true"/>
<copy file="${lib.dir}/log4j-1.2.7.jar"
tofile="${avalon-site.dir}/lib/log4j-1.2.7.jar"/>
<get src="http://www.ibiblio.org/maven/velocity/jars/velocity-1.4-dev.jar"
dest="${avalon-site.dir}/lib/velocity-1.4-dev.jar"
verbose="true"
usetimestamp="true"/>
<get src="http://www.ibiblio.org/maven/xerces/jars/xerces-1.4.4.jar"
dest="${avalon-site.dir}/lib/velocity-1.4-dev.jar"
verbose="true"
usetimestamp="true"/>
</target>
<target name="optional-tests"
description="Tests for classes missing to the environment">
<available property="avalon-site.present"
file="${avalon-site.dir}/lib/velocity-1.4-dev.jar"
type="file" />
</target>
<target name="avalon-site-warn" unless="avalon-site.present">
<echo>******************************************************</echo>
<echo>*</echo>
<echo>* The avalon-site CVS module is not available.</echo>
<echo>* Without it, you cannot build the documentation</echo>
<echo>* from source.</echo>
<echo>*</echo>
<echo>* Recovery:</echo>
<echo>* Set the avalon-site.dir property in either</echo>
<echo>* ant.properties or ${user.home}/.ant.properties to</echo>
<echo>* point at your cvs checkout of avalon-site, or run</echo>
<echo>* the build target import-avalon-site and it will</echo>
<echo>* check out the required parts of avalon-site into the</echo>
<echo>* parent directory.</echo>
<echo>*</echo>
<echo>* In order to not let the build fail completely, I'll</echo>
<echo>* create a directory ${avalon-site.dir}/lib.</echo>
<echo>*</echo>
<echo>******************************************************</echo>
<echo/>
<mkdir dir="${avalon-site.dir}/lib"/>
</target>
<!-- Prepares the build directory -->
<target name="prepare" depends="check-dependencies,optional-tests,avalon-site-warn">
<tstamp/>
<mkdir dir="${build.dir}"/>
<mkdir dir="${build.classes}"/>
</target>
<!-- Prepares the build directory -->
<target name="compile"
depends="prepare"
description="Compile project">
<javac srcdir="${java.dir}"
destdir="${build.classes}"
debug="${debug}"
optimize="${optimize}"
deprecation="${deprecation}"
target="1.2">
<classpath>
<path refid="project.class.path" />
<path refid="tools.class.path"/>
</classpath>
<src path="${test.dir}"/>
<!-- <src path="${compat.dir}"/>-->
<exclude name="org/apache/log/output/ServletOutputLogTarget.java"
unless="javax.servlet.present"/>
<exclude name="org/apache/log/output/net/SMTPOutputLogTarget.java"
unless="javax.mail.present"/>
<exclude name="**/util/*AvalonLogger*" unless="framework.present"/>
<exclude name="org/apache/log/output/db/**"
unless="javax.sql.present"/>
<exclude name="org/apache/log/output/jms/**"
unless="javax.jms.present"/>
<exclude name="org/apache/log/output/test/DBTargetTestCase.java"
unless="javax.sql.present"/>
<exclude name="org/apache/log/output/lf5/**"
unless="log4j.present"/>
<!-- leave out test cases if junit not installed -->
<exclude name="org/apache/log/util/test/**"
unless="junit.present"/>
<exclude name="org/apache/log/test/**"
unless="junit.present"/>
<exclude name="org/apache/log/output/test/**"
unless="junit.present"/>
<exclude name="org/apache/log/format/test/**"
unless="junit.present"/>
</javac>
<copy todir="${build.classes}">
<fileset dir="${java.dir}">
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<target name="test" depends="compile" description="Run tests">
<mkdir dir="${build.reports}"/>
<echo message="Performing Unit Tests" />
<junit fork="true" printsummary="yes" dir="${build.reports}">
<formatter type="plain"/>
<classpath>
<path refid="test.class.path"/>
<pathelement location="${build.classes}"/>
</classpath>
<batchtest todir="${build.reports}">
<fileset dir="${build.classes}">
<exclude name="**/test/Abstract*TestCase.class"/>
<include name="**/test/*TestCase.class"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-report" depends="compile" description="Run tests with reports">
<mkdir dir="${build.testdocs}"/>
<mkdir dir="${build.reports}"/>
<echo message="Performing Unit Tests" />
<junit fork="true" printsummary="yes" dir="${build.reports}">
<formatter type="xml"/>
<classpath>
<path refid="test.class.path"/>
<pathelement location="${build.classes}"/>
</classpath>
<batchtest todir="${build.reports}">
<fileset dir="${build.classes}">
<exclude name="**/test/Abstract*TestCase.class"/>
<include name="**/test/*Profile.class" if="test.profile"/>
<include name="**/test/*TestCase.class"/>
</fileset>
</batchtest>
</junit>
<junitreport todir="${build.reports}">
<fileset dir="${build.reports}">
<include name="TEST-*.xml"/>
</fileset>
<report format="frames" todir="${build.testdocs}"/>
</junitreport>
</target>
<!-- Creates all the .jar file -->
<target name="jar" depends="compile" description="Build jar file">
<mkdir dir="${build.lib}"/>
<jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}" compress="${compress.jars}">
<include name="org/apache/log/**" />
<exclude name="**/test/*" />
<manifest>
<attribute name="Extension-Name" value="avalon-logkit"/>
<attribute name="Specification-Vendor" value="Apache Software Foundation"/>
<attribute name="Specification-Version" value="1.0"/>
<attribute name="Implementation-Vendor" value="Apache Software Foundation"/>
<attribute name="Implementation-Vendor-Id" value="ASF"/>
<attribute name="Implementation-Version" value="${version}"/>
</manifest>
</jar>
</target>
<target name="install" depends="jar, install-check-cjan">
<mkdir dir="${cjan.lib}" />
<copy file="${build.lib}/${name}.jar" todir="${cjan.lib}"/>
</target>
<target name="install-check-cjan" unless="cjan.lib">
<fail message="cjan.lib not specified." />
</target>
<target name="uninstall" depends="install-check-cjan">
<delete file="${build.lib}/${name}.jar" dir="${cjan.lib}"/>
</target>
<!-- Create the API documentation -->
<target name="javadocs" description="Build javadocs">
<!-- Hack to exclude javax.sql and javax.jms dependent classes -->
<delete dir="${build.src}"/>
<mkdir dir="${build.src}"/>
<copy todir="${build.src}">
<fileset dir="${java.dir}">
<exclude name="org/apache/log/output/ServletOutputLogTarget.java"
unless="servlet.present"/>
<exclude name="org/apache/log/output/net/SMTPOutputLogTarget.java"
unless="javax.mail.present"/>
<exclude name="org/apache/log/output/db/**"
unless="javax.sql.present"/>
<exclude name="org/apache/log/output/jms/**"
unless="javax.jms.present"/>
<exclude name="org/apache/log/output/test/DBTargetTestCase.java"
unless="javax.sql.present"/>
</fileset>
<fileset dir="${compat.dir}">
<include name="**/*.java"/>
</fileset>
</copy>
<delete dir="${build.javadocs}"/>
<mkdir dir="${build.javadocs}"/>
<javadoc packagenames="org.apache.*"
sourcepath="${build.src}"
destdir="${build.javadocs}">
<classpath refid="project.class.path" />
<doclet name="com.sun.tools.doclets.standard.Standard">
<param name="-author"/>
<param name="-version"/>
<param name="-doctitle" value="${Name}"/>
<param name="-windowtitle" value="${Name} API"/>
<param name="-bottom"
value=""Copyright © 2001 Apache Jakarta Project. All Rights Reserved.""/>
<param name="-link" value="http://java.sun.com/j2se/1.4/docs/api/"/>
<param name="-link" value="http://java.sun.com/j2ee/sdk_1.3/techdocs/api/"/>
<param name="-link" value="http://avalon.apache.org/api/"/>
</doclet>
</javadoc>
</target>
<target name="anakia-avail">
<available classname="org.apache.velocity.anakia.AnakiaTask"
property="AnakiaTask.present">
<classpath refid="tools.class.path"/>
</available>
</target>
<target name="anakia-check" depends="anakia-avail" unless="AnakiaTask.present">
<echo>
AnakiaTask is not present! Please check to make sure that
velocity.jar is in your classpath. The easiest way to build
the documentation is to checkout avalon-site CVS and specify
avalon-site.dir property.
You can also run the build target import-avalon-site, to do
this automatically.
</echo>
</target>
<target name="docs" depends="anakia-check" description="Generate documentation and website">
<taskdef name="anakia"
classname="org.apache.velocity.anakia.AnakiaTask">
<classpath refid="tools.class.path"/>
</taskdef>
<anakia basedir="${xdocs.dir}"
destdir="${docs.dir}"
style="docs.vsl"
projectfile="stylesheets/project.xml"
includes="**/*.xml"
excludes="stylesheets/**, changes.xml, announcement.xml"
velocitypropertiesfile="src/xdocs/stylesheets/velocity.properties"
/>
<anakia basedir="${xdocs.dir}"
destdir="${docs.dir}"
style="changes.vsl"
projectfile="stylesheets/project.xml"
includes="changes.xml"
velocitypropertiesfile="${xdocs.dir}/stylesheets/velocity.properties"
/>
<copy todir="${docs.dir}" filtering="off">
<fileset dir="${xdocs.dir}">
<include name="**/images/**"/>
<include name="**/*.gif"/>
<include name="**/*.jpg"/>
<include name="**/*.png"/>
<include name="**/*.css"/>
<include name="**/*.js"/>
</fileset>
</copy>
</target>
<!-- Update the www directory -->
<target name="site-docs" depends="docs,javadocs" description="Build docs for jakarta site">
<mkdir dir="${www.dir}"/>
<!-- delete all old documents but keep CVS directories -->
<!-- note that by doing an include the defaultexcludes (CVS dirs) will be kept -->
<delete>
<fileset dir="${www.dir}">
<include name="**"/>
</fileset>
</delete>
<mkdir dir="${www.dir}"/>
<copy todir="${www.dir}">
<fileset dir="${docs.dir}" />
</copy>
<copy todir="${www.dir}/api">
<fileset dir="${build.javadocs}" />
</copy>
</target>
<!-- Create the binary distribution -->
<target name="bin-dist" depends="jar, docs, javadocs">
<property name="dist.lib" value="${dist.dir}/lib"/>
<property name="dist.docs" value="${dist.dir}/docs"/>
<property name="dist.javadocs" value="${dist.dir}/docs/api"/>
<mkdir dir="${dist.dir}"/>
<mkdir dir="${dist.docs}"/>
<mkdir dir="${dist.javadocs}"/>
<copy todir="${dist.docs}">
<fileset dir="${docs.dir}"/>
</copy>
<copy todir="${dist.javadocs}">
<fileset dir="${build.javadocs}"/>
</copy>
<copy file="${build.lib}/${name}.jar" tofile="${dist.dir}/${name}-${version}.jar"/>
<copy todir="${dist.dir}">
<fileset dir=".">
<include name="README.txt"/>
<include name="KEYS"/>
<include name="LICENSE.txt"/>
</fileset>
</copy>
<chmod dir="${dist.dir}" perm="go-rwx" />
</target>
<!-- Create the source distribution -->
<target name="src-dist">
<property name="src.dist.src" value="${src.dist.dir}/src"/>
<property name="src.dist.docs" value="${src.dist.dir}/docs"/>
<property name="src.dist.javadocs" value="${src.dist.dir}/docs/api"/>
<property name="src.dist.lib" value="${src.dist.dir}/lib"/>
<property name="src.dist.tools" value="${src.dist.dir}/tools"/>
<mkdir dir="${src.dist.dir}" />
<mkdir dir="${src.dist.docs}"/>
<mkdir dir="${src.dist.javadocs}"/>
<copy todir="${src.dist.lib}">
<fileset dir="${lib.dir}">
<include name="README"/>
<include name="exceptionutil.jar"/>
</fileset>
</copy>
<copy todir="${src.dist.src}">
<fileset dir="${src.dir}"/>
</copy>
<copy todir="${src.dist.docs}">
<fileset dir="${docs.dir}"/>
</copy>
<copy todir="${src.dist.javadocs}">
<fileset dir="${build.javadocs}"/>
</copy>
<copy todir="${src.dist.dir}">
<fileset dir=".">
<include name="README.txt"/>
<include name="KEYS"/>
<include name="LICENSE.txt"/>
<include name="build.xml"/>
</fileset>
</copy>
<chmod perm="+x">
<fileset dir="${src.dist.dir}">
<include name="build.sh" />
</fileset>
</chmod>
<fixcrlf srcdir="${src.dist.src}/java" includes="**/*.java" eol="lf"/>
<chmod dir="${src.dist.dir}" perm="go-rwx" />
</target>
<!-- Completely build all dists -->
<target name="dist" depends="site-docs,announcement" description="Build distribution">
<mkdir dir="${dist.base}"/>
<antcall target="bin-dist">
<param name="dist.dir" value="${dist.name}" />
</antcall>
<zip destfile="${dist.base}/${dist.name}-bin.zip"
basedir="${dist.name}/.."
includes="${dist.name}/**"/>
<tar longfile="gnu" tarfile="${dist.base}/${dist.name}-bin.tar">
<tarfileset dir="${dist.name}/.." username="avalon" group="avalon">
<include name="${dist.name}/**"/>
</tarfileset>
</tar>
<gzip zipfile="${dist.base}/${dist.name}-bin.tar.gz"
src="${dist.base}/${dist.name}-bin.tar"/>
<delete file="${dist.base}/${dist.name}-bin.tar"/>
<delete dir="${dist.name}" />
<antcall target="src-dist">
<param name="src.dist.dir" value="${dist.name}" />
</antcall>
<zip destfile="${dist.base}/${dist.name}-src.zip"
basedir="${dist.name}/.."
includes="${dist.name}/**"/>
<tar longfile="gnu" tarfile="${dist.base}/${dist.name}-src.tar" >
<tarfileset dir="${dist.name}/.." mode="755" username="avalon" group="avalon">
<include name="${dist.name}/build.sh"/>
</tarfileset>
<tarfileset dir="${dist.name}/.." username="avalon" group="avalon">
<include name="${dist.name}/**"/>
<exclude name="${dist.name}/build.sh"/>
</tarfileset>
</tar>
<gzip zipfile="${dist.base}/${dist.name}-src.tar.gz"
src="${dist.base}/${dist.name}-src.tar"/>
<delete file="${dist.base}/${dist.name}-src.tar"/>
<delete dir="${dist.name}" />
</target>
<!-- Create the announcements and HEADER.html -->
<target name="announcement">
<filter token="Name" value="${Name}"/>
<filter token="name" value="${name}"/>
<filter token="version" value="${version}"/>
<filter token="year" value="${year}"/>
<filter token="status" value="${status}"/>
<filter token="short-version" value="${short.version}"/>
<filter token="release" value="${release}"/>
<mkdir dir="${build.dir}" />
<mkdir dir="${dist.base}" />
<copy todir="${build.xdocs}" overwrite="true" filtering="on">
<fileset dir="${xdocs.dir}">
<exclude name="**/images/**"/>
</fileset>
</copy>
<style style="${announce2txt}" in="${build.xdocs}/announcement.xml" out="Announcement.txt"/>
<style style="${announce2header}" in="${build.xdocs}/announcement.xml"
out="${dist.base}/HEADER.html"/>
<style style="${announce2readme}" in="${build.xdocs}/announcement.xml"
out="${dist.base}/README.html"/>
<style style="${announce2site}" in="${build.xdocs}/announcement.xml"
out="jakarta-news.xml"/>
</target>
<target name="recompile" description="Recompile the java files">
<delete dir="${build.classes}" />
<antcall target="compile"/>
</target>
<!-- Cleans up build and distribution directories -->
<target name="clean" description="Clean build dirs">
<delete dir="${build.dir}" />
<delete dir="test" /> <!-- cleanup unit test directory -->
<delete>
<fileset dir="." includes="velocity.log*"/>
<fileset dir="." includes="**/*~" defaultexcludes="no"/>
</delete>
</target>
<!-- Cleans absolutely everything up -->
<target name="distclean" depends="clean">
<delete dir="${docs.dir}" />
<delete dir="${dist.base}" />
</target>
</project>
|