钩入Eclipse构建过程? [英] Hook into the Eclipse build process?

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

问题描述

我希望能够在Eclipse中按下构建按钮时运行一个简单的Java程序。当我单击构建时,它运行一些JRebel日志记录代码。我有一个解析JRebel日志文件并将数据存储在DB中的程序。

I'd like to be able to run a simple Java program when the build button is pressed in Eclipse. Currently when I click build, it runs some JRebel logging code. I have a program that parses the JRebel log file and stores statistics in a DB.

是否可以编写插件或以某种方式挂接到Eclipse的构建过程中在JRebel日志记录完成之后,它会运行我的程序来自动解析文件?

Is it possible to write a plugin or somehow hook into the build process of Eclipse, so that after the JRebel logging is done, it will run my program to parse the file automatically?

任何帮助将不胜感激,即使你只能指出我的权利方向

Any help would be appreciated, even if you could just point me in the right direction.

提前感谢

推荐答案

定制 Builder 到您的Java项目。

You can add a custom Builder to your java project.

右键单击您的项目。选择属性

Right-click on your project. Select Properties.

在左侧的树中选择'Builders'。

In the tree on the left side choose 'Builders'.

您可以添加蚂蚁脚本或特定程序。您还可以选择此工具何时运行(Java Builder之前或之后)。

You can either add an ant script or specific program. You also have ability to choose when this tool will be running ( before or after Java Builder ).

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

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