[
https://issues.apache.org/activemq/browse/SMXCOMP-176?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=50817#action_50817
]
Jean-Baptiste Onofré commented on SMXCOMP-176:
----------------------------------------------
Another tip from Guillaume, the replaceString method can be replaced by :
for (Enumeration e = properties.propertyNames(); e.hasMoreElements();) {
String key = (String)e.nextElement();
String val = properties.getProperty(key);
Matcher matcher = Pattern.compile("\\$\\{([^}]+)\\}").matcher(val);
while (matcher.find()) {
String rep = System.getProperty(matcher.group(1));
if (rep != null) {
val = val.replace(matcher.group(0), rep);
matcher.reset(val);
}
}
properties.put(key, val);
> Support JarUrlConnection with regexp in the SU <classpath/>
> -----------------------------------------------------------
>
> Key: SMXCOMP-176
> URL: https://issues.apache.org/activemq/browse/SMXCOMP-176
> Project: ServiceMix Components
> Issue Type: Improvement
> Components: servicemix-common
> Affects Versions: 3.2.3
> Environment: ServiceMix 3.3.1
> JVM 1.5.0 Sun
> Linux
> Reporter: Jean-Baptiste Onofré
> Assignee: Jean-Baptiste Onofré
> Attachments: SM-1771-1.patch, SM-1771-2.patch, SM-1771-3.patch,
> SM-1771-4.patch, SMXCOMP-176.patch, SMXCOMP-176_1.patch, SMXCOMP-176_2.patch,
> SMXCOMP-176_3.patch, SMXCOMP-176_4.patch
>
>
> It's possible to extend the SU classloader using the <classpath/> tag.
> Currently, the <location/> tag in classpath uses File and expects something
> like /path/to/my.jar.
> We are going to extend this using JarUrlConnection inside the <location/>
> tag. Using JarUrlConnection, the user will be able to use classpath extension
> like :
> jar:file:/path/to/my.ear!/my.jar
> for example.
> Moreover, we will add regexp supports for jar lookup. At the end, the user
> will be able to use something like that :
> jar:file/path/to/my.ear!/my*.jar
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.