Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-574

additionalClasspathElements-feature improved

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.4.3
    • Fix Version/s: 2.19
    • Component/s: Maven Surefire Plugin
    • Labels:
      None
    • Environment:
      any

      Description

      I need to extend the classpath of the surefire-plugin by a standard java classpath (file.jar;file2.jar;file3.jar) contained in a property accessible by the executing pom file.
      Unfortunatelly you have to add every single file by your own:

      <additionalClasspathElements>
      <additionalClasspathElement>file1.jar</additionalClasspathElement>
      <additionalClasspathElement>file2.jar</additionalClasspathElement>
      </additionalClasspathElements>

      So I've wrote a simple patch to extend the classpath by adding just one element:

      <additionalClasspathElements>
      <additionalClasspathElement>${var.cp}</additionalClasspathElement> (var.cp contains: file1.jar;file2.jar;file3.jar etc)
      </additionalClasspathElements>

      What do you think about it and will you add this improvement to the release version?
      I need this feature in my daily busines..

        Attachments

          Activity

            People

            • Assignee:
              tibordigana Tibor Digana
              Reporter:
              onmomo Christian Moser
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: