/
build.xml
58 lines (44 loc) · 1.58 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
<?xml version="1.0"?>
<project name="cms-converter-tool" default="deploy_local" basedir=".">
<property file="build.properties" />
<path id="classpath">
<fileset dir="${lib.dir}" includes="commons-io-2.1.jar, commons-lang-2.6.jar,commons-lang3.jar, commons-logging-1.1.1.jar,dom4j-1.6.1.jar ,dps-sdk-7.2.0.jar, oracle12c-1.0.2.0.jar ,xmlbeans-2.6.0.jar, log4j-core-2.17.1.jar, log4j-api-2.17.1.jar" />
</path>
<target name="clean">
<echo>Cleaning the ${build.dir}</echo>
<delete dir="${build.dir}" />
<delete dir="${dist.dir}" />
</target>
<target name="init" depends="clean">
<echo>Creating the build directory</echo>
<mkdir dir="${build.dir}/WEB-INF/classes" />
<mkdir dir="${build.dir}/WEB-INF/lib" />
<mkdir dir="${dist.dir}" />
</target>
<target name="compile" depends="init">
<echo>Compile the source files</echo>
<javac srcdir="${src.dir}" destdir="${build.dir}" debug="true">
<classpath refid="classpath" />
</javac>
</target>
<target name="copy" depends="compile">
<copy todir="${build.dir}/${lib.dir}">
<fileset dir="${lib.dir}">
<exclude name="servlet-api-2.4.jar" />
</fileset>
</copy>
</target>
<target name="jar" description="Create Jar file" depends="copy">
<echo>Building the war file</echo>
<jar destfile="${project.name}/lib/${project.name}.jar">
<fileset dir="${build.dir}" />
</jar>
</target>
<target name="deploy_local" depends="jar">
<echo>Deploying .jar to local Tomcat</echo>
<copy todir="${tomcat.dir}/${project.name}.jar">
<fileset dir="${project.name}">
</fileset>
</copy>
</target>
</project>