How do I create a new Java project, without existing source files, with the ability to manually edit the Ant script using NetBeans

蓝咒 提交于 2019-12-12 19:56:12

问题


It seems like it's a fairly common thing to do. I want to create a new Java application that does not have any existing source files, but be able to edit the Ant scripts.


回答1:


You should be able to edit any Ant file that Netbeans generates as part of a new project. They're stored in the project folder (the one that contains the nbproject directory) as build.xml, which in turn references build-impl.xml.

The idea is that you can edit build.xml in order to override the Ant targets in build-impl.xml.



来源:https://stackoverflow.com/questions/984605/how-do-i-create-a-new-java-project-without-existing-source-files-with-the-abil

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!