root/okpoll/build.xml

리비전 5, 3.7 kB (mefour에 의해 체크인됨, 16 년 전)

--

  • svn:mime-type 속성이 text/plain (으)로 설정되어있습니다.
Line 
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- ======================================================================
3      2009. 9. 5. �ㅽ� 1:27:24                                                       
4
5      project   
6      description
7                    
8      3媛����                                                               
9      ====================================================================== -->
10 <project name="project" default="compile">
11         <description>
12             description
13     </description>
14         <property name="src.home" value="src"/>
15         <property name="catalina.home" value="D:/tkwoo/apache-tomcat-6.0.20"/>
16         <property name="publish.home" value="${catalina.home}/webapps/ROOT"/>
17         <property name="findbugs.home" value="D:/tkwoo/findbugs-1.3.9/findbugs-1.3.9"/>
18         <property name="build" value="${publish.home}/WEB-INF/classes"/>
19
20         <path id="compile.classpath">
21                 <!-- Include all elements that Tomcat exposes to applications -->
22                 <fileset dir="${catalina.home}/lib">
23                         <include name="*.jar"/>
24                 </fileset>
25                 <!-- Include all elements for this application only -->
26                 <fileset dir="WebContent/WEB-INF/lib">
27                         <include name="*.jar"/>
28                 </fileset>
29         </path>
30         <path id="test.classpath">
31                 <!-- Include all elements that Tomcat exposes to applications -->
32                 <fileset dir="${catalina.home}/lib">
33                         <include name="*.jar"/>
34                 </fileset>
35                 <!-- Include all elements for this application only -->
36                 <fileset dir="WebContent/WEB-INF/lib">
37                         <include name="*.jar"/>
38                 </fileset>
39                 <path location="${publish.home}/WEB-INF/classes"></path>
40                 <path location="dst_test"></path>
41         </path>
42
43        
44         <!-- =================================
45           target: compile             
46          ================================= -->
47         <target name="compile" depends="depends" description="description">
48                 <mkdir dir="${build}"/>
49                 <copy todir="${publish.home}">
50                         <fileset dir="WebContent">
51                                 <exclude name="**/*.java" />
52                         </fileset>
53                 </copy>
54
55                 <javac srcdir="${src.home}" destdir="${build}"
56                         debug="on" >
57                         <classpath refid="compile.classpath"/>
58                     <include name="**/*.java"/>
59                         <exclude name="**/*Test*.java" />
60                 </javac>
61                
62                 <mkdir dir="dst_test"/>
63                 <javac srcdir="${src.home}"
64                 debug="on"
65              destdir="dst_test">
66                         <include name="**/*Test*.java" />
67                         <classpath refid="test.classpath"/>
68                 </javac>
69
70         </target>
71
72         <!-- - - - - - - - - - - - - - - - - -
73           target: depends                     
74          - - - - - - - - - - - - - - - - - -->
75         <target name="depends">
76         </target>
77        
78         <target name="test" depends="compile">
79                 <delete dir="report"/>
80                 <mkdir dir="report"/>
81                 <junit printsummary="on" haltonfailure="off">
82                         <classpath refid="test.classpath">
83                         </classpath>
84                         <formatter type="xml"/>
85                         <batchtest todir="report">
86                                 <fileset dir="dst_test">
87                                     <include name="**/*Test.class"/>
88                                     <exclude name="**/AllTests.class"/>
89                                 </fileset>
90                         </batchtest>
91                 </junit>
92
93                 <mkdir dir="${publish.home}/test/report"/>
94                 <junitreport todir="report">
95                         <fileset dir="report">
96                             <include name="TEST-*.xml"/>
97                         </fileset>
98                         <report format="frames" todir="${publish.home}/test/report"/>
99
100                 </junitreport>
101         </target>
102        
103         <taskdef name="findbugs" classname="edu.umd.cs.findbugs.anttask.FindBugsTask"/>
104
105         <target name="findbugs">
106                 <findbugs home="${findbugs.home}"
107                 output="xml:withMessages"
108                 outputFile="findbugs.xml" >
109                         <auxClasspath path="${catalina.home}/lib/servlet-api.jar" />
110                         <auxClasspath path="${catalina.home}/lib/jsp-api.jar" />
111                         <sourcePath path="${basedir}/src" />
112                         <class location="${publish.home}/WEB-INF/classes" />
113                 </findbugs>
114         </target>
115
116
117 </project>
참고: 소스 브라우저를 사용하면서 도움이 필요하다면, TracBrowser를 참고하십시오.