Apache Ant - 如何包含从不同文件夹(和包)导入的文件?

Apache Ant - how to include files which are imported from different folder (and package)?

我基本上没有使用过 Ant,所以这可能是一个非常简单的问题。

现在我有这个:

<target name="compile-converter" description="Compile the converter.">
        <mkdir dir="${classes.build.dir}/converter" />
        <javac destdir="${classes.build.dir}/converter" debug="true" includeantruntime="false">
            <src path="${java.src.main.dir}" />
            <classpath>
                <pathelement path="${awh.jar.path}" />
            </classpath>
            <compilerarg value="-Xlint:all" />
        </javac>
    </target>

    <target name="compile-plugins" depends="compile-converter" description="Compile the plugins.">
        <mkdir dir="${classes.build.dir}/plugins" />
        <javac destdir="${classes.build.dir}/plugins" debug="true" includeantruntime="false">
            <src path="${java.src.plugins.dir}" />
            <classpath>
                <pathelement path="${awh.jar.path}" />
            </classpath>
            <compilerarg value="-Xlint:all" />
        </javac>
    </target>

属性是在此之前设置的。 当我 运行 Ant 时,它说插件中的 imoports 不存在。 我想它必须与 classpath 做一些事情,但我不知道该怎么做。
应该丢失的 class 位于文件中,该文件在“compile-converter”目标中编译。这两个文件位于不同的文件夹和包中。

我通过添加一个指向 ${classes.build.dir}/converter 的路径元素解决了这个问题