我 way想在我的Eclipse来源的基础上做一纸空文。 最终目标是,在投入和产出完全超出Eclipse档案结构的情况下,将Eclipse来源投入到一个倍数。
这是自我使用Ant语以来的一段时期,因此Im逐渐发表评论,然后从标准建筑的Xml中分离出在你从指挥线建造一个样本项目时产生的参数。 我会作很多回响,以确保它能够在我实际上让它做些什么之前获得这些名录。 我开始在建筑顶端有一个简单的司法目标,而这个目标只是同司法部门一样的。
当时,我没有讨论这个范畴:
<!-- Custom Android task to deal with the project target, and import the
proper rules.
This requires ant 1.6.0 or above. -->
<path id="android.antlibs">
<pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
<pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
<pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
</path>
<taskdef name="setup"
classname="com.android.ant.SetupTask"
classpathref="android.antlibs" />
<!-- Lots of commented out stuff -->
<setup />
Once I let this run, then the echo I did have disappears and I get the following output
[setup] Android SDK Tools Revision 7
[setup] Project Target: Google APIs
[setup] Vendor: Google Inc.
[setup] Platform Version: 2.1-update1
[setup] API level: 7
[setup]
[setup] ------------------
[setup] Resolving library dependencies:
[setup] ------------------
[setup] Ordered libraries:
[setup] ------------------
[setup]
I m expecting it to fail of course, because I haven t set up any input/output/lib directories in the .properties files. I am curious to know why the taskdef itself runs when I only invoke the junk target. I d also like to know what the SetupTask and all the others in the anttasks.jar actually do and where I can find some documentation for them.