Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2018-01-16 08:21:56 +0000
committerSravan Kumar Lakkimsetti2018-01-16 10:31:51 +0000
commit0ce8c90cafa8c12c89299d3cffb6ef295977f486 (patch)
tree05cf9c1c967e0f8cc7e888b3a4f553ef778466e5 /production/testScripts/runTests2.xml
parent4fab12d793b3f2aa1f270d3cf91f4117190db920 (diff)
downloadeclipse.platform.releng.aggregator-0ce8c90cafa8c12c89299d3cffb6ef295977f486.tar.gz
eclipse.platform.releng.aggregator-0ce8c90cafa8c12c89299d3cffb6ef295977f486.tar.xz
eclipse.platform.releng.aggregator-0ce8c90cafa8c12c89299d3cffb6ef295977f486.zip
Bug 493769 - Add new configuration that runs tests with Java 9
Change-Id: If206163a994da019cef99a3d60677d092289ba4f Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'production/testScripts/runTests2.xml')
-rw-r--r--production/testScripts/runTests2.xml13
1 files changed, 12 insertions, 1 deletions
diff --git a/production/testScripts/runTests2.xml b/production/testScripts/runTests2.xml
index d388c45e..3702bf3a 100644
--- a/production/testScripts/runTests2.xml
+++ b/production/testScripts/runTests2.xml
@@ -1299,7 +1299,18 @@
} else {
project.setProperty("javaMajorVersion", "0");
}
- }
+ } else {
+ var pattern = new RegExp(/^\D*(\d+)\..*/);
+ var sArray = pattern.exec(javaVer);
+ if (sArray != null) {
+ var length = sArray.length;
+ if (length > 0) {
+ project.setProperty("javaMajorVersion", sArray[1]);
+ } else {
+ project.setProperty("javaMajorVersion", "0");
+ }
+ }
+ }
]]>
</script>
</target>

Back to the top