-
Notifications
You must be signed in to change notification settings - Fork 166
/
dbflute.xml
27 lines (24 loc) · 1000 Bytes
/
dbflute.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
<?xml version="1.0" encoding="UTF-8"?>
<project name="dbflute" basedir=".">
<property name="mydbflute.dir" value="${basedir}/mydbflute" />
<property name="target.dir" value="${basedir}/target" />
<property name="branch.name" value="fess-14.17" />
<property name="mydbflute.url" value="https://github.com/lastaflute/lastaflute-example-waterfront/archive/${branch.name}.zip" />
<target name="mydbflute.check">
<condition property="mydbflute.exists">
<available file="${mydbflute.dir}" type="dir" />
</condition>
</target>
<target name="download.dbflute" depends="mydbflute.check" unless="mydbflute.exists">
<mkdir dir="${mydbflute.dir}" />
<get dest="${target.dir}/mydbflute.zip">
<url url="${mydbflute.url}" />
</get>
<unzip dest="${mydbflute.dir}" src="${target.dir}/mydbflute.zip">
<patternset>
<include name="lastaflute-example-waterfront-${branch.name}/mydbflute/dbflute-1.x/**" />
</patternset>
<cutdirsmapper dirs="2" />
</unzip>
</target>
</project>