Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6460

{maven-test-sources} not working as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • maven-bundle-plugin-2.5.0, maven-bundle-plugin-5.1.2
    • maven-bundle-plugin-5.1.3
    • Maven Bundle Plugin
    • None
    • Patch

    Description

      I seem to have introduced a bug along my patch for FELIX-3381.

      Edit: I've actually failed to verify the actual patch patch  https://svn.apache.org/viewvc/felix/trunk/bundleplugin/src/main/java/org/apache/felix/bundleplugin/BundlePlugin.java?revision=1602812&view=markup&pathrev=1695270

      There is should be a test in BundlePlugin.java whether {maven-sources} and/or {maven-test-sources} placeholders are present but instead I've managed miss a typo {maven-test-resources} that was patched there instead.

      Could this simple typo be fixed

      BundlePlugin.java
      @@ -2143,7 +2143,7 @@
               final String sourcePath = analyzer.getProperty( Analyzer.SOURCEPATH );
               if ( sourcePath != null )
               {
      -            if ( sourcePath.contains(MAVEN_SOURCES) || sourcePath.contains(MAVEN_TEST_RESOURCES) )
      +            if ( sourcePath.contains(MAVEN_SOURCES) || sourcePath.contains(MAVEN_TEST_SOURCES) )
                   {
                       String combinedSource = StringUtils.replace( sourcePath, MAVEN_SOURCES, mavenSourcePaths.toString() );
                       combinedSource = StringUtils.replace( combinedSource, MAVEN_TEST_SOURCES, mavenTestSourcePaths.toString() );
      

      Attachments

        Issue Links

          Activity

            People

              jbonofre Jean-Baptiste Onofré
              tuomas_kiviaho Tuomas Kiviaho
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: