1
在ant中,如何将文件的文件路径转换为相对路径?以下是我迄今为止仍然保持完整路径,文件从完整路径转换为相对路径
<path id="build.classpath">
<fileset dir="../../lib">
<include name="*.jar"/>
</fileset>
</path>
<pathconvert property="mf.classpath" pathsep=" " refid="build.classpath">
<map from="${build.classpath}" to="lib/"/>
</pathconvert>