Here you can find the source of resolvePlatformUrl(String urlspec)
protected static String resolvePlatformUrl(String urlspec)
//package com.java2s; /******************************************************************************* * Copyright (c) 2004, 2007 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors:// ww w . j av a 2s . c o m * IBM Corporation - initial API and implementation * yyyymmdd bug Email and other contact information * -------- -------- ----------------------------------------------------------- * IBM Corporation - Initial API and implementation * Jens Lukowski/Innoopract - initial renaming/restructuring * 20071205 211262 ericdp@ca.ibm.com - Eric Peters, CopyWSDLTreeCommand fails to copy ?wsdl *******************************************************************************/ import java.net.URL; import org.eclipse.core.runtime.FileLocator; public class Main { protected static String resolvePlatformUrl(String urlspec) { String result = null; try { urlspec = urlspec.replace('\\', '/'); URL url = new URL(urlspec); URL resolvedURL = FileLocator.resolve(url); result = resolvedURL.toString(); } catch (Exception e) { } return result; } }