Ticket #8747: build-source-zip.2.patch

File build-source-zip.2.patch, 1.2 KB (added by h.goebel@…, 6 years ago)

fixed version - first one did use wrong timestamp

  • build.xml

     
    11<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    22<project default="all" name="Compile and build java classes plus jar archives">
    33
    4         <target name="all" depends="clean,build,pack,create_run_jar,create_release_zip" />
     4        <target name="all" depends="clean,build,pack,create_run_jar,create_release_zip,create_source_release_zip" />
    55
    66        <target name="clean">
    77                <delete>
     
    5454                        <include name="Gpl.txt" />
    5555                </zip>
    5656        </target>
     57        <target name="create_source_release_zip" description="Create a release zip file containing the source files">
     58                <tstamp>
     59                        <format property="version" pattern="yyyy-MM-dd"/>
     60                </tstamp>
     61                <zip destfile="JMapViewer-Source-${version}.zip">
     62                        <zipfileset file="Readme.txt" prefix="jmapviewer-${version}"/>
     63                        <zipfileset file="build.xml" prefix="jmapviewer-${version}"/>
     64                        <zipfileset file="Gpl.txt" prefix="jmapviewer-${version}"/>
     65                        <zipfileset dir="src" includes="**/jmapviewer/**" prefix="jmapviewer-${version}"/>
     66                </zip>
     67        </target>
    5768
    5869</project>