forked from dearmai/hamlet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_for_real.xml
More file actions
93 lines (84 loc) · 3.55 KB
/
build_for_real.xml
File metadata and controls
93 lines (84 loc) · 3.55 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
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
Any modifications will be overwritten.
To include a user specific buildfile here, simply create one in the same
directory with the processing instruction <?eclipse.ant.import?>
as the first entry and export the buildfile again. -->
<project basedir="." default="deploy" name="HAMLET">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="workspace.dir" value="${basedir}"/>
<property name="lib.dir" value="${workspace.dir}/WebContent/WEB-INF/lib"/>
<property name="source.dir" value="${workspace.dir}/src"/>
<property name="build.dir" value="${basedir}/build"/>
<property name="web.dir" value="${workspace.dir}//WebContent"/>
<property name="deploy.dir" value="/home/www/hamlet.sencha.or.kr"/>
<property name="java.target.ver" value="1.6"/>
<property name="java.source.ver" value="1.6"/>
<path id="HAMLET.classpath">
<pathelement location="${build.dir}"/>
<fileset dir="${lib.dir}">
<include name="*.jar"/>
<include name="*.zip"/>
</fileset>
</path>
<!-- init -->
<target name="init">
<echo message="------ HAMLET Project Jenkins Init ---------" />
<echo message="workspace.dir : ${workspace.dir}" />
<echo message="lib.dir : ${lib.dir}" />
<echo message="source.dir : ${source.dir}" />
<echo message="build.dir : ${build.dir}" />
<echo message="web.dir : ${web.dir}" />
<echo message="deploy.dir : ${deploy.dir}" />
<tstamp>
<format property="DSTAMP" pattern="yyyy-MM-dd" />
<format property="TSTAMP" pattern="HH:mm:ss" />
</tstamp>
<echo message="${ant.project.name} build started at : ${DSTAMP} ${TSTAMP}" />
<mkdir dir="${build.dir}"/>
<mkdir dir="${deploy.dir}/WEB-INF/classes"/>
</target>
<!-- clean -->
<target name="clean">
<delete dir="${build.dir}"/>
</target>
<!-- cleanall -->
<target depends="clean" name="cleanall"/>
<!-- build -->
<target depends="init" name="build">
<echo message="---- build Start ----"/>
<echo message="${ant.project.name}: ${ant.file}"/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${build.dir}" includeantruntime="false" source="${java.source.ver}" target="${java.target.ver}" encoding="UTF-8">
<src path="${source.dir}"/>
<classpath refid="HAMLET.classpath"/>
</javac>
</target>
<!-- deploy -->
<target name="deploy" depends="build" description="Deploy application">
<echo message="### deploy JSP Start : ${deploy.dir} + ${web.dir}" />
<copy todir="${deploy.dir}" preservelastmodified="true">
<fileset dir="${web.dir}">
<include name="**/*" />
</fileset>
</copy>
<echo message="### deploy JSP END " />
<copy todir="${deploy.dir}/WEB-INF/classes" preservelastmodified="true">
<fileset dir="${source.dir}">
<include name="**/*.xml" />
<include name="**/*.properties" />
</fileset>
</copy>
<copy todir="${deploy.dir}/WEB-INF/lib" preservelastmodified="true">
<fileset dir="${lib.dir}">
<include name="*.jar"/>
<include name="*.zip"/>
</fileset>
</copy>
<copy todir="${deploy.dir}/WEB-INF/classes" preservelastmodified="true">
<fileset dir="${build.dir}">
<include name="**/*.*" />
</fileset>
</copy>
</target>
</project>