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>