如何将详细的netbeans输出限制为必需的行

c2e8gylq  于 2021-07-12  发布在  Java
关注(0)|答案(0)|浏览(195)

我写了一些打印行,输出是如此冗长,我不得不寻找的结果几乎与我用来键入这几行代码的时间一样多。
我对netbeans还不熟悉,但我在一些视频教程中看到了一些非常简洁的输出。
虽然我所期待的是打印以下4行,我总是得到整个事情在底部

======< WELCOME >======
Code starts from here:

This is the main method.
This user used 'jdoe' to login to his account

我想知道是否有更熟悉netbeans的人能给我一些提示,让它更漂亮,更容易阅读。

cd /home/admin/NetBeansProjects/misc; JAVA_HOME=/usr/lib/jvm/java-15-oracle /snap/netbeans/45/netbeans/java/maven/bin/mvn "-Dexec.args=-classpath %classpath java_basics.Methods" -Dexec.executable=/usr/lib/jvm/java-15-oracle/bin/java -Dexec.classpathScope=runtime process-classes org.codehaus.mojo:exec-maven-plugin:3.0.0:exec
Scanning for projects...

-------------------------< com.mycompany:JAVA >--------------------------
Building JAVA 1.0-SNAPSHOT
--------------------------------[ jar ]---------------------------------

--- maven-resources-plugin:2.6:resources (default-resources) @ JAVA ---
Using 'UTF-8' encoding to copy filtered resources.
skip non existing resourceDirectory /home/admin/NetBeansProjects/JAVA/src/main/resources

--- maven-compiler-plugin:3.1:compile (default-compile) @ JAVA ---
Changes detected - recompiling the module!
Compiling 7 source files to /home/omutwar/NetBeansProjects/JAVA/target/classes

--- exec-maven-plugin:3.0.0:exec (default-cli) @ JAVA ---
======< WELCOME >======
Code starts from here:

This is the main method.
This user used 'jdoe' to login to his account
------------------------------------------------------------------------
BUILD SUCCESS
------------------------------------------------------------------------
Total time:  1.544 s
Finished at: 2021-04-23T22:36:43-07:00
------------------------------------------------------------------------

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题