由於從螞蟻1.6.5升級到1.7.1,我的體型輸出開始與:什麼是Ant運行警告「參考*尚未在運行時設置...」是什麼意思?
Warning: Reference project.classpath has not been set at runtime, but was found during
build file parsing, attempting to resolve. Future versions of Ant may support
referencing ids defined in non-executed targets.
Warning: Reference project.test.classpath has not been set at runtime, but was found during
build file parsing, attempting to resolve. Future versions of Ant may support
referencing ids defined in non-executed targets.
我有問題的理解這一點,爲什麼它被輸出,更不用說試圖擺脫它。任何幫助,將不勝感激!
編輯:
類路徑定義:
<path id="project.classpath">
<pathelement path="./${build.dir}" />
<path refid="libs.ant" />
<fileset dir="${lib.dir}/dependencies/bar" includes="compile/*.jar" />
<fileset dir="${lib.dir}/dependencies/foo" includes="provided/*.jar" />
</path>
<!-- The classpath for compiling this projects' tests -->
<path id="project.test.classpath">
<path refid="project.classpath" />
<fileset dir="${lib.dir}/dependencies/bar" includes="test/*.jar" />
<fileset dir="${lib.dir}/dependencies/foo" includes="test/*.jar" />
</path>
<property name="project.classpath" refid="project.classpath" />
它引用(例如)以這樣的方式
<classpath refid="project.classpath"/>
你可以顯示相關的代碼,設置/使用project.classpath?它看起來像你可能有兩個同名的引用或一個未使用的引用。 – 2011-04-22 00:24:17
嗨,珍妮,我編輯了這個問題。謝謝。 – vahidg 2011-04-22 17:12:03