Re: Switching to wrapped output?

2022-05-11 Thread Michael Bien

check the right click menu of the output window.

Terminal would be a different window.

regards,
michael

On 12.05.22 06:06, Greenberg, Gary wrote:


I am developing a web service and for debugging purposes logging the 
output of it, which is a lengthy JSON.


I am getting

…line is too long, please switch to wrapped mode to see whole line…

But how do I do it. I looked through *Options* and didn’t find it.

The only wrap lines check box is in Options->Miscellaneous->Terminal 
and it is already checked.


*Gary Greenberg*

Staff Software Engineer



Switching to wrapped output?

2022-05-11 Thread Greenberg, Gary
I am developing a web service and for debugging purposes logging the output of 
it, which is a lengthy JSON.
I am getting
...line is too long, please switch to wrapped mode to see whole line...

But how do I do it. I looked through Options and didn't find it.
The only wrap lines check box is in Options->Miscellaneous->Terminal and it is 
already checked.

Gary Greenberg
Staff Software Engineer



Re: junit 5 on NB-13

2022-05-11 Thread Ernie Rael
Yes, what you're saying sounds right; I've seen a variety of things 
about new testrunner while searching.


After I sent the original, which was about converting an ant project 
from jUnit4 to jUnit5, I created a new project from scratch, on file. 
Then asked for a test.


It created a jUnit 5 test, to my surprise; had the jupiter imports. Ran 
the test and got


   /home/err/.nb/13-screen/cachedir/executor-snippets/junit.xml:184:
    The following error occurred while executing this line:
   /home/err/.nb/13-screen/cachedir/executor-snippets/junit.xml:128:
    The  or  for 
    must include junit.jar if not in Ant's own classpath
   BUILD FAILED (total time: 0 seconds)

Which seems to support what you're saying.

Any pointers for fixing this appreciated. Do I need to modify NB's ant 
installation? This is a new area for me.


-ernie

On 5/11/22 8:17 PM, Laszlo Kishalmi wrote:
Maybe you need to change the testrunner in the Ant task. AFAIN JUnit 5 
uses a new TestRunner.


On 5/11/22 14:27, Ernie Rael wrote:

Hi all,

Feels like I'm in deep with this one.

Using NB-13, I have an old *ant* based project. I was using 
junit-4.13/JUnitParams-1.1.1. I needed to build a parameterized test, 
and decided to upgrade to junit-5. The junit-4 tests have been 
working fine.


Added the junit-5.6 library (comes bundled with NB-13) to the 
project, deleted old libs. Fixed up annotations and such. Tests don't 
run: "No tests"executed" see below for output. Seaching says it's OK 
to ignore the "warning...Status.STABLE" (though it would be nice to 
know how to get rid of them). See output below, there were no errors


I tried creating a new test, had options junit-4, junit (and testNG 
whatever that is). I selectd junit, but that seems to be junit-4 or 
earlier.


netbeans doc, 
https://netbeans.apache.org/kb/docs/java/junit-intro.html, talks 
about junit-3, junit-4.


Any ideas on what can I do to get the tests executing?

-ernie


ant -f /src/jvi-dev/jvi 
-Djavac.includes=com/raelity/jvi/core/FilePathTest.java 
-Dnb.internal.action.name=test.single 
-Dtest.includes=com/raelity/jvi/core/FilePathTest.java 
-Dtest.class=com.raelity.jvi.core.FilePathTest 
-Dignore.failing.tests=true test-single

init:
Deleting: /src/jvi-dev/jvi/build/built-jar.properties
deps-jar:
Updating property file: /src/jvi-dev/jvi/build/built-jar.properties
compile:
Created dir: /src/jvi-dev/jvi/build/test/classes
Compiling 1 source file to /src/jvi-dev/jvi/build/test/classes
warning: unknown enum constant Status.STABLE
  reason: class file for org.apiguardian.api.API$Status not found
warning: unknown enum constant Status.STABLE
...
100 warnings
Copied 3 empty directories to 3 empty directories under 
/src/jvi-dev/jvi/build/test/classes

compile-test-single:
Created dir: /src/jvi-dev/jvi/build/test/results
No tests executed.
test-single:
BUILD SUCCESSFUL (total time: 0 seconds)


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists





-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: junit 5 on NB-13

2022-05-11 Thread Laszlo Kishalmi
Maybe you need to change the testrunner in the Ant task. AFAIN JUnit 5 
uses a new TestRunner.


On 5/11/22 14:27, Ernie Rael wrote:

Hi all,

Feels like I'm in deep with this one.

Using NB-13, I have an old *ant* based project. I was using 
junit-4.13/JUnitParams-1.1.1. I needed to build a parameterized test, 
and decided to upgrade to junit-5. The junit-4 tests have been working 
fine.


Added the junit-5.6 library (comes bundled with NB-13) to the project, 
deleted old libs. Fixed up annotations and such. Tests don't run: "No 
tests"executed" see below for output. Seaching says it's OK to ignore 
the "warning...Status.STABLE" (though it would be nice to know how to 
get rid of them). See output below, there were no errors


