1
pathelement
是什么意思?pathelement在构建文件中表示什么?
<path id="master-classpath">
<fileset dir="${web.dir}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
pathelement
是什么意思?pathelement在构建文件中表示什么?
<path id="master-classpath">
<fileset dir="${web.dir}/WEB-INF/lib">
<include name="*.jar"/>
</fileset>
<pathelement path="${build.dir}"/>
</path>
请参阅Ant文档中的path-like structures。一个pathelement是一个路径的一部分。
如果您将路径视为位置列表 - 例如,目录 - 你可以构成一个路径输出的位置,或者更短的路径,或两者的组合:
Path X: a\1:b\2 # Two locations/one path
Path Y: c\3 # One location/one path
Path XY: a\1:b\2:c\3 # Three locations/one path
甲pathelement
可以指定path
(即,一个或多个位置),或者一个单个location
:
<path id=X">
<pathelement path="a\1:b\2"/>
</path>
<path id=Y">
<pathelement location="c\3"/>
</path>