author | Jaroslav Tulach <jtulach@netbeans.org> |
Sat, 14 Jun 2008 09:55:07 +0200 | |
changeset 126 | b5492c453889 |
parent 125 | 3314eb349d4f |
child 129 | 91a28decc1b1 |
permissions | -rw-r--r-- |
jtulach@119 | 1 |
<?xml version="1.0" encoding="UTF-8"?> |
jtulach@126 | 2 |
<project name="apidesign.org" default="test" basedir="."> |
jtulach@119 | 3 |
<dirset id="examples" dir="."> |
jtulach@119 | 4 |
<include name="**/nbproject"/> |
jtulach@119 | 5 |
<exclude name="apifest1/day3-intermezzo/**"/> |
jtulach@120 | 6 |
<exclude name="apifest1/infrastructure/testing-template/**"/> |
jtulach@119 | 7 |
</dirset> |
jtulach@119 | 8 |
|
jtulach@119 | 9 |
|
jtulach@119 | 10 |
<target name="clean"> |
jtulach@126 | 11 |
<delete dir="build"/> |
jtulach@126 | 12 |
<delete dir="libs/dist"/> |
jtulach@119 | 13 |
<subant target="clean" antfile="../build.xml"> |
jtulach@119 | 14 |
<dirset refid="examples"/> |
jtulach@119 | 15 |
</subant> |
jtulach@119 | 16 |
</target> |
jtulach@119 | 17 |
|
jtulach@119 | 18 |
<target name="build"> |
jtulach@119 | 19 |
<ant dir="libs"/> |
jtulach@119 | 20 |
<subant target="compile" antfile="../build.xml"> |
jtulach@119 | 21 |
<dirset refid="examples"/> |
jtulach@119 | 22 |
</subant> |
jtulach@119 | 23 |
</target> |
jtulach@126 | 24 |
|
jtulach@126 | 25 |
<target name="test" depends="build"> |
jtulach@126 | 26 |
<subant target="test" antfile="../build.xml" failonerror="false"> |
jtulach@126 | 27 |
<dirset refid="examples"/> |
jtulach@126 | 28 |
</subant> |
jtulach@126 | 29 |
</target> |
jtulach@119 | 30 |
|
jtulach@126 | 31 |
<target name="-version" unless="version"> |
jtulach@126 | 32 |
<exec dir="${ant.file.apidesign.org}/.." outputproperty="version" executable="/bin/sh"> |
jtulach@126 | 33 |
<arg file="version.sh"/> |
jtulach@126 | 34 |
</exec> |
jtulach@126 | 35 |
</target> |
jtulach@126 | 36 |
|
jtulach@126 | 37 |
<target name="sources" depends="-version,clean"> |
jtulach@126 | 38 |
<fail unless="version"/> |
jtulach@126 | 39 |
|
jtulach@126 | 40 |
<loadfile srcfile="${ant.file.apidesign.org}/../../../.hgignore" property="hgignore"/> |
jtulach@126 | 41 |
<mkdir dir="build"/> |
jtulach@126 | 42 |
<zip basedir="${ant.file.apidesign.org}/.." destfile="build/apidesign-${version}.zip"> |
jtulach@126 | 43 |
<not> |
jtulach@126 | 44 |
<containsregexp expression="${hgignore}"/> |
jtulach@126 | 45 |
</not> |
jtulach@126 | 46 |
<not> |
jtulach@126 | 47 |
<filename name="version.sh"/> |
jtulach@126 | 48 |
</not> |
jtulach@126 | 49 |
</zip> |
jtulach@126 | 50 |
</target> |
jtulach@119 | 51 |
</project> |