-
Notifications
You must be signed in to change notification settings - Fork 4
/
build.xml
77 lines (54 loc) · 3.28 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
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
<project name="esup-agent" default="compile" basedir=".">
<property name="recover.previous-versions" value="0.0.0" />
<property name="app.recover.files" value="
properties/i18n/bundles/Custom_*.properties
" />
<property name="batch-class" value="org.esupportail.esupAgent.batch.Batch" />
<import file="${basedir}/build-commons.xml" />
<property name="app.repository.libs" value="" />
<property file="${props.dir}/config.properties" />
<property file="${props.dir}/defaults.properties" />
<target name="check-shared-config" depends="commons-check-shared-config" >
<property name="init.config" value="${props.dir}/init/init.xml"/>
<if>
<not>
<available file="${init.config}"/>
</not>
<then>
<fail message="${init.config} not found." />
</then>
</if>
</target>
<target name="check-web-config" depends="commons-check-web-config,check-shared-config" />
<target name="check-batch-config" depends="commons-check-batch-config,check-shared-config" />
<target name="test-config" depends="check-batch-config,check-web-config,compile" description="test the configuration" >
<java fork="true" dir="${build.dir}" classname="${batch-class}">
<classpath refid="batch.classpath" />
<sysproperty key="log4j.configuration" value="file:${log4j.batch-config}" />
<arg value="test-beans"/>
</java>
</target>
<target name="test-config-batch" depends="check-batch-config,compile-batch" description="test the configuration for a batch only" >
<java fork="true" dir="${build.dir}" classname="${batch-class}">
<classpath refid="batch.classpath" />
<sysproperty key="log4j.configuration" value="file:${log4j.batch-config}" />
<arg value="test-beans"/>
</java>
</target>
<target name="prepare" depends="commons-prepare" />
<target name="compile-shared" depends="check-shared-config,prepare,commons-compile-shared" />
<target name="compile-batch" depends="compile-shared,commons-compile-batch" description="compile the project for a batch only" />
<target name="compile-web" depends="compile-shared,commons-compile-web" description="compile the project for the web" />
<target name="compile" depends="compile-web,compile-batch" description="compile the project" />
<target name="deploy" depends="compile-web,commons-deploy" description="deploy the application" />
<target name="clean" depends="commons-clean" description="clean the project" />
<target name="recover-config" depends="commons-recover-config" description="recover configuration files from an older version" />
<target name="init" >
<fail message="target init is deprecated, please use target init-data instead"/>
</target>
<target name="init-data" depends="compile-batch,check-batch-config,commons-init-data" description="initialize the database" />
<target name="upgrade" depends="compile-batch,check-batch-config,commons-upgrade" description="upgrade the database" />
<target name="check-version" depends="compile-batch,check-batch-config,commons-check-version" description="check the database version" />
<target name="start" depends="deploy,check-web-config,commons-start-tomcat" description="Start the application" />
<target name="stop" depends="commons-stop-tomcat" description="Stop the application" />
</project>