usr/src/java/vpanels/client/org/opensolaris/os/vp/client/common/PanelClassLoader.java
changeset 685 767674b0a2fb
parent 591 7c5752b99fd6
equal deleted inserted replaced
684:f7b1d1fbdb8e 685:767674b0a2fb
    18  *
    18  *
    19  * CDDL HEADER END
    19  * CDDL HEADER END
    20  */
    20  */
    21 
    21 
    22 /*
    22 /*
    23  * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
    23  * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved.
    24  */
    24  */
    25 
    25 
    26 package org.opensolaris.os.vp.client.common;
    26 package org.opensolaris.os.vp.client.common;
    27 
    27 
    28 import java.io.*;
    28 import java.io.*;
   116     private static String expand(String str) {
   116     private static String expand(String str) {
   117 	if (str == null) {
   117 	if (str == null) {
   118 	    return null;
   118 	    return null;
   119 	}
   119 	}
   120 
   120 
   121 	StringBuffer result = new StringBuffer();
   121 	StringBuilder result = new StringBuilder();
   122 	Pattern re = Pattern.compile("^(.*?)\\$\\{([^}]*)\\}(.*)");
   122 	Pattern re = Pattern.compile("^(.*?)\\$\\{([^}]*)\\}(.*)");
   123 	while (true) {
   123 	while (true) {
   124 	    Matcher matcher = re.matcher(str);
   124 	    Matcher matcher = re.matcher(str);
   125 	    if (matcher.matches()) {
   125 	    if (matcher.matches()) {
   126 		result.append(matcher.group(1));
   126 		result.append(matcher.group(1));