diff -r 71ad690e91f5 -r d6dafc5d983f javacommons/utils/tsrc/rtsupport/javasrc/com/nokia/mj/impl/rt/testvm/JvmPortTest.java --- a/javacommons/utils/tsrc/rtsupport/javasrc/com/nokia/mj/impl/rt/testvm/JvmPortTest.java Mon Oct 04 11:29:25 2010 +0300 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,218 +0,0 @@ -/* -* Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). -* All rights reserved. -* This component and the accompanying materials are made available -* under the terms of "Eclipse Public License v1.0" -* which accompanies this distribution, and is available -* at the URL "http://www.eclipse.org/legal/epl-v10.html". -* -* Initial Contributors: -* Nokia Corporation - initial contribution. -* -* Contributors: -* -* Description: -* -*/ - -package com.nokia.mj.impl.rt.j9; - -import com.nokia.mj.impl.rt.JvmPort; -import com.nokia.mj.impl.rt.support.ThreadEventListener; -import com.nokia.mj.impl.rt.support.NativeMemoryBlock; -import java.io.*; -import java.util.Properties; -import java.util.Enumeration; -import com.nokia.mj.impl.rt.DynamicSystemPropertiesSun; - -/** - * - * @author Nokia Corporation - * @version 1.0 - */ - -public final class JvmPortTest extends JvmPort -{ - static - { - //The code below reads all the odc files from the location - //where the API jsr files are. It also enables the System - //property extension mechanism for Sun's J2SE vm. - try - { - String odcLocation = System.getProperty("java.ext.dirs"); - // This filter only returns directories - File odcDir = new File(odcLocation); - FileFilter filter = new FileFilter() - { - public boolean accept(File f) - { - if (f.getName().endsWith(".odc")) - { - return true; - } - return false; - } - }; - - File[] files = odcDir.listFiles(filter); - DynamicSystemPropertiesSun props = new DynamicSystemPropertiesSun(); - - Properties origProps = System.getProperties(); - Enumeration keys = origProps.keys(); - while (keys.hasMoreElements()) - { - Object key = keys.nextElement(); - props.put(key, origProps.get(key)); - } - - for (int i=0; i