Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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 d388c45e4..3702bf3a1 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