You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2009/05/29 23:39:06 UTC
svn commit: r780118 -
/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/config/Install.java
Author: kstam
Date: Fri May 29 21:39:05 2009
New Revision: 780118
URL: http://svn.apache.org/viewvc?rev=780118&view=rev
Log:
JUDDI-234 fixing issue with token replacement, where we incorrectly escaped the regex.
Modified:
webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/config/Install.java
Modified: webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/config/Install.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/config/Install.java?rev=780118&r1=780117&r2=780118&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/config/Install.java (original)
+++ webservices/juddi/branches/v3_trunk/juddi-core/src/main/java/org/apache/juddi/config/Install.java Fri May 29 21:39:05 2009
@@ -481,11 +481,12 @@
String replacement = config.getString(token);
if (replacement!=null) {
log.debug("Found token " + token + " and replacement value " + replacement);
- installData.replaceAll(token, replacement);
+ installData = installData.replaceAll("\\$\\{" + token + "\\}", replacement);
} else {
log.error("Found token " + token + " but could not obtain its value. Data: " + installData);
}
}
+ log.debug("Data after token replacement: " + installData);
return installData;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org