From 188b15b1b83ee9aacac60b35cce7dbc4f6a248de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 13 Feb 2016 06:25:57 +0100 Subject: [PATCH] Remove the ugly path for java. It's not needed anymore. --- test/OPDSTest.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/test/OPDSTest.php b/test/OPDSTest.php index 3bda649..b458854 100644 --- a/test/OPDSTest.php +++ b/test/OPDSTest.php @@ -28,10 +28,6 @@ class OpdsTest extends PHPUnit_Framework_TestCase function jingValidateSchema($feed, $relax = OPDS_RELAX_NG) { $path = ""; - if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - // huge hack, not proud about it - $path = "c:\\Progra~1\\Java\\jre1.8.0_25\\bin\\"; - } $res = system($path . 'java -jar ' . JING_JAR . ' ' . $relax . ' ' . $feed); if ($res != '') { echo 'RelaxNG validation error: '.$res; @@ -44,10 +40,6 @@ class OpdsTest extends PHPUnit_Framework_TestCase $oldcwd = getcwd(); // Save the old working directory chdir("test"); $path = ""; - if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { - // huge hack, not proud about it - $path = "c:\\Progra~1\\Java\\jre1.8.0_25\\bin\\"; - } $res = system($path . 'java -jar ' . OPDSVALIDATOR_JAR . ' ' . $feed); chdir($oldcwd); if ($res != '') {