4
我宣佈以下的classpath引用了我的申請librairies:如何在戰爭任務中引用classpathref?
<path id="libraries">
<fileset dir="${lib.dir}" includes="**/*.jar" />
</path >
我可以使用librairies的類路徑編譯代碼:
<javac srcdir="${src}" destdir="${build.classes}" classpathref="libraries"/>
但我不能找到一種方法,包括的文件集librairies也是我WAR文件:
<war destfile="${release.dir}/rel.war" webxml="${webinf}">
<classes dir="${build.classes}"/>
<!-- I need to copy paste the same directory declaration! -->
<lib dir="${lib.dir}" includes="**/*.jar"/>
</war>
我怎麼能代替的東西了「LIB」聲明,重複使用相同的路徑在我javac任務?