Commons JCI
  1. Commons JCI
  2. JCI-6

[jci] FileResourceStore does not store class files correctly

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

      Description

      The FileResourceStore stores class files in BASE_DIR/my.package.MyClass while
      the rest of the Java world would expect it in BASE_DIR/my/package/MyClass.class.
      To communicate with the rest of the Java world - in my case with XSP inside
      Cocoon - it would be necessary to change the FileResourceStore accordingly.

      When writing this I wonder what happens with non-to-be-compiled-resources. Their
      name will be also converted to class file names, and - as long as the rest of
      the Java world is not involved - they can be stored and read again - even if
      their name will be garbled.

        Activity

        Jörg Heinicke created issue -
        Hide
        Jörg Heinicke added a comment -

        Created an attachment (id=16088)
        Patch to FileResourceStore.

        Show
        Jörg Heinicke added a comment - Created an attachment (id=16088) Patch to FileResourceStore.
        Hide
        Torsten Curdt added a comment -

        you are right this should be changed and the "+ .class" should
        go away. basically it should be moved up the call chain.
        this can be done proberly when the matching support (see TODO) is being tackled

        Show
        Torsten Curdt added a comment - you are right this should be changed and the "+ .class" should go away. basically it should be moved up the call chain. this can be done proberly when the matching support (see TODO) is being tackled
        Hide
        Jörg Heinicke added a comment -

        And you already have fixed the issue I came across when changing my output dir
        to another dir than the input dir: The files were no longer stored due to
        missing parent dirs.

        Thanks

        Show
        Jörg Heinicke added a comment - And you already have fixed the issue I came across when changing my output dir to another dir than the input dir: The files were no longer stored due to missing parent dirs. Thanks
        Henri Yandell made changes -
        Field Original Value New Value
        issue.field.bugzillaimportkey 36237 12342488
        Henri Yandell made changes -
        Component/s Sandbox [ 12311131 ]
        Affects Version/s unspecified [ 12311647 ]
        Key COM-2336 SANDBOX-17
        Project Commons [ 12310458 ] Commons Sandbox [ 12310491 ]
        Assignee Jakarta Commons Developers Mailing List [ commons-dev@jakarta.apache.org ]
        Henri Yandell made changes -
        Component/s JCI [ 12311185 ]
        Henri Yandell made changes -
        Project Commons Sandbox [ 12310491 ] Commons JCI [ 12310650 ]
        Component/s JCI [ 12311185 ]
        Key SANDBOX-17 JCI-6

          People

          • Assignee:
            Unassigned
            Reporter:
            Jörg Heinicke
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development