|
| 1 | +<!-- |
| 2 | + Copyright 2006 The Apache Software Foundation |
| 3 | +
|
| 4 | + Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | + you may not use this file except in compliance with the License. |
| 6 | + You may obtain a copy of the License at |
| 7 | +
|
| 8 | + http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | +
|
| 10 | + Unless required by applicable law or agreed to in writing, software |
| 11 | + distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | + See the License for the specific language governing permissions and |
| 14 | + limitations under the License. |
| 15 | +--> |
| 16 | +<project default="java:jar" |
| 17 | + xmlns:ant="jelly:ant" |
| 18 | + xmlns:j="jelly:core"> |
| 19 | + |
| 20 | + <!-- ================================================================== --> |
| 21 | + <!-- Copy into the binary distribution --> |
| 22 | + <!-- ================================================================== --> |
| 23 | + <postGoal name="dist:prepare-bin-filesystem"> |
| 24 | + |
| 25 | + <copy todir="${maven.dist.bin.assembly.dir}"> |
| 26 | + <fileset file='${basedir}/NOTICE.txt'/> |
| 27 | + <fileset file="${basedir}/RELEASE-NOTES.txt"/> |
| 28 | + </copy> |
| 29 | + |
| 30 | + </postGoal> |
| 31 | + |
| 32 | + <!-- ================================================================== --> |
| 33 | + <!-- Copy into the source distribution --> |
| 34 | + <!-- ================================================================== --> |
| 35 | + <postGoal name="dist:prepare-src-filesystem"> |
| 36 | + |
| 37 | + <!-- Copy the NOTICE --> |
| 38 | + <copy todir="${maven.dist.src.assembly.dir}"> |
| 39 | + <fileset file='${basedir}/NOTICE.txt'/> |
| 40 | + <fileset file="${basedir}/checkstyle.xml"/> |
| 41 | + <fileset file="${basedir}/license-header.txt"/> |
| 42 | + </copy> |
| 43 | + |
| 44 | + <!-- Copy xdoc files --> |
| 45 | + <copy todir="${maven.dist.src.assembly.dir}/xdocs"> |
| 46 | + <fileset dir="xdocs"/> |
| 47 | + </copy> |
| 48 | + |
| 49 | + </postGoal> |
| 50 | + |
| 51 | + <!-- ================================================================== --> |
| 52 | + <!-- Create MD5 Check Sums --> |
| 53 | + <!-- ================================================================== --> |
| 54 | + <postGoal name="dist"> |
| 55 | + |
| 56 | + <!-- create checksum for jar --> |
| 57 | + <ant:checksum file="${maven.build.dir}/${maven.final.name}.jar" property="jar.md5"/> |
| 58 | + <ant:echo message="${jar.md5} *${maven.final.name}.jar" |
| 59 | + file="${maven.build.dir}/${maven.final.name}.jar.md5" /> |
| 60 | + |
| 61 | + <!-- create checksum for binary zip --> |
| 62 | + <ant:checksum file="${maven.dist.dir}/${maven.final.name}.zip" property="zip.md5"/> |
| 63 | + <ant:echo message="${zip.md5} *${maven.final.name}.zip" |
| 64 | + file="${maven.dist.dir}/${maven.final.name}.zip.md5" /> |
| 65 | + |
| 66 | + <!-- create checksum for binary tar.gz --> |
| 67 | + <ant:checksum file="${maven.dist.dir}/${maven.final.name}.tar.gz" property="tar.gz.md5"/> |
| 68 | + <ant:echo message="${tar.gz.md5} *${maven.final.name}.tar.gz" |
| 69 | + file="${maven.dist.dir}/${maven.final.name}.tar.gz.md5" /> |
| 70 | + |
| 71 | + <!-- create checksum for source zip --> |
| 72 | + <ant:checksum file="${maven.dist.dir}/${maven.final.name}-src.zip" property="src.zip.md5"/> |
| 73 | + <ant:echo message="${src.zip.md5} *${maven.final.name}-src.zip" |
| 74 | + file="${maven.dist.dir}/${maven.final.name}-src.zip.md5" /> |
| 75 | + |
| 76 | + <!-- create checksum for source tar.gz --> |
| 77 | + <ant:checksum file="${maven.dist.dir}/${maven.final.name}-src.tar.gz" property="src.tar.gz.md5"/> |
| 78 | + <ant:echo message="${src.tar.gz.md5} *${maven.final.name}-src.tar.gz" |
| 79 | + file="${maven.dist.dir}/${maven.final.name}-src.tar.gz.md5" /> |
| 80 | + |
| 81 | + </postGoal> |
| 82 | + |
| 83 | +</project> |
0 commit comments