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

Invalid check for junit

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment