forked from infoScoop/infoscoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild_quickstart.xml
79 lines (72 loc) · 3.15 KB
/
build_quickstart.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="UTF-8"?>
<project name="infoScoop-quickstart" default="all" basedir=".">
<property file="build.properties"/>
<property name="basedir" value="." />
<property name="build.home" value="${basedir}/build" />
<property name="build.work" value="${build.home}/work" />
<property name="build.gadgets" value="${build.work}/infoscoop-gadgets-${gadgets.version}/infoscoop-gadgets" />
<property name="dist.home" value="${basedir}/dist" />
<property name="src.home" value="${basedir}/src" />
<property name="src.qs" value="${src.home}/quickstart" />
<property name="src.qs.tomcat" value="${src.qs}/tomcat" />
<property name="qs.build" value="${build.home}/quickstart" />
<property name="qs.home" value="${qs.build}/infoscoop-${build.version}-quickstart" />
<property name="qs.file.name" value="infoscoop-${build.version}-quickstart" />
<property name="qs.tomcat.home" value="${qs.home}/apache-tomcat-7.0.34" />
<property name="qs.tomcat.webapps" value="${qs.tomcat.home}/webapps" />
<target name="all" depends="quickstart,archive-quickstart" />
<target name="clean" description="Delete old directory">
<delete dir="${qs.home}" />
</target>
<target name="quickstart" depends="clean">
<!--
<ant antfile="${basedir}/build.xml"/>
<ant antfile="${basedir}/build_initdb.xml"/>
-->
<mkdir dir="${qs.home}" />
<copy todir="${qs.home}/initdb">
<fileset dir="${build.work}/initdb" />
<fileset dir="${build.gadgets}/dist"/>
<fileset dir="${src.qs}" includes="addaccount.*" />
</copy>
<copy todir="${qs.home}">
<fileset dir="${src.qs}" includes="*.sh" />
<fileset dir="${src.qs}" includes="*.bat" />
<fileset dir="${src.qs}" includes="*.txt" />
<fileset dir="${src.qs}" includes="*.sql" />
</copy>
<delete>
<fileset dir="${qs.home}" includes="addaccount.*" />
</delete>
<copy todir="${qs.home}" file="${basedir}/gpl-3.0.txt" />
<copy todir="${qs.home}" file="${basedir}/lgpl-3.0.txt" />
<copy todir="${qs.home}" file="${basedir}/LICENSE.txt" />
<unzip src="${src.qs}/apache-tomcat-7.0.34.zip" dest="${qs.home}" />
<delete dir="${qs.tomcat.webapps}/docs" />
<delete dir="${qs.tomcat.webapps}/examples" />
<copy todir="${qs.tomcat.webapps}" file="${build.work}/infoscoop.war" />
<fixcrlf srcdir="${qs.home}" eol="lf" eof="remove" includes="**/*.sh" />
<copy todir="${qs.tomcat.home}/lib">
<fileset dir="${src.qs.tomcat}/lib" />
</copy>
<copy todir="${qs.tomcat.home}/conf">
<fileset dir="${src.qs.tomcat}/conf" />
</copy>
<copy todir="${qs.tomcat.home}/conf/Catalina/localhost"
file="${src.qs.tomcat}/context/infoscoop.xml" />
</target>
<target name="archive-quickstart" >
<zip compress="true" destfile="${dist.home}/${qs.file.name}.zip" basedir="${qs.build}"/>
<tar destfile="${dist.home}/${qs.file.name}.tar.gz" compression="gzip" longfile="gnu">
<tarfileset dir="${qs.build}" mode="755">
<include name="**/*.sh"/>
</tarfileset>
<tarfileset dir="${qs.build}">
<exclude name="**/*.sh"/>
<!--
<exclude name="*.zip"/>
-->
</tarfileset>
</tar>
</target>
</project>