Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5781

Maven Build - Module: kernel - generates / modifies file under source-control - should build in output directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.7.3
    • None
    • kernel
    • None

    Description

      Maven Build for axis2-kernel (./modules/kernel/pom.xml).

      In the axis2-kernel Maven Module (and at in at least the axis2-integration module as well) test ant-scripts and unit-tests run against the "./test-resources" directory instead of the "./target/test-resources" directory.

      In the interest of Maven "compliance" the build process should not edit, touch or otherwise "dirty" source-code files.

      Examples:
      1. The Ant-script "test-resources/deployment/service2/build.xml" creates temporary directories, generates content, and removes these temporary directories directly within the "test-resources" source directory.

      2. The Unit-Test utility method 'readWSDLFromFile' in XMLSchemaTest creates a File reference to a file in "test-resources" and performs the following:

      XMLPrettyPrinter.prettify(file);

      This updates (dirties) the input source-file - on my windows build it changes the line-endings from Unix to Windows.

      The current Maven POMs already take care of copying the "test-resources" directory to "target/test-resources" so all of the required input files and ant-scripts are available there. Therefore, the POM ANT "dir" properties and the JUnit tests just need to be updated to use these instead of the source-code originals.

      Attachments

        Activity

          People

            Unassigned Unassigned
            JWT007 Jeff Thomas
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: