-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.xml
79 lines (70 loc) · 2.56 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
78
79
<?xml version="1.0" encoding="UTF-8"?>
<!-- ======================================================================
2010. 8. 22. 오후 4:50:56
okjsphtml5
okjsp html5 deployment
kenu
====================================================================== -->
<project name="okjsphtml5" default="default">
<description>
okjsp html5 deployment
</description>
<property name="publish.home" value="/web/kenu/html5"/>
<property name="catalina.home" value="/web/local/java/apache-tomcat-6.0.29"/>
<path id="compile.classpath">
<!-- Include all elements that Tomcat exposes to applications -->
<fileset dir="${catalina.home}/lib">
<include name="*.jar"/>
</fileset>
<!-- Include all elements for this application only -->
<fileset dir="WebContent/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
</path>
<!-- =================================
target: default
================================= -->
<target name="default" depends="depends" description="okjsp html5 deployment">
<echo message="publish to ${publish.home}"/>
<copy todir="${publish.home}">
<fileset dir="WebContent">
<include name="**/*.jsp" />
<include name="**/*.htm*" />
<include name="**/equals.txt" />
<include name="favicon.ico" />
<include name="**/*.jpg" />
<include name="**/*.gif" />
<include name="**/*.png" />
<include name="**/*.swf" />
<include name="**/*.js" />
<include name="**/*.xml" />
<include name="**/*.xsl" />
<include name="**/*.tld" />
<include name="**/*.jar" />
<include name="**/*.css" />
<exclude name="**/*.bak" />
</fileset>
</copy>
<copy todir="${publish.home}/WEB-INF/classes">
<fileset dir="src">
<include name="**/*.properties" />
<include name="**/*.xml" />
</fileset>
</copy>
<javac srcdir="src"
debug="on"
destdir="${publish.home}/WEB-INF/classes" encoding="EUC-KR">
<!-- 위에서 설정한 classpath를 참조한다 -->
<include name="**/*.java" />
<classpath refid="compile.classpath"/>
</javac>
</target>
<!-- - - - - - - - - - - - - - - - - -
target: depends
- - - - - - - - - - - - - - - - - -->
<target name="depends">
<mkdir dir="${publish.home}/WEB-INF/classes"/>
<mkdir dir="${publish.home}/WEB-INF/lib"/>
<mkdir dir="${publish.home}/WEB-INF/conf"/>
</target>
</project>