简体   繁体   English

Netbeans IDE - 如何更改ANT脚本的默认运行目标?

[英]Netbeans IDE - How can I change default run target of ANT script?

I just write ant script and do run it for test and now I complete my script and do test it. 我只是编写ant脚本并运行它进行测试,现在我完成我的脚本并进行测试。

But something annoy me is the default right-click run target is the first target that I chose for test on the first time. 但令我烦恼的是默认的右键单击运行目标是我第一次选择进行测试的第一个目标。 And I want to change this to another run target to be default. 我想将此更改为另一个运行目标为默认值。

How can I do that please help me. 我怎么能这样帮助我。

Look for build.xml in the base dir of your your project. 在项目的基础目录中查找build.xml

Change this part: 改变这一部分:

<project name="MyProject" default="MyDefaultTarget" basedir=".">

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM