我有这个
<path id="bootclasspath">
<pathelement path="${J2MEWTK.HOME}/lib/cldcapi10.jar"/>
<pathelement path="${J2MEWTK.HOME}/lib/cldcapi11.jar"/>
<pathelement path="${J2MEWTK.HOME}/lib/midpapi10.jar"/>
<pathelement path="${J2MEWTK.HOME}/lib/midpapi20.jar"/>
<pathelement path="${J2MEWTK.HOME}/lib/midpapi21.jar"/>
</path>
女巫,我需要一些过去,也需要一些我有这个的地方:
<arg line="-classpath ${dir.classes};${J2MEWTK.HOME}/lib/cldcapi10.jar;${J2MEWTK.HOME}/lib/cldcapi11.jar;{J2MEWTK.HOME}/lib/midpapi10.jar;${J2MEWTK.HOME}/lib/midpapi20.jar;${J2MEWTK.HOME}/lib/midpapi21.jar -d ${dir.classes} ${dir.classes} "/>
它可以工作,但问题是:如何编写要从path元素生成的参数字符串?
听起来像是pathconvert
任务的作业,类似于:
<pathconvert refid="bootclasspath" property="bootcp" pathsep=";"/>
...
<arg line="-classpath ${dir.classes};${bootcp} -d ${dir.classes} ${dir.classes} "/>