蚂蚁在Netbeans的:重写run目标不起作用

编程入门 行业动态 更新时间:2024-10-26 12:28:29
本文介绍了蚂蚁在Netbeans的:重写run目标不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我想重写运行的目标在NetBeans项目。我在做什么是编辑文件的build.xml :

I am trying to override the "run" target in a Netbeans project. What I'm doing is editing the file build.xml:

<project name="Test123" default="default" basedir="."> <import file="nbproject/build-impl.xml"/> <target depends="init,compile" name="run"> <echo>AAAAAAAAAAAAAAAAAAAAAA</echo> </target> <target depends="init,compile-single" name="run-single"> <echo>AAAAAAAAAAAAAAAAAAAAAA</echo> </target> </project>

我试图同时重写跑和跑单,但两件事不会改变任何东西。当pressing F6 ,该项目的主类是像以前一样执行。不打印测试消息( AAA ... )。

I tried to override both "run" and "run-single", but both things doesn't change anything. When pressing F6, the project's Main class is executed as before. The test message (AAA...) is not printed.

编辑:结果创建一个 bug报告获得Netbeans的。

Created a bug report for Netbeans.

推荐答案

该解决方案是,在回答我的 bug报告,关闭编译上保存。

The solutions is, as mentioned in the answer to my bug report, to turn off compile-on-save.

更多推荐

蚂蚁在Netbeans的:重写run目标不起作用

本文发布于:2023-11-24 11:13:43,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1624974.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:重写   蚂蚁   不起作用   目标   Netbeans

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!