Build.xml 20080129
Contents |
The file below is part of the Ant-templates. See Ant template for a detailed description.
<?xml version="1.0"?> <!-- ============================================================== Ant build file template This build file is using to other generic xml-files: - local.xml - common.xml See the readme for more information. Creator : Harm Frielink, March 2007 Modified : 1.0.1.1 - 29 Jan 2008 - Introduction ============================================================== --> <project name="template local common usage" default="all" basedir="."> <!-- ======================================================= --> <!-- Versioning information --> <!-- ======================================================= --> <property name= "build.version.number" value= "1.0.1.1" /> <property name= "build.version.date" value= "29 Jan 2008 22:00" /> <property name= "stopwatch.name" value= "template" /> <!-- ======================================================= --> <!-- Imports the local pc settings --> <!-- And also Imports the common.xml file containing: --> <!-- - Antcontrib taskdef --> <!-- - getos, internet.test.availability, and more... --> <!-- ======================================================= --> <import file="c:/usr/home/script/local.xml" /> <!-- ======================================================= --> <!-- All tasks should be depended on this initial task --> <!-- ======================================================= --> <target name="initial" depends="local.init"> <!-- Initial settings here --> </target> <!-- ======================================================= --> <!-- Shows settings and properties. Always depended on --> <!-- initial, --> <!-- internal.local.show --> <!-- internal.show.properties --> <!-- ======================================================= --> <target name="show" description="Shows properties of build, common and local script files." depends= "initial, internal.local.show.properties, internal.show.properties" > <echo>--------------- Build variables ---------------------------------</echo> <echo>Build Version : ${build.version.number} - ${build.version.date}</echo> <echo>=================================================================</echo> <echo>You can overrule the variables by using the -D command-line</echo> <echo>option. An example:</echo> <echo>ant -Dziplocation=c:\foo -Dzipfilename=Increment.zip</echo> </target> <!-- ======================================================= --> <!-- Help information on how to use this template script --> <!-- ======================================================= --> <target name="help" description="Shows help information"> <echo>--------------- Help Template -----------------------------------</echo> <echo>See the readme.txt</echo> <echo>Internet: http://www.harmfrielink.nl/wiki/index.php/Ant_template</echo> <echo>=================================================================</echo> </target> <target name="all" description="Do-It all" depends="initial, help, show"> </target> </project>
See also
- Ant template
- local.xml, the local definition file
- common.xml, the generic code file.