I tried creating a new test, had options junit-4, junit (and testNG 
whatever that is). I selectd junit, but that seems to be junit-4 or 
earlier.


netbeans doc, 
https://netbeans.apache.org/kb/docs/java/junit-intro.html, talks about 
junit-3, junit-4.


Any ideas on what can I do to get the tests executing?

-ernie


ant -f /src/jvi-dev/jvi 
-Djavac.includes=com/raelity/jvi/core/FilePathTest.java 
-Dnb.internal.action.name=test.single 
-Dtest.includes=com/raelity/jvi/core/FilePathTest.java 
-Dtest.class=com.raelity.jvi.core.FilePathTest 
-Dignore.failing.tests=true test-single

init:
Deleting: /src/jvi-dev/jvi/build/built-jar.properties
deps-jar:
Updating property file: /src/jvi-dev/jvi/build/built-jar.properties
compile:
Created dir: /src/jvi-dev/jvi/build/test/classes
Compiling 1 source file to /src/jvi-dev/jvi/build/test/classes
warning: unknown enum constant Status.STABLE
  reason: class file for org.apiguardian.api.API$Status not found
warning: unknown enum constant Status.STABLE
...
100 warnings
Copied 3 empty directories to 3 empty directories under 
/src/jvi-dev/jvi/build/test/classes

compile-test-single:
Created dir: /src/jvi-dev/jvi/build/test/results
No tests executed.
test-single:
BUILD SUCCESSFUL (total time: 0 seconds)


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: NetBeans interface with Java

2022-05-11 Thread Bernd Michaely
… and also available through the "Settings…" item in the context menu of 
the output window


On 10.05.22 17:35, Laszlo Kishalmi wrote:


Tools > Options > Miscellaneous > Output > Font Size

On 5/10/22 07:38, Michael Rootshtain wrote:


Hi,

I have increased the size of the font in the editor in Apache 
NetBeans but where do I manage to increase the size of the font in 
the output console.


Best regards,

Mike Rootshtain


junit 5 on NB-13

2022-05-11 Thread Ernie Rael

Hi all,

Feels like I'm in deep with this one.

Using NB-13, I have an old *ant* based project. I was using 
junit-4.13/JUnitParams-1.1.1. I needed to build a parameterized test, 
and decided to upgrade to junit-5. The junit-4 tests have been working fine.


Added the junit-5.6 library (comes bundled with NB-13) to the project, 
deleted old libs. Fixed up annotations and such. Tests don't run: "No 
tests"executed" see below for output. Seaching says it's OK to ignore 
the "warning...Status.STABLE" (though it would be nice to know how to 
get rid of them). See output below, there were no errors


I tried creating a new test, had options junit-4, junit (and testNG 
whatever that is). I selectd junit, but that seems to be junit-4 or earlier.


netbeans doc, https://netbeans.apache.org/kb/docs/java/junit-intro.html, 
talks about junit-3, junit-4.


Any ideas on what can I do to get the tests executing?

-ernie


ant -f /src/jvi-dev/jvi 
-Djavac.includes=com/raelity/jvi/core/FilePathTest.java 
-Dnb.internal.action.name=test.single 
-Dtest.includes=com/raelity/jvi/core/FilePathTest.java 
-Dtest.class=com.raelity.jvi.core.FilePathTest 
-Dignore.failing.tests=true test-single

init:
Deleting: /src/jvi-dev/jvi/build/built-jar.properties
deps-jar:
Updating property file: /src/jvi-dev/jvi/build/built-jar.properties
compile:
Created dir: /src/jvi-dev/jvi/build/test/classes
Compiling 1 source file to /src/jvi-dev/jvi/build/test/classes
warning: unknown enum constant Status.STABLE
  reason: class file for org.apiguardian.api.API$Status not found
warning: unknown enum constant Status.STABLE
...
100 warnings
Copied 3 empty directories to 3 empty directories under 
/src/jvi-dev/jvi/build/test/classes

compile-test-single:
Created dir: /src/jvi-dev/jvi/build/test/results
No tests executed.
test-single:
BUILD SUCCESSFUL (total time: 0 seconds)


-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



nbm-maven-plugin transitive dependencies

2022-05-11 Thread Adam Korynta
Hello,

I am switching an application to start using maven utilizing the 
nbm-maven-plugin to generate nbm artifacts. I do not wish to declare every 
single transitive dependency in the application as that would be well over 100 
artifacts to maintain that are already provided transitively. However, when I 
leave out transitive dependencies in my pom.xml file, they do not get bundled 
in the nbm artifact even though they show up in my mvn dependency:tree 
analysis. Any advice would be welcome.

Thank you,

Adam Korynta
Resource Management Associates - Software Developer
1756 Picasso Avenue, Suite G, Davis, CA 95618
Phone 530-564-7043 ext. 217
Fax 530-231-5323
a...@rmanet.com
https://www.rmanet.com

