How to put "log4j2.xml" into a module classpath?

2021-12-11 Thread Damian Carey
Hi all, Firstly apologies. After ~ 15 years with a netbeans platform based product I have never needed to do this. I've struggled for hours trying to add a file (not a jar) to the classpath. "XML ConfigurationFactory will look for log4j2.xml in the classpath." How do I make "log4j2.xml"

Re: Platform wrapped jar cannot access META-INF/service impl via ServiceLoader

2019-08-20 Thread Damian Carey
, multiple definitions of the same class with the same > qualified name. But these are not available on the context classloader. > Look through the logs, you get it warning saying something like ".. won't > arbitrarily load class x from class loader y and z". > Maybe this helps.

Platform wrapped jar cannot access META-INF/service impl via ServiceLoader

2019-08-17 Thread Damian Carey
Hi all, We have a "mature" (10+ year old) Netbeans Platform Swing product, which has 35+ modules. This all works well. As usual, when one Netbeans module provides an Implementation we find it from other Netbeans modules using the usual idiom ... Provider: puts entry in META-INF/services

Re: jTestField

2019-06-11 Thread Damian Carey
Swing & all GUI toolkit work takes a while to get your head around, especially if you have only worked on the backend, and there is way too much to put in a few emails. One idea is that Swing (as any GUI toolkit) is fundamentally single threaded. The first thing that strikes me is "setFocus()".

Re: NB Platform - running unit tests on multiple machines

2019-05-03 Thread Damian Carey
OK. I *think* I have a solution. Ant could not pick up the environment variable without some help. Issue described in https://stackoverflow.com/questions/17571595/env-java-home-not-found-ant HTH & YMMV Answer ... Step 1. Set Operating System Environment variable =