-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
38 lines (28 loc) · 1.22 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
<?xml version="1.0"?>
<project name="vanes" default="usage">
<target name="usage" description="How to see all the targets">
<echo>USAGE: ant -projecthelp</echo>
<echo>NOTE: Read the README.txt</echo>
</target>
<target name="init" description="Init all parameters and other settings">
<property file="local.build.properties"/>
<property file="build.properties"/>
<property name="cocoon.webapp.dir" value="${cocoon.source.dir}/build/webapp"/>
<available file="${cocoon.webapp.dir}" type="dir" property="cocoon.webapp.dir.exists"/>
<fail unless="cocoon.webapp.dir.exists" message="Cocoon webapp does not exist. No such directory: ${cocoon.webapp.dir}"/>
<mkdir dir="build/tools/classes"/>
<javac srcdir="src/tools/java"
destdir="build/tools/classes"
/>
<taskdef name="mcopy" classpath="build/tools/classes" classname="MCopyTask"/>
</target>
<target name="build" description="Build webapp" depends="init">
<echo>Copy publets: ${publets}</echo>
<mcopy dirs="${publets}" todir="${cocoon.webapp.dir}">
<fileset includes="**"/>
</mcopy>
</target>
<target name="clean" description="Clean build" depends="init">
<delete dir="build"/>
</target>
</project>