【发布时间】:2011-03-15 10:29:05
【问题描述】:
显然,我可以使用 build.properties 中的 source.dir 属性指定源文件夹 - 但如果我想指定多个源文件夹怎么办?
下面的cmets来自Android SDK工具生成的build.xml文件:
<!-- The build.properties file can be created by you and is never touched
by the 'android' tool. This is the place to change some of the default property values
used by the Ant rules.
Here are some properties you may want to change/update:
application.package
the name of your application package as defined in the manifest. Used by the
'uninstall' rule.
source.dir
the name of the source directory. Default is 'src'.
out.dir
the name of the output directory. Default is 'bin'.
Properties related to the SDK location or the project target should be updated
using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your application and
should be checked in in Version Control Systems.
-->
注意:我不关心在 Eclipse 中构建 - 我使用 ant 设置自动构建。
【问题讨论】:
-
请说明您正在使用什么任务。 javac 任务不使用 source.dir 属性。
-
具体针对ANDROID项目,根据SDK的android CLI工具生成的cmets,可以在build.properties中指定source.dir。我会更新上面的问题并粘贴到 cmets 中。
标签: android ant build directory