srowen commented on a change in pull request #25910: [SPARK-28762][CORE] Read
JAR main class if JAR is not located in local file system
URL: https://github.com/apache/spark/pull/25910#discussion_r328611916
##########
File path: core/src/main/scala/org/apache/spark/TestUtils.scala
##########
@@ -98,9 +98,20 @@ private[spark] object TestUtils {
* Create a jar file that contains this set of files. All files will be
located in the specified
* directory or at the root of the jar.
*/
- def createJar(files: Seq[File], jarFile: File, directoryPrefix:
Option[String] = None): URL = {
+ def createJar(
+ files: Seq[File],
+ jarFile: File,
+ directoryPrefix: Option[String] = None,
+ mainClass: Option[String] = None): URL = {
+ val mf = mainClass match {
+ case Some(mc) => new java.util.jar.Manifest(
Review comment:
Import this class
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]