Github user jodersky commented on a diff in the pull request:

    https://github.com/apache/spark/pull/13061#discussion_r63955556
  
    --- Diff: project/SparkBuild.scala ---
    @@ -435,7 +438,19 @@ object SparkBuild extends PomBuild {
           else x.settings(Seq[Setting[_]](): _*)
         } ++ Seq[Project](OldDeps.project)
       }
    +}
     
    +object Core {
    +  lazy val settings = Seq(
    +    unmanagedResourceDirectories in Compile += baseDirectory.value / 
"target" / "extra-resources",
    +    resourceGenerators in Compile += Def.task {
    +      val buildScript = baseDirectory.value + "/../build/spark-build-info"
    +      val targetDir = baseDirectory.value + "/target/extra-resources/"
    +      val command =  buildScript + " " + targetDir + " " + version.value
    +      Process(Seq("/bin/bash", "-c", command)).!!
    --- End diff --
    
    Is the extra unmanagedResourceDirectory required? Alternatively, the 
resource generator could output the extra properties file into the 
`resourceManaged` directory (defaults to "resource_managed"), that way it would 
also automatically be picked up in the classpath.
    
    Btw, I think that generating the file into `resourceManaged` would solve 
the problem with clean you reported on the mailing list.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to