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

additionalClasspathElements-feature improved

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.3
    • 2.19
    • Maven Surefire Plugin
    • None
    • 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

        1. surefireAddClasspath.diff
          1 kB
          Christian Moser

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: