Review Board 1.7.22


Patch for KAFKA-1131

Review Request #15503 - Created Nov. 14, 2013 and updated

Joe Stein
KAFKA-1131
Reviewers
kafka
kafka
KAFKA-1131 the LICENSE and NOTICE file should be in the binary release

 

Diff revision 1 (Latest)

  1. project/Build.scala: Loading...
project/Build.scala
Revision 40e0c4f3eb55a237972c6f8cfe01709453085800 New Change
[20] 110 lines
[+20]
111
  val releaseTask = release <<= ( packageBin in (core, Compile), dependencyClasspath in (core, Runtime), exportedProducts in Compile,
111
  val releaseTask = release <<= ( packageBin in (core, Compile), dependencyClasspath in (core, Runtime), exportedProducts in Compile,
112
    target, releaseName in core ) map { (packageBin, deps, products, target, releaseName) =>
112
    target, releaseName in core ) map { (packageBin, deps, products, target, releaseName) =>
113
      val jarFiles = deps.files.filter(f => !products.files.contains(f) && f.getName.endsWith(".jar"))
113
      val jarFiles = deps.files.filter(f => !products.files.contains(f) && f.getName.endsWith(".jar"))
114
      val destination = target / "RELEASE" / releaseName
114
      val destination = target / "RELEASE" / releaseName
115
      IO.copyFile(packageBin, destination / packageBin.getName)
115
      IO.copyFile(packageBin, destination / packageBin.getName)

    
   
116
      IO.copyFile(file("LICENSE"), destination / "LICENSE")

    
   
117
      IO.copyFile(file("NOTICE"), destination / "NOTICE")
116
      IO.copy(jarFiles.map { f => (f, destination / "libs" / f.getName) })
118
      IO.copy(jarFiles.map { f => (f, destination / "libs" / f.getName) })
117
      IO.copyDirectory(file("config"), destination / "config")
119
      IO.copyDirectory(file("config"), destination / "config")
118
      IO.copyDirectory(file("bin"), destination / "bin")
120
      IO.copyDirectory(file("bin"), destination / "bin")
119
      for {file <- (destination / "bin").listFiles} { file.setExecutable(true, true) }
121
      for {file <- (destination / "bin").listFiles} { file.setExecutable(true, true) }
120
  }
122
  }
[+20] [20] 27 lines
  1. project/Build.scala: Loading...