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
|
<project name="AntelopeSrc" default="dist" basedir=".">
<description>
This build file packages the Antelope source code for distribution.
</description>
<!-- read build.props to override properties set below -->
<property file="build.props"/>
<!-- version number, override in build.props if necessary -->
<property name="build.num" value="3.0.1"/>
<!-- shouldn't need to override the following properties -->
<!-- source code directory, this is where the .java files live -->
<property name="src.dir" location="src" />
<property name="lib.dir" location="lib" />
<!-- build directory, all files contained in the src directory are copied
to this directory for processing (tag substitution, mostly) -->
<property name="prep.dir" location="prep"/>
<!-- configuration directory, this is where the configuration files for the
plugin are placed for pre-processing prior to getting jarred. -->
<property name="config.dir" location="${prep.dir}/config" />
<!-- documentation directory, this is where the plugin documentation
files live. Files in this directory will be distributed with the plugin -->
<property name="doc.dir" location="${prep.dir}/docs" />
<!-- the directory for the compiled classes. Files in this directory will be
included in the finished jar file. -->
<property name="classes.dir" location="classes" />
<!-- where to put the finished distribution file -->
<property name="dist.dir" location="dist"/>
<!-- ========================================================================
Target: dist
========================================================================= -->
<target name="dist"
description="Creates a source distribution zip file.">
<!-- zip the source and documentation and put the zip file in
the $dist directory -->
<zip destfile="${dist.dir}/${ant.project.name}_${build.num}.zip">
<zipfileset prefix="${ant.project.name}_${build.num}" dir="${basedir}">
<include name="src/ise/**/*"/>
<include name="src/images/**/*"/>
<include name="src/config/**/*"/>
<include name="src/docs/**/*"/>
<include name="src/README.txt"/>
<exclude name="**/builder/**/*"/>
<exclude name="**/dependency/**/*"/>
</zipfileset>
<!--
<zipfileset prefix="${ant.project.name}_${build.num}" dir="${lib.dir}">
<include name="**/*.jar"/>
</zipfileset>
-->
<zipfileset prefix="${ant.project.name}_${build.num}" dir="${prep.dir}">
<include name="docs/manual/**/*"/>
</zipfileset>
<zipfileset prefix="${ant.project.name}_${build.num}" dir="${basedir}">
<include name="build.xml"/>
<include name="build-app.xml"/>
<include name="build-plugin.xml"/>
<include name="build-tasks.xml"/>
<include name="build-source.xml"/>
<include name="build.props.example"/>
<include name="run.xml"/>
</zipfileset>
</zip>
</target>
</project>
|