[cid:image001.png@01D8651B.F17A0DE0]



Re: Adding Payara Server to Jakarta EE 9 Project

2022-05-11 Thread Josh Juneau
Payara does work in NetBeans, but the Jakarta EE 9 schemas for Payara
server may not have been updated.  I can check on that for a future update.

Incidentally, I am working on updating the Jakarta schemas for GlassFish.
Hope to have this work completed for the next release.

Thanks

Josh Juneau
juneau...@gmail.com
http://jj-blogger.blogspot.com
Apress Author 



On Wed, May 11, 2022 at 9:51 AM Laszlo Kishalmi 
wrote:

> Payara shall work with NetBeans, some Payara devs even contribute code for
> the Payara plugin, however I have not checked the latest development in
> that area.
> On 5/11/22 00:30, Amn wrote:
>
> I don't think Payara works under Netbeans. I am migrating from Win to
> Linux, I'll try under the linux platform and see how things go here.
> On 2022-05-04 09:50, Mike Ryan wrote:
>
> Hello,
>
> In both Netbeans 12.6 and 13 I’m having trouble figuring out how to add a 
> Payara Server to my Jakarta EE 9 project.
>
> Payara version: 5.2022.2
> Apache NetBeans version: 12.6 or 13
> JDK: 11.0.8
>
> I have the following in my Gradle build file:
>
> dependencies {
> providedCompile 'jakarta.platform:jakarta.jakartaee-web-api:9.1.0’
> }
>
> The project compiles fine. I can add the Payara Server to my Java EE 8 
> projects. But when I go to my project’s Properties -> Run I see
>
> Java EE Version: Jakarta EE 9 Web
>
> but there are no servers in the Server dropdown.
>
> I’m assuming there’s just some config I’m forgetting about somewhere.
>
> Anyone have any ideas?
>
> Thanks,
>
> Mike
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, 
> visit:https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
> --
> *ArbolOne*
> Using Fire Fox and Thunderbird.
> Developing using Java, C/C++, HTM/CSS and SQLite as our platform has been
> exciting and most rewarding.[*Ñ*]
>
>


Re: Adding Payara Server to Jakarta EE 9 Project

2022-05-11 Thread Laszlo Kishalmi
Payara shall work with NetBeans, some Payara devs even contribute code 
for the Payara plugin, however I have not checked the latest development 
in that area.


On 5/11/22 00:30, Amn wrote:


I don't think Payara works under Netbeans. I am migrating from Win to 
Linux, I'll try under the linux platform and see how things go here.


On 2022-05-04 09:50, Mike Ryan wrote:

Hello,

In both Netbeans 12.6 and 13 I’m having trouble figuring out how to add a 
Payara Server to my Jakarta EE 9 project.

Payara version: 5.2022.2
Apache NetBeans version: 12.6 or 13
JDK: 11.0.8

I have the following in my Gradle build file:

dependencies {
 providedCompile 'jakarta.platform:jakarta.jakartaee-web-api:9.1.0’
}

The project compiles fine. I can add the Payara Server to my Java EE 8 projects. 
But when I go to my project’s Properties -> Run I see

Java EE Version: Jakarta EE 9 Web

but there are no servers in the Server dropdown.

I’m assuming there’s just some config I’m forgetting about somewhere.

Anyone have any ideas?

Thanks,

Mike
-
To unsubscribe, e-mail:users-unsubscr...@netbeans.apache.org
For additional commands, e-mail:users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


--
*ArbolOne*
Using Fire Fox and Thunderbird.
Developing using Java, C/C++, HTM/CSS and SQLite as our platform has 
been exciting and most rewarding.[*Ñ*]

Re: Adding Payara Server to Jakarta EE 9 Project

2022-05-11 Thread Amn
I don't think Payara works under Netbeans. I am migrating from Win to 
Linux, I'll try under the linux platform and see how things go here.


On 2022-05-04 09:50, Mike Ryan wrote:

Hello,

In both Netbeans 12.6 and 13 I’m having trouble figuring out how to add a 
Payara Server to my Jakarta EE 9 project.

Payara version: 5.2022.2
Apache NetBeans version: 12.6 or 13
JDK: 11.0.8

I have the following in my Gradle build file:

dependencies {
 providedCompile 'jakarta.platform:jakarta.jakartaee-web-api:9.1.0’
}

The project compiles fine. I can add the Payara Server to my Java EE 8 projects. 
But when I go to my project’s Properties -> Run I see

Java EE Version: Jakarta EE 9 Web

but there are no servers in the Server dropdown.

I’m assuming there’s just some config I’m forgetting about somewhere.

Anyone have any ideas?

Thanks,

Mike
-
To unsubscribe, e-mail:users-unsubscr...@netbeans.apache.org
For additional commands, e-mail:users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists


--
*ArbolOne*
Using Fire Fox and Thunderbird.
Developing using Java, C/C++, HTM/CSS and SQLite as our platform has 
been exciting and most rewarding.[*Ñ*]