|
Lines 36-42
Link Here
|
| 36 |
********************************************************************************--> |
36 |
********************************************************************************--> |
| 37 |
<project name="reporting-jsp" default="war" basedir="."> |
37 |
<project name="reporting-jsp" default="war" basedir="."> |
| 38 |
<property environment="env"/> |
38 |
<property environment="env"/> |
| 39 |
<property file="override.properties"/> |
39 |
<property file="${basedir}/override.properties"/> |
|
|
40 |
<property file="${basedir}/build.properties"/> |
| 40 |
|
41 |
|
| 41 |
<property name="dist" value="dist"/> |
42 |
<property name="dist" value="dist"/> |
| 42 |
<property name="target" value="target"/> |
43 |
<property name="target" value="target"/> |
|
Lines 53-66
Link Here
|
| 53 |
<property name="webcontent" value="webcontent"/> |
54 |
<property name="webcontent" value="webcontent"/> |
| 54 |
|
55 |
|
| 55 |
<property name="checkstyle.fail.on.violation" value="true"/> |
56 |
<property name="checkstyle.fail.on.violation" value="true"/> |
|
|
57 |
|
| 58 |
<property name="ant.jar" value="${lib}/ant.jar"/> |
| 59 |
<property name="batik-awt-util.jar" value="${lib}/batik-awt-util.jar"/> |
| 60 |
<property name="batik-svggen.jar" value="${lib}/batik-svggen.jar"/> |
| 61 |
<property name="batik-util.jar" value="${lib}/batik-util.jar"/> |
| 56 |
<property name="checkstyle.jar" value="${lib}/checkstyle-all-3.1.jar"/> |
62 |
<property name="checkstyle.jar" value="${lib}/checkstyle-all-3.1.jar"/> |
|
|
63 |
<property name="cewolf.jar" value="${lib}/cewolf.jar"/> |
| 64 |
<property name="commons-logging.jar" value="${lib}/commons-logging.jar"/> |
| 65 |
<property name="jcommon.jar" value="${lib}/jcommon-0.8.0.jar"/> |
| 66 |
<property name="jfreechart.jar" value="${lib}/jfreechart-0.9.8.jar"/> |
| 67 |
<property name="junit.jar" value="${lib}/junit.jar"/> |
| 68 |
<property name="optional.jar" value="${lib}/optional.jar"/> |
| 69 |
<property name="servlet.jar" value="${lib}/servlet.jar"/> |
| 70 |
<property name="xalan.jar" value="${lib}/xalan.jar"/> |
| 71 |
<property name="xerces.jar" value="${lib}/xerces.jar"/> |
| 72 |
|
| 73 |
<path id="compile.classpath"> |
| 74 |
<pathelement path="${servlet.jar}"/> |
| 75 |
<pathelement path="${xalan.jar}"/> |
| 76 |
<pathelement path="${cewolf.jar}"/> |
| 77 |
<pathelement path="${jfreechart.jar}"/> |
| 78 |
</path> |
| 57 |
|
79 |
|
| 58 |
<path id="project.runtime.classpath" > |
80 |
<path id="project.runtime.classpath" > |
| 59 |
<pathelement location="${lib}/servlet.jar"/> |
81 |
<pathelement path="${servlet.jar}"/> |
| 60 |
<pathelement location="${lib}/xalan.jar"/> |
82 |
<pathelement path="${xalan.jar}"/> |
| 61 |
<pathelement location="${lib}/junit.jar"/> |
83 |
<pathelement path="${junit.jar}"/> |
| 62 |
<pathelement location="${classes}"/> |
84 |
<pathelement path="${classes}"/> |
| 63 |
<pathelement location="${test.classes}"/> |
85 |
<pathelement path="${test.classes}"/> |
| 64 |
</path> |
86 |
</path> |
| 65 |
|
87 |
|
| 66 |
<target name="clean"> |
88 |
<target name="clean"> |
|
Lines 83-89
Link Here
|
| 83 |
<!-- Simian is failing even if no duplicated lines? --> |
105 |
<!-- Simian is failing even if no duplicated lines? --> |
| 84 |
<simian failOnDuplication="false"> |
106 |
<simian failOnDuplication="false"> |
| 85 |
<fileset dir="${src}" includes="**/*.java"/> |
107 |
<fileset dir="${src}" includes="**/*.java"/> |
| 86 |
</simian> |
108 |
</simian> |
| 87 |
</target> |
109 |
</target> |
| 88 |
|
110 |
|
| 89 |
<!-- **************************************************** --> |
111 |
<!-- **************************************************** --> |
|
Lines 99-112
Link Here
|
| 99 |
</checkstyle> |
121 |
</checkstyle> |
| 100 |
</target> |
122 |
</target> |
| 101 |
|
123 |
|
| 102 |
<target name="compile" depends="init,check-duplication,checkstyle"> |
124 |
<target name="compile" depends="init,check-duplication"> |
| 103 |
<javac srcdir="${src}" destdir="${classes}" debug="true"> |
125 |
<javac srcdir="${src}" destdir="${classes}" debug="true"> |
| 104 |
<classpath> |
126 |
<classpath refid="compile.classpath"/> |
| 105 |
<pathelement location="${lib}/servlet.jar"/> |
|
|
| 106 |
<pathelement location="${lib}/xalan.jar"/> |
| 107 |
<pathelement location="${lib}/cewolf.jar"/> |
| 108 |
<pathelement location="${lib}/jfreechart-0.9.8.jar"/> |
| 109 |
</classpath> |
| 110 |
</javac> |
127 |
</javac> |
| 111 |
</target> |
128 |
</target> |
| 112 |
|
129 |
|
|
Lines 119-127
Link Here
|
| 119 |
|
136 |
|
| 120 |
<target name="test" depends="compile-test" description="Executes the unit tests"> |
137 |
<target name="test" depends="compile-test" description="Executes the unit tests"> |
| 121 |
<junit fork="yes" forkmode="perBatch" haltonfailure="yes" printsummary="on" dir="${target}"> |
138 |
<junit fork="yes" forkmode="perBatch" haltonfailure="yes" printsummary="on" dir="${target}"> |
| 122 |
<classpath > |
139 |
<classpath refid="project.runtime.classpath" /> |
| 123 |
<path refid="project.runtime.classpath" /> |
|
|
| 124 |
</classpath> |
| 125 |
<formatter type="brief" usefile="false" /> |
140 |
<formatter type="brief" usefile="false" /> |
| 126 |
<formatter type="xml"/> |
141 |
<formatter type="xml"/> |
| 127 |
<batchtest todir="${test.results}" > |
142 |
<batchtest todir="${test.results}" > |
|
Lines 132-140
Link Here
|
| 132 |
|
147 |
|
| 133 |
<target name="test-one" depends="compile-test" description="Executes one unit test" if="testcase"> |
148 |
<target name="test-one" depends="compile-test" description="Executes one unit test" if="testcase"> |
| 134 |
<junit fork="yes" haltonfailure="yes" printsummary="on" dir="${target}"> |
149 |
<junit fork="yes" haltonfailure="yes" printsummary="on" dir="${target}"> |
| 135 |
<classpath > |
150 |
<classpath refid="project.runtime.classpath" /> |
| 136 |
<path refid="project.runtime.classpath" /> |
|
|
| 137 |
</classpath> |
| 138 |
<formatter type="brief" usefile="false"/> |
151 |
<formatter type="brief" usefile="false"/> |
| 139 |
<formatter type="xml" /> |
152 |
<formatter type="xml" /> |
| 140 |
<test name="${testcase}" todir="${junit.results}" /> |
153 |
<test name="${testcase}" todir="${junit.results}" /> |
|
Lines 162-184
Link Here
|
| 162 |
<input message="WARNING! Property cruise.build.artifacts.dir not set! Please enter the absolute path to the directory where additional build artifacts are stored:" |
175 |
<input message="WARNING! Property cruise.build.artifacts.dir not set! Please enter the absolute path to the directory where additional build artifacts are stored:" |
| 163 |
addproperty="cruise.build.artifacts.dir"/> |
176 |
addproperty="cruise.build.artifacts.dir"/> |
| 164 |
</target> |
177 |
</target> |
| 165 |
|
178 |
|
| 166 |
<target name="war" depends="test, create-web-xml"> |
179 |
<target name="war" depends="test, create-web-xml"> |
| 167 |
<war warfile="${deploy.dir}/cruisecontrol.war" webxml="${temp.dir}/web.xml"> |
180 |
<war warfile="${deploy.dir}/cruisecontrol.war" webxml="${temp.dir}/web.xml"> |
| 168 |
<fileset dir="${webcontent}" excludes="WEB-INF/web.xml"/> |
181 |
<fileset dir="${webcontent}" excludes="WEB-INF/web.xml"/> |
| 169 |
<classes dir="${classes}"/> |
182 |
<classes dir="${classes}"/> |
| 170 |
<lib dir="${lib}"> |
183 |
<lib dir="${lib}"> |
| 171 |
<include name="xalan.jar" if="pre1.4"/> |
184 |
<include name="xalan.jar" if="pre1.4"/> |
| 172 |
<include name="xerces.jar" if="pre1.4"/> |
185 |
<include name="xerces.jar" if="pre1.4"/> |
| 173 |
<include name="cewolf.jar"/> |
186 |
<include name="cewolf.jar"/> |
| 174 |
<include name="commons-logging.jar"/> |
187 |
<include name="commons-logging.jar"/> |
| 175 |
<include name="jfreechart-0.9.8.jar"/> |
188 |
<include name="jfreechart-0.9.8.jar"/> |
| 176 |
<include name="jcommon-0.8.0.jar"/> |
189 |
<include name="jcommon-0.8.0.jar"/> |
| 177 |
<include name="batik-svggen.jar"/> |
190 |
<include name="batik-svggen.jar"/> |
| 178 |
<include name="batik-awt-util.jar"/> |
191 |
<include name="batik-awt-util.jar"/> |
| 179 |
<include name="batik-util.jar"/> |
192 |
<include name="batik-util.jar"/> |
| 180 |
</lib> |
193 |
</lib> |
| 181 |
</war> |
194 |
</war> |
| 182 |
</target> |
195 |
</target> |
| 183 |
|
196 |
|
| 184 |
</project> |
197 |
</project> |