forked from CenturyLink-ViNO/vino-product
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
43 lines (35 loc) · 1.24 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
<?xml version="1.0"?>
<project name='vino' default='dist' xmlns:ivy='antlib:org.apache.ivy.ant'>
<property environment="env"/>
<import file='${env.ANT_TOOLS_HOME}/ant.init.xml'/>
<dirname property="vino.dir" file="${ant.file.vino}"/>
<target name='vino'>
<subant inheritrefs='false' target='dist'>
<fileset dir='${vino.dir}' includes='build.xml'/>
</subant>
</target>
<target name='dist'>
<uptodate property='up-to-date' targetfile='${tmp.dir}/${ant.project.name}.built.at'>
<srcfiles dir='${basedir}' includes='**/*'/>
</uptodate>
<if>
<not>
<isset property='up-to-date'/>
</not>
<then>
<antcall target='distribute'/>
<mkdir dir='${tmp.dir}'/>
<touch file='${tmp.dir}/${ant.project.name}.built.at'/>
</then>
<else>
<echo message='${ant.project.name} already up to date'/>
</else>
</if>
</target>
<target name='distribute' depends='deps'>
<docker.dist docker-dist.dir='${dist.root}/project/vino-docker/${build.mode}/image/vino-docker/etc'/>
</target>
<target name='deps'>
<build.dependent.library dir='components/vino-core'/>
</target>
</project>