You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by "William L. Thomson Jr." <wl...@o-sinc.com> on 2017/11/30 22:44:59 UTC

Re: [Gentoo packaging] HALF SOLVED Can't find resource for bundle

It turns out if I delete Bundle.properties. It generates one with the
missing stuff. However it lacks stuff the one I deleted had. Thus now I
need to come up with some way to combine the two....

At least some progress though. Not sure why it only writes that stuff
when properties does not exist vs appending. Maybe a bug?

I can come up with my own means to combine, etc. Is there something I
am missing there that would do that for me?

Thanks, and at least finally have a clue whats going on and how to hack
around :)

-- 
William L. Thomson Jr.

Re: [Gentoo packaging] SOLVED Can't find resource for bundle

Posted by "William L. Thomson Jr." <wl...@o-sinc.com>.
These two files are being generated now when they were not before.
Seems the Bundle.properties file existing causes several issues.

META-INF/namedservices/URLStreamHandler/nbresloc/java.net.URLStreamHandler
META-INF/namedservices/URLStreamHandler/nbres/java.net.URLStreamHandler

Though others I still had to create, not sure why.
META-INF/namedservices.index
META-INF/namedservices/java.net.URLStreamHandlerFactory

Some what moot for now, Past those issues. Just interesting the files
that were not being generated before are now. Killed 2 birds!

-- 
William L. Thomson Jr.

Re: [Gentoo packaging] SOLVED Can't find resource for bundle

Posted by "William L. Thomson Jr." <wl...@o-sinc.com>.
What I ended up doing was copying the default Bundle.properties in
src to  a resources directory I created. Then I delete all
Bundle.properties files in the sources. That causes annotation
processors to re-create the Bundle.properties files.

Then I just cat the generated Bundle.Properties to the original one in
resources. Delete the generated one, and jar it all up :)
https://github.com/Obsidian-StudiosInc/os-xtoo/commit/5bb0077f4c03c2ce9e18a6da60351bac56696e0a

Why NbBundleProcessor does not append is beyond me. I think ant must be
doing something along the lines as to what I am doing. Otherwise I
cannot see what I am doing wrong to get annotation processors to not
combine generated stuff with static that existed in Bundle.properties
from the start.

Either way finally resolved my biggest issue and annoyance :)

That was super annoying! Caused tons of pop-ups. I could not read
important information like modules that could not load. Need to rebuild
jars once again to fix others. Hopefully for the last time. I have
rebuild the 130+ packages I have now several times. To pick up stuff
missed with annotation processors etc.

-- 
William L. Thomson Jr.