目标build-dev在此项目build-test.xml中不存在

时间:2014-03-08 11:51:33

标签: ant build

在我的项目中有一组ant文件。 在其中一个ant文件中,它会出现上述错误。

在build-test.xml文件中,一个ant目标依赖于“build-dev”目标,该目标位于同一目录中的build-dev.xml文件中。

这是什么问题?

已定义跟随目标的build-dev.xml中的

target name="build-dev" description="Compile the source code">
<echo>Building development classes ...</echo>
<foreach list="dev" param="type" target="build-core-type"/>

在build-test.xml文件中,它的引用如下

<target name="instrument" depends="build-dev" description="Instrument the Application Source classes">
<mkdir dir="${instrument.classes.dir}"/>
<!-- Create the coverage directory if it does not exist -->
<mkdir dir="${coverage.dir}"/>

<echo>Instrumenting application classes under 'artemispm' package ...</echo>
<!-- Instrument only the class files in artemispm.* package,
     and place the instrumented classes in ${instrument.classes.dir} directory -->
<emma enabled="${emma.enabled}">
  <instr instrpathref="instrument.classpath"
         destdir="${instrument.classes.dir}"
         metadatafile="${coverage.dir}/metadata.emma"
         mode="copy" merge="true">
    <filter includes="artemispm.*"/>
  </instr>
</emma>

有什么想法吗?

0 个答案:

没有答案
相关问题