之後referencing只是一個fewotherquestions,我發現這些答案都沒有在我的項目中工作。將jar放入每個單獨模塊的/ libs文件夾中,ant build正確運行並生成輸出。刪除所有/ libs文件夾並在我需要的每個模塊中包含一個ant.properties
文件(也叫做build.properties
)後,ant build停止工作。jar.libs.dir是否被正確覆蓋?
ant.properties:
# This file is used to override default values used by the Ant build system.
#
# This file must be checked in Version Control Systems, as it is
# integral to the build system of your project.
# This file is only used by the Ant script.
# You can use this to override default values such as
# 'source.dir' for the location of your java source folder and
# 'out.dir' for the location of your output folder.
jar.libs.dir=../ExternalJars/libs
在build.xml
<property file="ant.properties" />
<loadproperties srcFile="project.properties" />
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
<target name="full-debug" depends="debug">
</target>
<target name="full-release" depends="clean,release">
</target>
至於我可以告訴大家,這些文件被正確寫入 - 的尋路都是相對ant.properties正確文件,罐子應該在哪裏,模塊使用所有正確的類別和部件等。
想法?
不是我正在尋找的答案,但正確的答案都是一樣的。非常感謝你。 – 2012-07-25 15:48:25