Ant MANIFEST.MF Class-Path
<target name="2.manifest" depends="1.compile" description="Make MANIFEST.MF File">
<pathconvert dirsep='${file.separator}' property="full-lib-dir">
<path>
<pathelement path="lib"/>
</path>
</pathconvert>
<echo>full-lib-dir: ${full-lib-dir}</echo>
<pathconvert pathsep=" " dirsep="/" property="manifest-path">
<path>
<fileset dir="lib" includes="*"/>
</path>
<map from="${full-lib-dir}${file.separator}" to=""/>
</pathconvert>
<echo>manifest-path: ${manifest-path}</echo>
<pathconvert pathsep=" " dirsep="/" property="lib-manifest-path">
<path>
<fileset dir="lib" includes="*"/>
</path>
<map from="${full-lib-dir}${file.separator}" to="lib/"/>
</pathconvert>
<echo>lib-manifest-path: ${lib-manifest-path}</echo>
<manifest file="MANIFEST.MF">
<attribute name="Built-By" value="Duk"/>
<attribute name="Class-Path" value=". ${lib-manifest-path}"/>
</manifest>
</target>