可以NetBeans的自动构建Java自由形式(蚂蚁)的项目? [英] Can NetBeans auto-build java free-form (Ant) projects?
问题描述
在每次保存我需要在项目浏览器中右击项目,然后点击建立
。
是否有配置NetBeans中的方式自动生成项目,当我保存文件?
After every save I need to right-click on the project in the project browser and click on build
.
Is there a way to configure NetBeans to auto-build the project when I save a file?
推荐答案
在保存选项编译不适用于自由格式项目为NetBeans的8.0版本。而且我不认为它将成为未来提供了。的自由形式的想法是,该IDE不知道你的项目什么,完全依赖于蚂蚁脚本和您提供的映射。
The compile on save option is not available for free-form projects as of NetBeans version 8.0. And I don't think it will be made available in future too. The very idea of free-form is that that IDE does not know anything about your project and completely relies on the ant-scripts and the mappings you provide.
如果你不希望每次更改文件的时间来建立一个完整的项目,蚂蚁创建一个目标来编译一个文件,并将其映射到IDE命令compile.single。如果需要,你可以添加一个上下文菜单,虽然现有的键盘快捷键F9就足够了。
If you don't want to build an entire project every time you make changes to a file, create a target in ant to compile a single file and map it to the IDE command compile.single. You could add a context menu for that if required, although the existing keyboard shortcut F9 should suffice.
您可以在这里阅读更多关于推进自由形式的配置 - 高级自由格式项目配置
You can read more on the advance free-form configuration here - Advanced Free-Form Project Configuration
这篇关于可以NetBeans的自动构建Java自由形式(蚂蚁)的项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!