如何在没有现有源文件的情况下创建新的 Java 项目,并能够使用 NetBeans 手动编辑 Ant 脚本 [英] How do I create a new Java project, without existing source files, with the ability to manually edit the Ant script using NetBeans

查看:27
本文介绍了如何在没有现有源文件的情况下创建新的 Java 项目,并能够使用 NetBeans 手动编辑 Ant 脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这似乎是一件相当普遍的事情.我想创建一个没有任何现有源文件但能够编辑 Ant 脚本的新 Java 应用程序.

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.

推荐答案

您应该能够编辑 Netbeans 作为新项目的一部分生成的任何 Ant 文件.它们作为 build.xml 存储在项目文件夹(包含 nbproject 目录的文件夹)中,后者又引用了 build-impl.xml.

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.

这个想法是您可以编辑 build.xml 以覆盖 build-impl.xml 中的 Ant 目标.

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

这篇关于如何在没有现有源文件的情况下创建新的 Java 项目,并能够使用 NetBeans 手动编辑 Ant 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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