Changeset 4785 for openmrs/branches/complex-obs/build.xml
- Timestamp:
- 07/02/08 19:40:36 (5 months ago)
- Files:
-
- openmrs/branches/complex-obs/build.xml (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/complex-obs/build.xml
r4417 r4785 163 163 </target> 164 164 165 <target name="package-all" depends="package-api,package-api-tests,package-web-src" 166 description="packages api, test, and web jars for use in modules"/> 167 165 168 <target name="package-api" depends="compile-api" description="create api jar"> 166 169 <mkdir dir="${dist.dir}" /> … … 214 217 <compilerarg line="${compile.arguments}" /> 215 218 </javac> 216 <copy todir="${build.dir}"> 217 <fileset dir="${test.dir}/api/org/openmrs/test" includes="TestingApplicationContext.xml" /> 218 <fileset dir="${test.dir}/api/org/openmrs/test/include/" includes="initialInMemoryTestDataSet.xml" /> 219 </copy> 219 220 <!-- move files over that are required for modules to use this test-openmrs-api*.jar file --> 221 <copy todir="${build.dir}/org/openmrs/test" file="${test.dir}/api/org/openmrs/test/TestingApplicationContext.xml" /> 222 <copy todir="${build.dir}/org/openmrs/test/include" file="${test.dir}/api/org/openmrs/test/include/initialInMemoryTestDataSet.xml" /> 223 220 224 </target> 221 225 … … 227 231 </manifest> 228 232 <fileset dir="${build.dir}"> 233 <exclude name="**/web/test/*.class" /> 229 234 <include name="**/test/*.class" /> 230 <include name=" TestingApplicationContext.xml" />231 <include name=" **/initialInMemoryTestDataSet.xml" />235 <include name="org/openmrs/test/TestingApplicationContext.xml" /> 236 <include name="org/openmrs/test/include/initialInMemoryTestDataSet.xml" /> 232 237 </fileset> 233 238 </jar> … … 246 251 </target> 247 252 248 <target name="deploy" depends="package-web" if="tomcat.home" description="Move war into the tomcat's webapps directory"> 249 <copy todir="${tomcat.home}/webapps"> 250 <fileset file="${dist.dir}/${webapp.name}.war" /> 251 </copy> 253 <!-- 254 TODO: The 'deploy' target doesn't work all that well with our setup for some reason. 255 --> 256 <target name="deploy" depends="package-web" if="tomcat.home" description="Move war into the tomcat's webapps directory - "> 257 <echo message="Deploying webapp to Tomcat. NOTE: The 'deploy' target is not working as expected yet."/> 258 <war src="${dist.dir}/${webapp.name}.war" 259 dest="${tomcat.home}/webapps/${webapp.name}"/> 252 260 </target> 261 262 <target name="undeploy" if="tomcat.home" description="undeploy war file to servlet container's deployment dir"> 263 <echo message="Undeploying webapp from Tomcat"/> 264 <delete file="${tomcat.home}/webapps/${webapp.name}.war"/> 265 <delete dir="${tomcat.home}/webapps/${webapp.name}"/> 266 </target> 267 253 268 254 269 <target name="deploy-web" description="standalone copy web target"> … … 266 281 </copy> 267 282 </target> 283 284 285 286 268 287 269 288 <target name="package-web-init" depends="compile-web" description="start creation of webapp. Use package-web for complete"> … … 536 555 </target> 537 556 557 558 559 538 560 </project>