1e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes/* 2e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * Licensed to the Apache Software Foundation (ASF) under one or more 3e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * contributor license agreements. See the NOTICE file distributed with 4e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * this work for additional information regarding copyright ownership. 5e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * The ASF licenses this file to You under the Apache License, Version 2.0 6e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * (the "License"); you may not use this file except in compliance with 7e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * the License. You may obtain a copy of the License at 8e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * 9e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * http://www.apache.org/licenses/LICENSE-2.0 10e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * 11e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * Unless required by applicable law or agreed to in writing, software 12e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * distributed under the License is distributed on an "AS IS" BASIS, 13e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * See the License for the specific language governing permissions and 15e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes * limitations under the License. 16e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes */ 17e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes 18e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughespackage tests.support; 19e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes 20e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughespublic class Support_PlatformFile { 21e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes 228d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath private static String platformId = null; 23e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes 248d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath public static String getNewPlatformFile(String pre, String post) { 258d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath if (platformId == null) { 268d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath String property = System.getProperty("com.ibm.oti.configuration"); 278d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath if (property == null) { 288d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath property = "JDK"; 298d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath } 308d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath platformId = property 318d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath + System.getProperty("java.vm.version").replace('.', '-'); 328d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath } 338d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath return pre + platformId + post; 348d8858e39800de641b50f6e8e864af9cf68bedeaNarayan Kamath } 35e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes 36e98fbf8686c5289bf03fe5c3de7ff82d3a77104dElliott Hughes} 37