You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
74 lines
3.1 KiB
74 lines
3.1 KiB
<?xml version="1.0" encoding="UTF-8"?> |
|
<!-- |
|
Copyright 2010 SpringSource |
|
|
|
Licensed 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="quality-aspect" xmlns:ivy="antlib:org.apache.ivy.ant"> |
|
|
|
<import file="common.xml"/> |
|
<import file="../common/quality.xml"/> |
|
|
|
<target name="test.do" depends="ivy.init, resolve.test, resolve.aspects, compile.init, test.init" if="test.exists"> |
|
<path id="test.compile.classpath"> |
|
<pathelement location="${jar.output.file}"/> |
|
<path refid="compile.classpath"/> |
|
<path refid="test.classpath"/> |
|
</path> |
|
<path id="test.aspect.path"> |
|
<pathelement location="${jar.output.file}"/> |
|
<path refid="aspects.classpath"/> |
|
</path> |
|
<test-compile classpath.id="test.compile.classpath" input.dir="${test.java.dir}" output.dir="${test.output.dir}" |
|
resources.dir="${test.resources.dir}"/> |
|
<iajc inPath="${test.output.dir}" aspectPathRef="test.aspect.path" classpathRef="test.compile.classpath" |
|
destDir="${test.output.dir}" source="${source.version}" checkRuntimeVersion="false" X="${aspectj.x}"/> |
|
|
|
<path id="test.run.classpath"> |
|
<pathelement location="${jar.output.file}"/> |
|
<pathelement location="${test.output.dir}"/> |
|
<path refid="compile.classpath"/> |
|
<path refid="test.classpath"/> |
|
<path refid="runtime.classpath"/> |
|
</path> |
|
<test-run classpath.id="test.run.classpath"/> |
|
</target> |
|
|
|
<target name="clover.instrument" depends="ivy.init, resolve.aspects, resolve.test, compile.init, clover.init"> |
|
<instrument input.dir="${main.java.dir}" output.dir="${main.clover.dir}"/> |
|
<path id="clover.compile.classpath"> |
|
<path refid="clover.classpath"/> |
|
<path refid="compile.classpath"/> |
|
</path> |
|
<compile classpath.id="clover.compile.classpath" input.dir="${main.clover.dir}" output.dir="${main.output.dir}" |
|
resources.dir="${main.resources.dir}"/> |
|
|
|
<instrument input.dir="${test.java.dir}" output.dir="${test.clover.dir}"/> |
|
<path id="test.compile.classpath"> |
|
<pathelement location="${main.output.dir}"/> |
|
<path refid="clover.classpath"/> |
|
<path refid="compile.classpath"/> |
|
<path refid="test.classpath"/> |
|
</path> |
|
<path id="test.aspect.path"> |
|
<pathelement location="${main.output.dir}"/> |
|
<path refid="aspects.classpath"/> |
|
</path> |
|
<test-compile classpath.id="test.compile.classpath" input.dir="${test.clover.dir}" output.dir="${test.output.dir}" |
|
resources.dir="${test.resources.dir}"/> |
|
<iajc inPath="${test.output.dir}" aspectPathRef="test.aspect.path" classpathRef="test.compile.classpath" |
|
destDir="${test.output.dir}" source="${source.version}" checkRuntimeVersion="false" X="${aspectj.x}"/> |
|
<delete dir="${clover.staging.dir}" quiet="true"/> |
|
</target> |
|
|
|
</project> |