[67cat] Meaning of "distilling" a jar during build?

View: New views
2 Messages — Rating Filter:   Alert me  

[67cat] Meaning of "distilling" a jar during build?

by Thorsen Eric :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have a module that refers to the org-netbeans-modules-lexer.jar.
When I look in this jar in:
Netbeans 6.7 RC3.app/Contents/Resources/NetBeans/ide11/modules/org-
netbeans-modules-lexer.jar
I see lots of classes in the org/netbeans/lib.lexer directory within  
the jar.  During the build of my module, I see the message:
[parseprojectxml] Distilling /Users/ericthor/Dev/enclojure-nb-clojure-
plugin/org.enclojure.ide.nb.clojure_plugin_suite/
org.enclojure.ide.nb.editor/build/public-package-jars/org-netbeans-
modules-lexer.jar from [/Applications/NetBeans/NetBeans 6.7 RC3.app/
Contents/Resources/NetBeans/ide11/modules/org-netbeans-modules-
lexer.jar]

When I look at the resulting org-netbeans-modules-lexer.jar in the  
build/public-package-jars directory there is only 1 class in the org/
netbeans/lib/lexer dir as well as the manifest missing and I assume  
some other differences.

What is happening during the distillation phase?

Thanks,
Eric






Re: [67cat] Meaning of "distilling" a jar during build?

by Jesse Glick :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thorsen Eric wrote:
> [parseprojectxml] Distilling .../build/public-package-jars/org-netbeans-modules-lexer.jar from [.../ide11/modules/org-netbeans-modules-lexer.jar]
>
> When I look at the resulting org-netbeans-modules-lexer.jar in the
> build/public-package-jars directory there is only 1 class in the
> org/netbeans/lib/lexer dir as well as the manifest missing and I assume
> some other differences.
>
> What is happening during the distillation phase?

Everything is deleted from the JAR except for classes in the declared public packages. Should be 34 in this case, not sure why you are only seeing 1.