之后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