mirror of
https://github.com/moparisthebest/JdbcMapper
synced 2024-11-29 12:12:15 -05:00
70 lines
2.7 KiB
XML
70 lines
2.7 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!--
|
|
Licensed to the Apache Software Foundation (ASF) under one or more
|
|
contributor license agreements. See the NOTICE file distributed with
|
|
this work for additional information regarding copyright ownership.
|
|
The ASF licenses this file to You under the Apache License, Version 2.0
|
|
(the "License"); you may not use this file except in compliance with
|
|
the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
See the License for the specific language governing permissions and
|
|
limitations under the License.
|
|
-->
|
|
|
|
<project name="Beehive/SystemControls/JUnitTests" default="build" basedir=".">
|
|
|
|
<import file="../../ant/test-imports.xml"/>
|
|
|
|
<taskdef name="apt" classname="org.apache.beehive.controls.runtime.generator.AptTask"
|
|
classpathref="controls.dependency.path" onerror="report"/>
|
|
<property name="module.name" value="junitTests"/>
|
|
<property name="module.dir" location="${test.src.dir}/jdbc/${module.name}"/>
|
|
<property name="module.gensrc.dir" location="${test.classes.dir}/${module.name}-generated-src"/>
|
|
<property name="module.classes.dir" location="${test.classes.dir}/${module.name}"/>
|
|
<property name="module.jar" location="${test.lib.dir}/${test-units.jar.name}"/>
|
|
|
|
<path id="junit.classpath">
|
|
<path refid="test-controls.dependency.path"/>
|
|
<path refid="jdbc-control.dependency.path"/>
|
|
<path refid="controls.dependency.path"/>
|
|
<path refid="xbean.dependency.path"/>
|
|
<path refid="junit.dependency.path"/>
|
|
<path refid="log4j.dependency.path"/>
|
|
<path refid="velocity.dependency.path"/>
|
|
<path refid="servlet.dependency.path"/>
|
|
</path>
|
|
|
|
<target name="build">
|
|
<echo>compile module: ${module.name}</echo>
|
|
<echo>output directory: ${test.lib.dir}</echo>
|
|
<echo>debug: ${compile.debug}</echo>
|
|
|
|
<mkdir dir="${module.classes.dir}"/>
|
|
<mkdir dir="${module.gensrc.dir}"/>
|
|
|
|
<!-- now build the unit tests -->
|
|
<apt srcdir="${module.dir}"
|
|
destdir="${module.classes.dir}"
|
|
gendir="${module.gensrc.dir}"
|
|
classpathref="junit.classpath"
|
|
compileByExtension="true"
|
|
debug="true"
|
|
nowarn="${compiler.nowarn}"/>
|
|
|
|
<control-jar destfile="${module.jar}" basedir="${module.classes.dir}"/>
|
|
</target>
|
|
|
|
<target name="clean">
|
|
<delete dir="${module.classes.dir}"/>
|
|
<delete file="${module.jar}"/>
|
|
</target>
|
|
|
|
</project>
|
|
|