我如何从环境中找到CLASSPATH。
我受审
<property environment="env"/>
<path id="classpath">
<pathelement location="${env.CLASSPATH}"/>
</path>
<target name="compile">
<javac includeantruntime="false">
<src path="${src}"/>
<classpath refid="classpath"/>
</javac>
</target>
I have a feeling this is failing because ${env.CLASSPATH} is a colon-separated list. How then, can I get my classpath? I was surprised when ant didn t use my environment s CLASSPATH.
EDIT:
I ve找到了一种快捷的解决办法,但优先的方法是使用一个单独的财产档案,例如:。
解决办法是,增加
<property name="build.sysclasspath" value="first"/>
页: 1