我有这个
<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元素生成的参数字符串?
答案 0 :(得分:1)
听起来像是pathconvert
task的工作,例如:
<pathconvert refid="bootclasspath" property="bootcp" pathsep=";"/>
...
<arg line="-classpath ${dir.classes};${bootcp} -d ${dir.classes} ${dir.classes} "/>