Uploaded image for project: 'Maven Ant Plugin (RETIRED)'
  1. Maven Ant Plugin (RETIRED)
  2. MANT-65

Invalid check for junit

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • None

    Description

      The generated Ant build file adds junit to the build.test.classpath.

      However, the check for JUnit does not use the classpath:

      <target name="test-junit-present">
        <available classname="junit.framework.Test" property="junit.present"/>
      </target>
      

      This should be changed to:

      <target name="test-junit-present">
        <available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
      </target>
      

      Attachments

        1. AntBuildWriter.java.patch
          1 kB
          Martin O'Connor
        2. AntBuildWriter.java.patch
          1 kB
          Martin O'Connor

        Activity

          People

            olamy Olivier Lamy
            sebb Sebb
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: