Repository navigation
Expand file tree
/
Copy pathbuild.xml
More file actions
108 lines (89 loc) · 3.5 KB
/
Copy pathbuild.xml
File metadata and controls
108 lines (89 loc) · 3.5 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<project name="AbcLinuxu" default="deploy">
<property file="conf_deploy.properties"/>
<property name="src" location="src"/>
<property name="javac.debug" value="on"/>
<property name="javac.optimize" value="on"/>
<path id="project.classpath">
<fileset dir="libs">
<include name="*.jar"/>
</fileset>
</path>
<target name="init">
<filter filtersfile="conf_deploy.properties"/>
<mkdir dir="${DEPLOY_ABCLINUXU}"/>
<mkdir dir="${DEPLOY_ABCLINUXU}/WEB-INF/classes"/>
<mkdir dir="${DEPLOY_LOGS}"/>
<mkdir dir="${DEPLOY_BIN}"/>
<tstamp/>
</target>
<target name="clean">
<delete dir="${DEPLOY_ABCLINUXU}/WEB-INF/classes"/>
</target>
<target name="build" depends="init">
<javac srcdir="src" destdir="${DEPLOY_ABCLINUXU}/WEB-INF/classes"
classpathref="project.classpath" debug="${javac.debug}"
optimize="${javac.optimize}" source="1.6" />
<javac srcdir="test" destdir="${DEPLOY_ABCLINUXU}/WEB-INF/classes"
classpathref="project.classpath" debug="${javac.debug}"
optimize="${javac.optimize}" source="1.6" />
</target>
<target name="deploy" depends="build">
<!--copy todir="${JETTY_HOME}/etc" filtering="true">
<fileset dir="conf/jetty">
<include name="jetty.xml"/>
</fileset>
</copy-->
<copy todir="${DEPLOY_ABCLINUXU}/WEB-INF" filtering="true">
<fileset dir="conf">
<include name="web.xml"/>
</fileset>
</copy>
<copy todir="${DEPLOY_ABCLINUXU}/WEB-INF/conf">
<fileset dir="conf">
<include name="templates.xml"/>
<include name="news_categories.xml"/>
<include name="driver_categories.xml"/>
<include name="UnicodeData.txt"/>
<include name="stop_words.txt"/>
<include name="property_set_ui.xml"/>
<include name="property_set_license.xml"/>
<include name="document_types.xml"/>
<include name="search_types.xml"/>
<include name="tag_checker.xml"/>
</fileset>
</copy>
<copy todir="${DEPLOY_ABCLINUXU}/WEB-INF/classes" filtering="true">
<fileset dir="conf">
<include name="log4j.xml"/>
<include name="whirlycache.xml"/>
</fileset>
</copy>
<copy todir="${DEPLOY_ABCLINUXU}/WEB-INF/conf" filtering="true">
<fileset dir="conf">
<include name="systemPrefs.xml"/>
<include name="proxool.xml"/>
<include name="url_mapping.xml"/>
</fileset>
</copy>
<copy todir="${DEPLOY_ABCLINUXU}/WEB-INF/lib">
<fileset dir="libs" includes="*.jar">
<exclude name="servlet.jar"/>
<exclude name="crimson.jar"/>
<exclude name="junit.jar"/>
<exclude name="commons-httpclient.jar"/>
<exclude name="commons-codec.jar"/>
</fileset>
</copy>
<copy todir="${DEPLOY_ABCLINUXU}/WEB-INF/freemarker">
<fileset dir="web/freemarker"/>
</copy>
<copy todir="${DEPLOY_ABCLINUXU}">
<fileset dir="web/root"/>
</copy>
<copy todir="${DEPLOY_BIN}" filtering="true">
<fileset dir="bin">
<exclude name="taganalyze/**"/>
</fileset>
</copy>
</target>
</project>