使用构建标签修改AndroidManifest.xml会导致Eclipse中的无限重建 [英] Modifying AndroidManifest.xml with build tag causes infinite rebuilding in Eclipse

查看:231
本文介绍了使用构建标签修改AndroidManifest.xml会导致Eclipse中的无限重建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在我的Android构建系统中添加了一个标签/日期戳系统,类似于Stack Overflow上找到的线程:

I've added a tagging / date-stamping system to my Android build system similar to the thread found here on Stack Overflow: embed version details in android APK

这对我来说非常棒,该帖子很棒,我只是修改了Perl放入一个datestamp,如下所示:

This worked out great for me, The post was awesome and I simply modified the Perl to put in a datestamp like thus:

perl -npi -e 's/(Build Date:)(.+)(DEV-MOB)/"Build Date: " . localtime() . " DEV-MOB"/e;' $MANIFEST

我现在处理的问题是Eclipse希望继续建设。一旦看到AndroidManifest.xml已经更改,它将启动另一个自动建立,从而更改AndroidManifest.xml并引发另一个autobuild ...冲洗,泡沫,重复。

The issue I'm dealing with now is that Eclipse wants to continue building over and over. As soon as it sees that the AndroidManifest.xml has changed, it starts another autobuild, thereby changing the AndroidManifest.xml and sparking another autobuild... Rinse, lather, repeat.

我已经关闭了自动构建,结果对我来说很好(即只建立在调试部署和/或清理之后),而不是每个文件保存和/或更改,因为Eclipse是想要的去做。同事们希望Autobuild正常工作,并说我的日期戳有缺陷。

I've turned off the "Build Automatically," and the result are fine for me (i.e. only build on a debugging deployment and/or after a clean), not on every single file save and/or change as Eclipse is want to do. Co-worker wants the Autobuild functioning as normal, and says my date stamping is defective otherwise.

如何让Builder将树标记为刷新和/或者是修改AndroidManifest.xml之后的最新版本,以便树不会保持循环?看起来像刷新的标记被评估,并在之前的版本之后触发一个新的构建。

How do I get the "Builder" to mark the tree as refreshed and/or up-to-date after modifying the AndroidManifest.xml, so that the tree doesn't keep looping? Looks like the flag that says "refreshed" is evaluated and triggers a new build after the previous build.

谢谢,如果需要,我可以在日期戳上发布更多的细节。

Thanks, I can post more details on the date stamping if desired.

DD

推荐答案

检查您的构建器是否在项目中建筑商列表顺序。

Check that your builder comes first in the Project builders list order.

这篇关于使用构建标签修改AndroidManifest.xml会导致Eclipse中的无限重建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