Here you can find the source of interpolateProp(final String source, final String propName, final String defValue)
private static String interpolateProp(final String source, final String propName, final String defValue)
//package com.java2s; /*/*from www . ja v a 2 s . com*/ * Copyright (C) 2016 AT&T Intellectual Property. All rights reserved. * Copyright (c) 2016 Brocade Communications Systems, Inc. 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 */ public class Main { private static String interpolateProp(final String source, final String propName, final String defValue) { return source.replace("${" + propName + "}", System.getProperty(propName, defValue)); } }