-
Notifications
You must be signed in to change notification settings - Fork 0
/
webbuild.xml
96 lines (93 loc) · 4.67 KB
/
webbuild.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version='1.0'?>
<project name='webapp' basedir='.' default='make_web'>
<property file='build.properties' />
<property name='src.dir' value='src' />
<property name='web.dir' value='war' />
<property name='build.dir' value='${web.dir}/WEB-INF/classes' />
<property name='name' value='webapp' />
<path id='master-classpath'>
<fileset dir='lib'>
<include name='*.jar' />
</fileset>
<!-- We need the servlet API classes: -->
<!-- * for Tomcat 5/6 use servlet-api.jar -->
<!-- * for other app servers - check the docs -->
<fileset dir='${appserver.lib}'>
<include name='servlet*.jar' />
</fileset>
<pathelement path='${build.dir}' />
</path>
<path id="cmc_prak.classpath">
<pathelement location="bin"/>
<pathelement location="lib/antlr-2.7.7.jar"/>
<pathelement location="lib/aopalliance-1.0.jar"/>
<pathelement location="lib/bsh-2.0b6.jar"/>
<pathelement location="lib/byte-buddy-1.10.7.jar"/>
<pathelement location="lib/classmate-1.5.1.jar"/>
<pathelement location="lib/commons-logging-1.2.jar"/>
<pathelement location="lib/dom4j-2.1.1.jar"/>
<pathelement location="lib/FastInfoset-1.2.15.jar"/>
<pathelement location="lib/hibernate-commons-annotations-5.1.0.Final.jar"/>
<pathelement location="lib/hibernate-core-5.4.11.Final.jar"/>
<pathelement location="lib/istack-commons-runtime-3.0.7.jar"/>
<pathelement location="lib/jandex-2.1.1.Final.jar"/>
<pathelement location="lib/javassist-3.24.0-GA.jar"/>
<pathelement location="lib/javax.activation-api-1.2.0.jar"/>
<pathelement location="lib/javax.persistence-api-2.2.jar"/>
<pathelement location="lib/jaxb-api-2.3.1.jar"/>
<pathelement location="lib/jaxb-runtime-2.3.1.jar"/>
<pathelement location="lib/jboss-logging-3.3.2.Final.jar"/>
<pathelement location="lib/jboss-transaction-api_1.2_spec-1.1.1.Final.jar"/>
<pathelement location="lib/jcommander-1.72.jar"/>
<pathelement location="lib/mysql-connector-java-8.0.19.jar"/>
<pathelement location="lib/servlet-api-2.3.jar"/>
<pathelement location="lib/stax-ex-1.8.jar"/>
<pathelement location="lib/spring-aop-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-aspects-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-beans-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-context-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-context-support-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-core-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-expression-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-instrument-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-jdbc-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-jms-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-messaging-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-orm-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-oxm-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-test-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-web-5.2.3.RELEASE.jar"/>
<pathelement location="lib/spring-webmvc-5.2.3.RELEASE.jar"/>
<pathelement location="lib/testng-6.14.3.jar"/>
<pathelement location="lib/txw2-2.3.1.jar"/>
</path>
<target name='build' description='Compile main source tree java files'>
<mkdir dir='${build.dir}' />
<javac destdir='${build.dir}' source='1.8' target='1.8' debug='true'
deprecation='false' optimize='false' failonerror='true'>
<src path='${src.dir}' />
<classpath refid='cmc_prak.classpath' />
</javac>
</target>
<target name='deploy' depends='build' description='Deploy application'>
<copy todir='${deploy.path}/${name}' preservelastmodified='true'>
<fileset dir='${web.dir}'>
<include name='**/*.*' />
</fileset>
</copy>
</target>
<target name='deploywar' depends='build'
description='Deploy application as a WAR file'>
<war destfile='${name}.war' needxmlfile='false'>
<fileset dir='${web.dir}'>
<include name='**/*.*' />
</fileset>
</war>
<copy todir='${deploy.path}' preservelastmodified='true'>
<fileset dir='.'>
<include name='*.war' />
</fileset>
</copy>
</target>
<target name="make_web" depends="build, deploy, deploywar"/>
</project>