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
|
<?xml version="1.0"?>
<!-- Author: Jeff Dever -->
<project xmlns:ant="jelly:ant">
<!--
Builds the HttpClient distribution. Ensures that the site docs are included
in the dist.
-->
<goal name="httpclient:dist" prereqs="site:generate, dist"/>
<postGoal name="dist:prepare-bin-filesystem">
<echo>[HttpClient] dist:prepare-bin-filesystem postGoal</echo>
<ant:copy todir="${maven.dist.bin.assembly.dir}/docs">
<fileset dir="./docs">
<include name="*.txt"/>
<include name="*.html"/>
</fileset>
<fileset dir="target/docs">
<include name="**/*"/>
</fileset>
</ant:copy>
<ant:copy file="release_notes.txt" tofile="${maven.dist.bin.assembly.dir}/RELEASE_NOTES.txt" />
<ant:copy file="NOTICE.txt" tofile="${maven.dist.bin.assembly.dir}/NOTICE.txt" />
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="lf" encoding="ISO-8859-1"
includes="**/*.xml **/*.properties **/*.html **/*.css" />
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="crlf" encoding="ISO-8859-1"
includes="**/*.txt" />
<ant:copy file="LICENSE.txt" tofile="${maven.dist.bin.assembly.dir}/LICENSE" />
<ant:copy file="README.txt" tofile="${maven.dist.bin.assembly.dir}/README" />
<ant:copy file="NOTICE.txt" tofile="${maven.dist.bin.assembly.dir}/NOTICE" />
<ant:copy file="release_notes.txt" tofile="${maven.dist.bin.assembly.dir}/RELEASE_NOTES" />
<ant:fixcrlf srcdir="${maven.dist.bin.assembly.dir}" eol="lf" encoding="ISO-8859-1"
includes="LICENSE README NOTICE RELEASE_NOTES" />
</postGoal>
<postGoal name="dist:prepare-src-filesystem">
<echo>[HttpClient] dist:prepare-src-filesystem postGoal</echo>
<ant:copy todir="${maven.dist.src.assembly.dir}">
<fileset dir=".">
<include name="build.properties.sample"/>
</fileset>
</ant:copy>
<ant:copy todir="${maven.dist.src.assembly.dir}/docs">
<fileset dir="./docs">
<include name="*.txt"/>
<include name="*.html"/>
</fileset>
<fileset dir="target/docs">
<include name="**/*"/>
</fileset>
</ant:copy>
<ant:copy file="release_notes.txt" tofile="${maven.dist.src.assembly.dir}/RELEASE_NOTES.txt" />
<ant:copy file="NOTICE.txt" tofile="${maven.dist.src.assembly.dir}/NOTICE.txt" />
<ant:fixcrlf srcdir="${maven.dist.src.assembly.dir}" javafiles="true"
eol="lf" tab="remove" tablength="4" encoding="ISO-8859-1"
includes="**/*.java" />
<ant:fixcrlf srcdir="${maven.dist.src.assembly.dir}" eol="lf" encoding="ISO-8859-1"
includes="**/*.xml **/*.properties **/*.html **/*.css" />
<ant:fixcrlf srcdir="${maven.dist.src.assembly.dir}" eol="crlf" encoding="ISO-8859-1"
includes="**/*.txt" />
<ant:copy file="LICENSE.txt" tofile="${maven.dist.src.assembly.dir}/LICENSE" />
<ant:copy file="README.txt" tofile="${maven.dist.src.assembly.dir}/README" />
<ant:copy file="NOTICE.txt" tofile="${maven.dist.src.assembly.dir}/NOTICE" />
<ant:copy file="release_notes.txt" tofile="${maven.dist.src.assembly.dir}/RELEASE_NOTES" />
<ant:fixcrlf srcdir="${maven.dist.src.assembly.dir}" eol="lf" encoding="ISO-8859-1"
includes="LICENSE README NOTICE RELEASE_NOTES" />
</postGoal>
</project>
|