You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2019/02/05 20:24:16 UTC

[GitHub] zachgk commented on a change in pull request #14020: Fix jar path and add missing ones for spark jobs

zachgk commented on a change in pull request #14020: Fix jar path and add missing ones for spark jobs
URL: https://github.com/apache/incubator-mxnet/pull/14020#discussion_r254026197
 
 

 ##########
 File path: scala-package/spark/src/test/scala/org/apache/mxnet/spark/SharedSparkContext.scala
 ##########
 @@ -81,19 +81,18 @@ trait SharedSparkContext extends FunSuite with BeforeAndAfterEach with BeforeAnd
   }
 
   private def getJarFilePath(root: String): String = {
-    for (platform <- List("linux-x86_64-cpu", "linux-x86_64-gpu", "osx-x86_64-cpu")) {
-      val jarFiles = new File(s"$root/$platform/target/").listFiles(new FileFilter {
-        override def accept(pathname: File) = {
-          pathname.getAbsolutePath.endsWith(".jar") &&
-            !pathname.getAbsolutePath.contains("javadoc") &&
-            !pathname.getAbsolutePath.contains("sources")
-        }
-      })
-      if (jarFiles != null && jarFiles.nonEmpty) {
-        return jarFiles.head.getAbsolutePath
+    val jarFiles = new File(s"$root/target/").listFiles(new FileFilter {
+      override def accept(pathname: File) = {
+        pathname.getAbsolutePath.endsWith(".jar") &&
+          !pathname.getAbsolutePath.contains("bundle") &&
 
 Review comment:
   Are you sure this is right? It might be better to exclude all of javadoc, sources, bundle, and src.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services