OpenJPA
  1. OpenJPA
  2. OPENJPA-2444

ReverseMappingTool creates orm.xml files in the current working directory

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0
    • Fix Version/s: 2.3.0, 2.4.0
    • Component/s: kernel
    • Labels:
      None

      Description

      when running TestUseSchemaElement a file 'orm.xml' remains as left over and breaks the follow up tests. This happens because the MetaDataFactory creates a new File("orm.xml") without any base path if there is no orm.xml already on the classpath.

      It should actually use the base directory handed over to the mapping tool.

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1535560 from Mark Struberg in branch 'openjpa/branches/2.3.x'
        [ https://svn.apache.org/r1535560 ]

        OPENJPA-2444 fix default orm.xml location for ReverseMappingTool

        I also fixed the badly formatted and partly broken TestUseSchemaElement.

        Show
        ASF subversion and git services added a comment - Commit 1535560 from Mark Struberg in branch 'openjpa/branches/2.3.x' [ https://svn.apache.org/r1535560 ] OPENJPA-2444 fix default orm.xml location for ReverseMappingTool I also fixed the badly formatted and partly broken TestUseSchemaElement.
        Hide
        ASF subversion and git services added a comment -

        Commit 1535648 from Mark Struberg in branch 'openjpa/trunk'
        [ https://svn.apache.org/r1535648 ]

        OPENJPA-2444 fix default orm.xml location for ReverseMappingTool

        I also fixed the badly formatted and partly broken TestUseSchemaElement.

        Show
        ASF subversion and git services added a comment - Commit 1535648 from Mark Struberg in branch 'openjpa/trunk' [ https://svn.apache.org/r1535648 ] OPENJPA-2444 fix default orm.xml location for ReverseMappingTool I also fixed the badly formatted and partly broken TestUseSchemaElement.
        Hide
        ASF subversion and git services added a comment -

        Commit 1535665 from Mark Struberg in branch 'openjpa/branches/2.3.x'
        [ https://svn.apache.org/r1535665 ]

        OPENJPA-2444 also use target folder in the test itself

        Show
        ASF subversion and git services added a comment - Commit 1535665 from Mark Struberg in branch 'openjpa/branches/2.3.x' [ https://svn.apache.org/r1535665 ] OPENJPA-2444 also use target folder in the test itself
        Hide
        ASF subversion and git services added a comment -

        Commit 1535692 from Mark Struberg in branch 'openjpa/trunk'
        [ https://svn.apache.org/r1535692 ]

        OPENJPA-2444 also use target folder in the test itself

        Show
        ASF subversion and git services added a comment - Commit 1535692 from Mark Struberg in branch 'openjpa/trunk' [ https://svn.apache.org/r1535692 ] OPENJPA-2444 also use target folder in the test itself
        Hide
        ASF subversion and git services added a comment -

        Commit 1536455 from Mark Struberg in branch 'openjpa/trunk'
        [ https://svn.apache.org/r1536455 ]

        OPENJPA-2444 move the cleanup after freeing the InputStream

        Win* blocks the whole file as long as the InputStream is not closed.
        Thus we can only delete the file afterwards.

        Show
        ASF subversion and git services added a comment - Commit 1536455 from Mark Struberg in branch 'openjpa/trunk' [ https://svn.apache.org/r1536455 ] OPENJPA-2444 move the cleanup after freeing the InputStream Win* blocks the whole file as long as the InputStream is not closed. Thus we can only delete the file afterwards.
        Hide
        ASF subversion and git services added a comment -

        Commit 1536462 from Mark Struberg in branch 'openjpa/branches/2.3.x'
        [ https://svn.apache.org/r1536462 ]

        OPENJPA-2444 move the cleanup after freeing the InputStream

        Win* blocks the whole file as long as the InputStream is not closed.
        Thus we can only delete the file afterwards.

        Show
        ASF subversion and git services added a comment - Commit 1536462 from Mark Struberg in branch 'openjpa/branches/2.3.x' [ https://svn.apache.org/r1536462 ] OPENJPA-2444 move the cleanup after freeing the InputStream Win* blocks the whole file as long as the InputStream is not closed. Thus we can only delete the file afterwards.

          People

          • Assignee:
            Mark Struberg
            Reporter:
            Mark Struberg
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development