]> source.dussan.org Git - poi.git/commitdiff
Add a target to help with generating the release notes
authorNick Burch <nick@apache.org>
Wed, 30 Jul 2014 07:32:21 +0000 (07:32 +0000)
committerNick Burch <nick@apache.org>
Wed, 30 Jul 2014 07:32:21 +0000 (07:32 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1614573 13f79535-47bb-0310-9956-ffa450edef68

build.xml

index e59e55edb632d3b96b171f89f67333effe1be878..7de32fc226887d5b5f237b0117b1c2af3ae02477 100644 (file)
--- a/build.xml
+++ b/build.xml
@@ -53,6 +53,7 @@ under the License.
     <description>The Apache POI project Ant build.</description>
 
     <property name="version.id" value="3.11-beta1"/>
+    <property name="version.rel" value="REL_3_11_BETA1"/>
 
     <property environment="env"/>
     <!-- the repository to download jars from -->
@@ -1214,6 +1215,16 @@ under the License.
         </jar>
     </target>
 
+    <target name="release-notes" depends="init">
+        <copy file="src/documentation/RELEASE-NOTES.txt" todir="build/dist/">
+            <filterset>
+                <filter token="VERSION" value="${version.id}"/>
+                <filter token="DSTAMP"  value="${DSTAMP}"/>
+                <filter token="RELEASE_TAG" value="${version.rel}"/>
+            </filterset>
+        </copy>
+    </target>
+
     <target name="assemble" depends="jar,jar-src">
          <!-- jars to include in binary assemblies -->         
          <patternset id="bin.dist.jars">
@@ -1312,7 +1323,7 @@ under the License.
         <echo>Use ${dist.dir}/multisign.sh to create md5 checksums and GPG signatures</echo>
     </target>
 
-    <target name="dist" depends="clean, compile-all, test-all, site, jar, assemble"
+    <target name="dist" depends="clean, compile-all, test-all, site, jar, release-notes, assemble"
             description="Creates the entire distribution into build/dist, from scratch">
     </target>