我正在尝试在我们的ant构建文件中的类路径中添加一些文件夹。
<dirset dir="${env.WT_HOME}/codebase/com/lcs/wc/">
<include name="flexbom flexQuerySpec flextype foundation material util moa" />
</dirset>
所有这些文件夹(即'flexbom''flexQuerySpec'...)都位于codebase / com / lcs / wc文件夹内。每个文件夹都有几个类文件。我想将所有这些类文件添加到路径中。
以上脚本似乎无效。我仍然找不到这些文件夹/软件包的类。
<include>
或<fileset>
中的嵌套<dirset>
元素指定匹配模式,每个元素一个模式,而不是列表。
一种替代方法是使用<dirset>
属性,如下所示:
includes
或多个包含元素:
<dirset dir="${env.WT_HOME}/codebase/com/lcs/wc/"
includes="flexbom flexQuerySpec flextype foundation material util moa" />