How can I get specified Main class of artifact
已回答
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.
请先登录再写评论。
"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