centipede2 build.xml,NONE,1.1
| Newsgroups | gmane.comp.krysalis.metamorphosis.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/metamorphosis/centipede2
In directory sc8-pr-cvs1:/tmp/cvs-serv10561
Added Files:
build.xml
Log Message:
Initial ant build file.
--- NEW FILE: build.xml ---
<?xml version="1.0"?>
<project default="readme" basedir="."
name="Krysalis Centipede">
<property name="src.dir" value="./src/java" />
<property name="lib.dir" value="./lib" />
<property name="build.dir" value="./build" />
<property name="classes.dir" value="${build.dir}/classes" />
<target name="readme" description="readme">
<echo>
--------------------------------------------------------------
KRYSALIS CENTIPEDE 2
by
Krysalis Developers ([email protected])
http://www.krysalis.org
--------------------------------------------------------------
Centipede requires a "ant install" upon installation.
To compile a centipede project cd into the project dir
and run "ant".
--------------------------------------------------------------
</echo>
</target>
<target name="init-install">
<fail message="${ant.home} is required to be set, typically via -Dant.home=..."
unless="ant.home" />
</target>
<target name="gump" description="Default Gump target"
depends="build">
<tstamp/>
<copy file ="${lib.dir}/krysalis-centipede.jar"
tofile="${build.dir}/krysalis-centipede-${DSTAMP}.jar"/>
</target>
<target name="gump-package" description="Default Gump target for packaged Centipede"
depends="build, install-ant, gump">
</target>
<target name="build">
<!-- NEEDED? delete file="${lib.dir}/krysalis-centipede.jar" failonerror="false" / -->
<mkdir dir="${classes.dir}"/>
<javac
srcdir="${src.dir}"
destdir="${classes.dir}"
target="1.2"
>
<classpath>
<path>
<fileset
dir="${lib.dir}"
casesensitive="no"
excludes="${lib.dir}/krysalis-centipede2.jar"/>
</path>
</classpath>
</javac>
<!-- Copy the resource along with the classes -->
<copy todir="${classes.dir}">
<fileset dir="${src.dir}">
<exclude name="*.java"/>
</fileset>
</copy>
<!-- JAR anything that has changed .. -->
<jar destfile="${build.dir}/krysalis-centipede2.jar"
basedir="${classes.dir}"
update="false"/>
</target>
<target name="seed" description="Create a new seed project in the current directory">
<gunzip src="src/resources/krysalis-project-template.tar.gz"
dest="${centipede.seed.dir}/krysalis-project-template.tar"/>
<untar src="${centipede.seed.dir}/krysalis-project-template.tar"
dest="${centipede.seed.dir}"
overwrite="false"/>
<delete file="${centipede.seed.dir}/krysalis-project-template.tar"/>
</target>
<target name="install-ant" description="install centipede in the ant lib dir">
<!-- I don't like this but it a work aroung until centipede.jar will boot strap.-->
<copy todir="${ant.home}/lib" overwrite="true">
<fileset dir="${build.dir}">
<include name="krysalis-*"/>
</fileset>
</copy>
</target>
<target name="install"
depends="build, install-ant"
description="Install Centipede"/>
</project>
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program.
Do you like what SourceForge.net is doing for the Open
Source Community? Make a contribution, and help us add new
features and functionality. Click here: http://sourceforge.net/donate/