-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
44 lines (36 loc) · 1.21 KB
/
build.xml
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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="groovy">
<property file="default.properties"/>
<path id="groovy.classpath">
<pathelement location="build"/>
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<taskdef resource="org/codehaus/groovy/antlib.xml">
<classpath refid="groovy.classpath"/>
</taskdef>
<target name="init">
<mkdir dir="build"/>
</target>
<target name="clean" description="Cleans the project">
<delete dir="build"/>
</target>
<target name="build" depends="init">
<groovyc destdir="build">
<src path="src"/>
<classpath refid="groovy.classpath"/>
</groovyc>
<copy todir="build">
<fileset dir="src" excludes="**/*.groovy"/>
</copy>
</target>
<taskdef name="metalink" classname="zwiwo.groovy.MetalinkGenerator">
<classpath refid="groovy.classpath"/>
</taskdef>
<target name="metalink" depends="build">
<metalink url="http://zad-zwiwo.com/download/" file="zad-zwiwo.xml">
<fileset dir="."/>
</metalink>
</target>
</project>