Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-33

Ant jar target that doesn't depend on tests

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Trivial
    • Resolution: Won't Fix
    • 1.2.3
    • None
    • wicket
    • None

    Description

      I'd very much appreciate it, if the ant build file could get a jar target that doesn't depend on junit tests (those should be voluntary).

      Possible solutions:

      1) Change "jar"-target dependency from "test" to "compile" and introduce a new "all"-target for both combined:
      2) Keep the jar-target and create a new one that "skips" the tests (possible name: "jar-notest")

      A patch snippet for solution one is attached below:

      @@ -114,9 +114,10 @@
      />
      </target>

      • <target name="jar" depends="test" description="o Creates a JAR file for this package">
        + <target name="jar" depends="compile" description="o Creates a JAR file for this package">
        <jar jarfile="${final.name}.jar"
        excludes="**/package.html"
        basedir="${build.main.classes}"/>
        </target>
        + <target name="all" depends="test,jar" description="o Runs the unit tests and creates a JAR file for this package"/>

      Attachments

        Activity

          People

            dashorst Martijn Dashorst
            obeliks Bernhard Frauendienst
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: