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
9
http://www.apache.org/licenses/LICENSE-2.0
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.
17
<project xmlns:deploy="deploy" default="jar:jar" xmlns:ant="jelly:ant">
19
<goal name="cut-math-release">
20
<attainGoal name="convert-snapshots" />
21
<attainGoal name="dist" />
24
<preGoal name="dist:build-bin">
25
<attainGoal name="announcement:generate" />
26
<copy todir="${maven.dist.bin.assembly.dir}">
27
<fileset file='${basedir}/NOTICE.txt'/>
28
<fileset file='${basedir}/RELEASE-NOTES.txt'/>
32
<preGoal name="dist:build-src">
33
<copy todir="${maven.dist.src.assembly.dir}">
34
<fileset file='${basedir}/checkstyle.xml'/>
35
<fileset file='${basedir}/license-header.txt'/>
36
<fileset file='${basedir}/build.properties.sample'/>
37
<fileset file='${basedir}/NOTICE.txt'/>
38
<fileset file='${basedir}/RELEASE-NOTES.txt'/>
39
<fileset file='${basedir}/release-notes.jsl'/>
41
<delete dir="${maven.dist.src.assembly.dir}/src/experimental" />
42
<delete dir="${maven.dist.src.assembly.dir}/src/mantissa" />
43
<move todir="${maven.dist.src.assembly.dir}-src">
44
<fileset dir="${maven.dist.src.assembly.dir}"/>
48
<!-- Uncomment when ant plugin relative path bug is fixed (still present in 1.8)
50
<attainGoal name="ant" />
54
<!-- Uncomment to include compile time dependent jars (discovery, logging)
55
<preGoal name="dist:build-bin">
56
<deploy:copy-deps todir="${maven.build.dir}/${maven.final.name}/bin/${maven.final.name}" />
60
<!-- Limit maven resources included in site generation -->
61
<postGoal name="xdoc:copy-resources">
62
<copy todir="${maven.docs.dest}/images">
63
<fileset file='${maven.docs.src}/../resources/images/**'/>
65
<copy todir="${maven.docs.dest}/style">
66
<fileset file='${maven.docs.src}/../resources/style/**'/>
68
<copy todir="${maven.docs.dest}/userguide">
69
<fileset file='${maven.docs.src}/../resources/userguide/**'/>
71
<delete includeEmptyDirs="true">
72
<fileset dir="${maven.docs.dest}"
73
includes="${maven.xdoc.copy.excludes},${maven.xdoc.copy.excludes.classic}"/>