Android的:如何挂钩到Eclipse构建项目? [英] Android: How to hook into Eclipse Build Project?

查看:119
本文介绍了Android的:如何挂钩到Eclipse构建项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在点击生成项目在Eclipse中运行自定义shell脚本。我试着修改build.xml中的编译一节,但我的剧本是没有得到运行。调用蚂蚁调试命令行上的作品,但是。

I would like to run a custom shell script upon clicking Build Project in Eclipse. I tried modifying the "compile" section in build.xml, but my script is not getting run. Invoking ant debug on the commandline works, however.

推荐答案

您不必涉及蚂蚁除非你已经想。

You needn't involve ant unless you already want to.

在某处菜单有建筑商的事。只需添加另外一个和定制。这使你的典型IDE运行外部命令与项目的路径,名称等,你可以在构建命令行中使用各类变量类型的能力。

Somewhere in the menus there is a thing for builders. Just add another one and customize it. This gives your typical IDE run-external-command type capability with assorted variables for project path, name, etc that you can use in constructing the command line.

请注意:虽然这个答案是为了说明的一般方法而不是细节,user149408表明,至少在某些的Eclipse版本,这将导航菜单的项目>属性并选择<实现STRONG>建筑工地。

Note: while this answer was intended to state the general approach rather then specifics, user149408 suggests that at least in some Eclipse versions, this would be achieved by navigating menus to Project > Properties and choosing Builders.

这篇关于Android的:如何挂钩到Eclipse构建项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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