How can I get specified Main class of artifact

Answered

Is there any way of getting the main class specified in an artifact object?
I saw that there are two methods called "getProperties()" and "getPropertyProvider()" but I don't know if that is the right way or even a possible one.

1 comment
Comment actions Permalink

"Main class" is stored in MANIFEST.MF file under attribute java.util.jar.Attributes.Name#MAIN_CLASS

see com.intellij.packaging.impl.elements.ManifestFileUtil to access

0

Please sign in to leave a comment.