自动 Ant 构建 - 有任何开源项目可以发现文件系统中的更改以启动构建吗?
有没有人发现任何方法可以根据文件系统的更改自动触发 ant 构建过程?
我基本上希望我的 ant 构建系统能够像 IDE(编译 java 类)一样开始构建,但通过某种命令行服务进行构建。
如果没有,总是可以使用 Java 进行编码并将 Ant API 集成到其中。
我熟悉 Jenkins 等持续集成系统,但是我需要触发构建而不是签入。另外,我希望它独立于 IDE,因为它可以在保存后工作。
我正在寻找没有源代码控制要求的独立构建服务。
Has anybody discovered any means to fire an ant build process automatically based on file system changes?
I basically want my ant build system to begin building similar to an IDE (compile java classes) but from some sort of command line service.
If not, there's always coding one up with Java and integrating the Ant API into it.
I am familiar with continuous integration systems like Jenkins and the like, however I need the build to be fired not check-in. Also I would like it to be independent of the IDE, as that could work on post-save.
I'm looking for an independent build service without source control requirements.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
由于您使用的是 ant,我假设基于 java 的目录轮询程序将在这里提供帮助。 api编写程序
您可以使用IO通知 从页面
编辑
在我写下这个问题及其答案之后似乎更有用: 是否有用于 Java 的免费或开源的复杂文件系统监视器?
Since you are using ant I assume a java based directory polling program will help here. You can write a program using IO notification api
Notes from the page
Edit
After I wrote that this question and its answer seems to be more useful here: Is there a sophisticated file system monitor for Java which is freeware or open source?
广泛实践的方式是“持续构建”/“持续集成”的方式。示例工作流程:
很多持续集成服务器( Bamboo、Jenkins、Go)原生支持 Ant。
您还可以在 IDE 中设置保存后挂钩。大多数现代都支持它:IntelliJ、NetBeans、Eclipse。
在谷歌中查找“持续集成”。
The widely practiced way is a way of "continuous build" / "continuous integration". A sample work-flow:
Lot's of continuous integration servers (Bamboo, Jenkins, Go) support Ant natively.
You can also set up post-save hooks in your IDE. Most modern ones support it: IntelliJ, NetBeans, Eclipse.
Look up "continuous integration" in google.
一位朋友向我指出了这一点:
https:// serverfault.com/questions/179706/how-can-i-trigger-a-script-to-run-after-the-rsyncdaemon-received-file-changes-to
一个小脚本,用于监视更改并执行独立任务。
如果有人有更好的直接使用 ANT 脚本的方法,请告诉我。
A friend pointed me to this:
https://serverfault.com/questions/179706/how-can-i-trigger-a-script-to-run-after-the-rsyncdaemon-received-file-changes-to
A little script to monitor for changes and execute and independent task.
If anyone has a better method that works with ANT scripts directly, let me know.