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

Ignore Netbeans XML configuration files in Apache License Header Test Case

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 6.0.0-beta2
    • 1.5.6, 6.0.0-beta2
    • wicket
    • Netbeans IDE

    Description

      First of all, thank you for this great framework. It's a pleasure to work with wicket!

      As I'm using the Netbeans IDE for development the Apache License Header Test Case fails due to missing license text block in some Netbeans configuration files. The following patch will ignore those Netbeans specific files and the tests will pass.

      diff --git a/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenseHeaderTestCase.java b/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenseHeaderTestCase.java
      index fc19ca2..dc6cee3 100644
      — a/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenseHeaderTestCase.java
      +++ b/wicket-util/src/main/java/org/apache/wicket/util/license/ApacheLicenseHeaderTestCase.java
      @@ -211,6 +211,7 @@ public abstract class ApacheLicenseHeaderTestCase extends Assert
      // addHeaders = true;
      xmlIgnore.add(".settings");
      xmlIgnore.add("EclipseCodeFormat.xml");
      + xmlIgnore.add("nb-configuration.xml");

      /*

      • License header in test files lower the visibility of the test.

      It would be nice to add the above ignore line.

      Attachments

        Activity

          People

            mgrigorov Martin Tzvetanov Grigorov
            xomit Timo Schmidt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: