felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stuart McCulloch (JIRA)" <j...@apache.org>
Subject [jira] Created: (FELIX-517) Replacement of {maven-dependencies} in Include-Resource and Bundle-ClassPath can strip Windows path separators
Date Sat, 15 Mar 2008 21:30:28 GMT
Replacement of {maven-dependencies} in Include-Resource and Bundle-ClassPath can strip Windows
path separators
--------------------------------------------------------------------------------------------------------------

                 Key: FELIX-517
                 URL: https://issues.apache.org/jira/browse/FELIX-517
             Project: Felix
          Issue Type: Bug
          Components: Maven Bundle Plugin
    Affects Versions: maven-bundle-plugin-1.4.0
         Environment: Windows
            Reporter: Stuart McCulloch


On Windows platforms, when you use {maven-dependencies} in a custom Include-Resource instruction
like the following:

   <Include-Resource>
      additional-resource, {maven-dependencies}, some-other-resource
   <Include-Resource>

then the Windows path separator can be stripped by the String.replaceAll() method - this could
also affect other characters that have special meaning in regexp.

Solution is to use the Plexus StringUtils.replace() method which supports simple string replacement
without using regexp (which isn't actually required here).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message