Abdera
  1. Abdera
  2. ABDERA-131

Unable to override the default writer using abdera.properties

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.4.0
    • Fix Version/s: 0.4.0
    • Labels:
      None

      Description

      I want to use PrettyWriter as the defalt writer for my app, so I created an abdera.properties file for my app consisting of the following line:
      org.apache.abdera.writer.Writer=org.apache.abdera.parser.stax.util.PrettyWriter

      The problem seems to reside in ServiceUril, but the code is quite convoluted, and I couldn't discern how it is supposed to work. I have created a unit test which demonstrates the problem, which I believe affects any attempt to override default classes using abdera.properties.

        Activity

        Jim Ancona created issue -
        Hide
        Jim Ancona added a comment -

        Unit test which demonstrates the problem.

        Show
        Jim Ancona added a comment - Unit test which demonstrates the problem.
        Jim Ancona made changes -
        Field Original Value New Value
        Attachment AbderaPropertiesBug.patch [ 12377270 ]
        Hide
        James M Snell added a comment -

        Fix checked in. Give it a try. In my tests, I was able to successfully set both the prettyxml and json writers as the default

        Show
        James M Snell added a comment - Fix checked in. Give it a try. In my tests, I was able to successfully set both the prettyxml and json writers as the default
        James M Snell made changes -
        Fix Version/s 0.4.0 [ 12312825 ]
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1h 47m 1 James M Snell 06/Mar/08 19:46

          People

          • Assignee:
            Unassigned
            Reporter:
            Jim Ancona
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development