Skip to content

Commit 152dbcf

Browse files
committed
Update our runtime to the latest versions:
* JRE updated to 1.8 update 45 * node-webkit updated to NW.js 0.12.2 * Jetty updated to 9.3.0
1 parent 4c63221 commit 152dbcf

File tree

4 files changed

+37
-32
lines changed

4 files changed

+37
-32
lines changed

distrib/common/app/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ function startCodePulse() {
102102
},
103103

104104
function(data) {
105-
var m = data.match(/Started ServerConnector@\w+\{HTTP\/1.1\}\{([^\}]+)\}/)
105+
var m = data.match(/Started ServerConnector@\w+\{[^\}]+}\{([^\}]+)\}/)
106106
if (m) {
107107
writeLog('Code Pulse running on ' + m[1] + '\n');
108108
cpUrl = 'http://' + m[1] + '/';

project/DependencyFetcher.scala

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,16 @@ object DependencyFetcher extends BuildExtra {
290290

291291
packageDependencyList in Dependencies := Nil,
292292

293-
jreWindowsUrl in Dependencies := "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jre-7u75-windows-i586.tar.gz",
293+
jreWindowsUrl in Dependencies := "http://download.oracle.com/otn-pub/java/jdk/8u45-b15/jre-8u45-windows-i586.tar.gz",
294294
jreWindows in Dependencies <<= (dependencyFolder in Dependencies) { _ / "win32" / "jre" },
295-
jreLinuxUrl in Dependencies := "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jre-7u75-linux-i586.tar.gz",
295+
jreLinuxUrl in Dependencies := "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jre-8u45-linux-i586.tar.gz",
296296
jreLinux in Dependencies <<= (dependencyFolder in Dependencies) { _ / "linux-x86" / "jre" },
297-
jreOsxUrl in Dependencies := "http://download.oracle.com/otn-pub/java/jdk/7u75-b13/jre-7u75-macosx-x64.tar.gz",
297+
jreOsxUrl in Dependencies := "http://download.oracle.com/otn-pub/java/jdk/8u45-b14/jre-8u45-macosx-x64.tar.gz",
298298
jreOsx in Dependencies <<= (dependencyFolder in Dependencies) { _ / "osx" / "jre" },
299299

300300
packageDependencyList in Dependencies <+= (jreWindowsUrl in Dependencies, jreWindows in Dependencies, jreLinuxUrl in Dependencies, jreLinux in Dependencies, jreOsxUrl in Dependencies, jreOsx in Dependencies) map { (jreWinUrl, jreWin, jreLinUrl, jreLin, jreOsxUrl, jreOsx) =>
301301
JreDependency(
302-
name = "jre 7u75", rawPath = "jre1.7.0_75",
302+
name = "jre 8u45", rawPath = "jre1.8.0_45",
303303
files = List(
304304
DependencyFile(Platform.Windows, jreWinUrl, jreWin, FileFormat.TarGz),
305305
DependencyFile(Platform.Linux, jreLinUrl, jreLin, FileFormat.TarGz),
@@ -308,12 +308,12 @@ object DependencyFetcher extends BuildExtra {
308308
)
309309
},
310310

311-
nwkWindows in Dependencies <<= (dependencyFolder in Dependencies) { _ / "win32" / "node-webkit" },
312-
nwkWindowsUrl in Dependencies := "http://dl.node-webkit.org/v0.9.2/node-webkit-v0.9.2-win-ia32.zip",
313-
nwkLinux in Dependencies <<= (dependencyFolder in Dependencies) { _ / "linux-x86" / "node-webkit" },
314-
nwkLinuxUrl in Dependencies := "http://dl.node-webkit.org/v0.9.2/node-webkit-v0.9.2-linux-ia32.tar.gz",
315-
nwkOsx in Dependencies <<= (dependencyFolder in Dependencies) { _ / "osx" / "node-webkit" },
316-
nwkOsxUrl in Dependencies := "http://dl.node-webkit.org/v0.9.2/node-webkit-v0.9.2-osx-ia32.zip",
311+
nwkWindows in Dependencies <<= (dependencyFolder in Dependencies) { _ / "win32" / "nwjs" },
312+
nwkWindowsUrl in Dependencies := "http://dl.nwjs.io/v0.12.2/nwjs-v0.12.2-win-ia32.zip",
313+
nwkLinux in Dependencies <<= (dependencyFolder in Dependencies) { _ / "linux-x86" / "nwjs" },
314+
nwkLinuxUrl in Dependencies := "http://dl.nwjs.io/v0.12.2/nwjs-v0.12.2-linux-ia32.tar.gz",
315+
nwkOsx in Dependencies <<= (dependencyFolder in Dependencies) { _ / "osx" / "nwjs" },
316+
nwkOsxUrl in Dependencies := "http://dl.nwjs.io/v0.12.2/nwjs-v0.12.2-osx-ia32.zip",
317317

318318
packageDependencyList in Dependencies <+= (nwkWindowsUrl in Dependencies, nwkWindows in Dependencies, nwkLinuxUrl in Dependencies, nwkLinux in Dependencies, nwkOsxUrl in Dependencies, nwkOsx in Dependencies) map { (nwkWinUrl, nwkWin, nwkLinUrl, nwkLin, nwkOsxUrl, nwkOsx) =>
319319
new PlatformDependency(
@@ -324,22 +324,19 @@ object DependencyFetcher extends BuildExtra {
324324
DependencyFile(Platform.OSX, nwkOsxUrl, nwkOsx, FileFormat.Zip)
325325
)
326326
) with PackageHelper {
327-
private val trimPathRegex = ("^\\Qnode-webkit-v0.9.2-linux-ia32\\E/").r
328-
def trimPath(platform: Platform)(path: String) = platform match {
329-
case Platform.Linux => trimPathRegex.replaceFirstIn(path, "")
330-
case _ => path
331-
}
327+
private val trimPathRegex = (raw"^nwjs-[^/]+/").r
328+
def trimPath(platform: Platform)(path: String) = trimPathRegex.replaceFirstIn(path, "")
332329
}
333330
},
334331

335332
jetty in Dependencies <<= (dependencyFolder in Dependencies) { _ / "common" / "jetty" },
336-
jettyUrl in Dependencies := "http://mirrors.xmission.com/eclipse/jetty/stable-9/dist/jetty-distribution-9.2.9.v20150224.zip",
333+
jettyUrl in Dependencies := "http://mirrors.xmission.com/eclipse/jetty/stable-9/dist/jetty-distribution-9.3.0.v20150612.zip",
337334
resourcer in Dependencies <<= (dependencyFolder in Dependencies) { _ / "tools" / "resourcer" },
338335
resourcerUrl in Dependencies := "https://dl.dropboxusercontent.com/s/zifogi9efgtsq1s/Anolis.Resourcer-0.9.zip?dl=1", // http://anolis.codeplex.com/downloads/get/81545
339336

340337
packageDependencyList in Dependencies <++= (jettyUrl in Dependencies, jetty in Dependencies, resourcerUrl in Dependencies, resourcer in Dependencies) map { (jettyUrl, jetty, resourcerUrl, resourcer) =>
341-
val jettyDep = new CommonDependency("Jetty 9.2.9 v20150224", DependencyFile(Platform.Unspecified, jettyUrl, jetty, FileFormat.Zip)) with PackageHelper {
342-
private val trimPathRegex = ("^\\Qjetty-distribution-9.2.9.v20150224\\E/").r
338+
val jettyDep = new CommonDependency("Jetty 9.3.0 v20150612", DependencyFile(Platform.Unspecified, jettyUrl, jetty, FileFormat.Zip)) with PackageHelper {
339+
private val trimPathRegex = ("^\\Qjetty-distribution-9.3.0.v20150612\\E/").r
343340
def trimPath(platform: Platform)(path: String) = {
344341
trimPathRegex.replaceFirstIn(path, "")
345342
}

project/Distributor.scala

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ object Distributor extends BuildExtra {
138138
case "win32" =>
139139
// on windows, we need nw.pak, icudt.dll, rename nw.exe -> codepulse.exe, libEGL/libGLES and the d3d DLLs
140140
val inclusions = List(
141-
"icudt.dll", "libEGL.dll", "libGLESv2.dll", "nw.pak"
141+
"d3dcompiler_47.dll", "icudtl.dat", "libEGL.dll", "libGLESv2.dll", "nw.pak"
142142
).map(rootZipFolder + _).toSet
143143

144144
nwkFiles flatMap {
@@ -176,15 +176,15 @@ object Distributor extends BuildExtra {
176176

177177
case "osx" =>
178178
// on osx, rename node-webkit.app to Code Pulse.app
179-
def rewritePath(path: String) = "codepulse/Code Pulse.app" + path.stripPrefix("codepulse/node-webkit.app")
179+
def rewritePath(path: String) = "codepulse/Code Pulse.app" + path.stripPrefix("codepulse/nwjs.app")
180180

181181
nwkFiles flatMap {
182-
case ZipEntry(_, path, mode) if path == "codepulse/node-webkit.app/Contents/Resources/nw.icns" =>
182+
case ZipEntry(_, path, mode) if path == "codepulse/nwjs.app/Contents/Resources/nw.icns" =>
183183
// swap in our icon
184184
val icns = appFolder / "app" / "icon.icns"
185185
Some(ZipEntry(icns, rewritePath(path), mode))
186186

187-
case ZipEntry(file, path, mode) if path == "codepulse/node-webkit.app/Contents/Info.plist" =>
187+
case ZipEntry(file, path, mode) if path == "codepulse/nwjs.app/Contents/Info.plist" =>
188188
// prepare our own Info.plist
189189
// pretty crappy using regular expressions for this, but plist files are absolutely awful to work with
190190

@@ -215,18 +215,18 @@ object Distributor extends BuildExtra {
215215

216216
Some(ZipEntry(customizedInfo, rewritePath(path), mode))
217217

218-
case ZipEntry(file, path, mode) if path startsWith "codepulse/node-webkit.app" =>
218+
case ZipEntry(file, path, mode) if path startsWith "codepulse/nwjs.app" =>
219219
Some(ZipEntry(file, rewritePath(path), mode))
220220

221221
case ZipEntry(_, path, _) if path endsWith "/" => None // silent
222222
case ZipEntry(_, path, _) => println("Excluding " + path); None
223223
}
224224

225225
case "linux-x86" =>
226-
// on linux, just keep nw and nw.pak. we don't need media features, so we can skip libffmpeg.so
226+
// on linux, just keep nw and nw.pak. we don't need media features, so we can skip libffmpegsumo.so
227227
nwkFiles flatMap {
228228
case ZipEntry(file, path, _) if path == "codepulse/nw" => Some(ZipEntry(file, "codepulse/codepulse", Some(755))) // executable
229-
case e @ ZipEntry(_, path, _) if path == "codepulse/nw.pak" => Some(e)
229+
case e @ ZipEntry(_, path, _) if path == "codepulse/nw.pak" || path == "codepulse/icudtl.dat" => Some(e)
230230

231231
case ZipEntry(_, path, _) if path endsWith "/" => None // silent
232232
case ZipEntry(_, path, _) => println("Excluding " + path); None
@@ -248,6 +248,7 @@ object Distributor extends BuildExtra {
248248
// exclude unnecessary files. this is platform dependant
249249
// I referenced <http://www.oracle.com/technetwork/java/javase/jdk-7-readme-429198.html#redistribution>
250250
// and <http://www.oracle.com/technetwork/java/javase/jre-7-readme-430162.html>
251+
// For Java 8: <http://www.oracle.com/technetwork/java/javase/jre-8-readme-2095710.html>
251252
platform match {
252253
case "win32" =>
253254
val base = rootZipFolder + "jre/"
@@ -262,13 +263,14 @@ object Distributor extends BuildExtra {
262263
"bin/jpiexp32.dll", "bin/jpinscp.dll", "bin/jpioji.dll",
263264
"lib/deploy.jar", "lib/plugin.jar", "lib/javaws.jar",
264265
"lib/javafx.properties", "lib/jfxrt.jar", "lib/security/javafx.policy",
266+
"lib/jfr", "lib/jfr.jar",
265267
"THIRDPARTYLICENSEREADME-JAVAFX.txt", "Welcome.html"
266268
).map(base + _).toSet
267269

268270
val exclusionPatterns = List(
269271
"bin/dtplugin/", "bin/plugin2/", "bin/server/",
270272
"bin/npjpi", // <bin/npjpi*.dll>
271-
"lib/deploy/"
273+
"lib/deploy/", "lib/oblique-fonts/", "lib/desktop/", "plugin/"
272274
).map(base + _)
273275

274276
jreFiles filter {
@@ -282,12 +284,15 @@ object Distributor extends BuildExtra {
282284
val exclusions = List(
283285
"bin/rmid", "bin/rmiregistry", "bin/tnameserv", "bin/keytool", "bin/policytool", "bin/orbd", "bin/servertool",
284286
"lib/javafx.properties", "lib/jfxrt.jar", "lib/security/javafx.policy",
285-
"lib/fxplugins.dylib", "lib/libdecora-sse.dylib","lib/libglass.dylib","lib/libglib-2.0.0.dylib","lib/libgstplugins-lite.dylib","lib/libgstreamer-lite.dylib","lib/libjavafx-font.dylib","lib/libjavafx-iio.dylib","lib/libjfxmedia.dylib","lib/libjfxwebkit.dylib","lib/libprism-es2.dylib",
287+
"lib/fxplugins.dylib", "lib/libdecora-sse.dylib", "lib/libglass.dylib", "lib/libglib-2.0.0.dylib"," lib/libgstplugins-lite.dylib", "lib/libgstreamer-lite.dylib",
288+
"lib/libjavafx-font.dylib", "lib/libjavafx-iio.dylib", "lib/libjfxmedia.dylib", "lib/libjfxwebkit.dylib", "lib/libprism-es2.dylib",
289+
"lib/jfr", "lib/jfr.jar",
286290
"THIRDPARTYLICENSEREADME-JAVAFX.txt", "Welcome.html"
287291
).map(base + _).toSet
288292

289293
val exclusionDirs = List(
290-
"man/"
294+
"man/",
295+
"lib/oblique-fonts/", "lib/desktop/", "plugin/"
291296
).map(base + _)
292297

293298
jreFiles flatMap {
@@ -308,12 +313,15 @@ object Distributor extends BuildExtra {
308313
"bin/rmid", "bin/rmiregistry", "bin/tnameserv", "bin/keytool", "bin/policytool", "bin/orbd", "bin/servertool",
309314
"bin/ControlPanel", "bin/javaws",
310315
"lib/javafx.properties", "lib/jfxrt.jar", "lib/security/javafx.policy",
311-
"lib/i386/fxavcodecplugin-52.so", "lib/i386/fxavcodecplugin-53.so", "lib/i386/fxplugins.so", "lib/i386/libglass.so", "lib/i386/libgstplugins-lite.so", "lib/i386/libgstreamer-lite.so", "lib/i386/libjavafx-font.so", "lib/i386/libjavafx-iio.so", "lib/i386/libjfxmedia.so", "lib/i386/libjfxwebkit.so", "lib/i386/libprism-es2.so",
316+
"lib/i386/fxavcodecplugin-52.so", "lib/i386/fxavcodecplugin-53.so", "lib/i386/fxplugins.so", "lib/i386/libglass.so", "lib/i386/libgstplugins-lite.so",
317+
"lib/i386/libgstreamer-lite.so", "lib/i386/libjavafx-font.so", "lib/i386/libjavafx-iio.so", "lib/i386/libjfxmedia.so", "lib/i386/libjfxwebkit.so", "lib/i386/libprism-es2.so",
318+
"lib/jfr", "lib/jfr.jar",
312319
"THIRDPARTYLICENSEREADME-JAVAFX.txt", "Welcome.html"
313320
).map(base + _).toSet
314321

315322
val exclusionDirs = List(
316-
"man/", "lib/deploy/"
323+
"man/", "lib/deploy/",
324+
"lib/oblique-fonts/", "lib/desktop/", "plugin/"
317325
).map(base + _)
318326

319327
jreFiles flatMap {

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version = 0.13.7
1+
sbt.version = 0.13.8

0 commit comments

Comments
 (0)