forked from daleharvey/Android-MobileFuton
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcouchbase.xml
30 lines (24 loc) · 1.17 KB
/
couchbase.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
<project name="couchbase" default="manual">
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${basedir}/ant-contrib-1.0b3.jar"/>
</classpath>
</taskdef>
<target name="manual">
<!-- unpack the Couchbase.zip in a secure tmp folder -->
<tempfile property="couchbase.tmp.dir" destDir="${java.io.tmpdir}"/>
<mkdir dir="${couchbase.tmp.dir}"/>
<unzip dest="${couchbase.tmp.dir}" src="Couchbase.zip"/>
<!-- run the ant target the in the build xml file inside the zip -->
<ant antfile="${couchbase.tmp.dir}/Couchbase/script/couchbase-internal.xml" target="manual">
<property name="project.path" value="${basedir}"/>
<property name="couchbase.tmp.dir" value="${couchbase.tmp.dir}"/>
</ant>
<inifile source="${basedir}/assets/install/couchdb/etc/couchdb/android.default.ini" dest="${basedir}/assets/install/couchdb/etc/couchdb/android.default.ini">
<set section="httpd" property="secure_rewrites" value="false" />
<set section="log" property="level" value="info" />
</inifile>
<!-- cleanup the tmp folder -->
<delete dir="${couchbase.tmp.dir}"/>
</target>
</project>