Anakia
  1. Anakia
  2. ANAKIA-2

Add FileMapper support to Anakia to allow arbitrary file name mapping

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Component/s: None
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All

      Description

      Current AnakiaTask can only change extension of a filename. So if you have a
      file like test.xml.ja, Anakia will convert it to test.xml.html. FileMapper
      support will allow you to write flexible mapping rule to change filename. The
      same support is incorporated into XSLT task in Ant 1.6.2.

        Activity

        Hide
        Yoshiki Hayashi added a comment -

        Created an attachment (id=13626)
        Patch to add FileMapper support to AnakiaTask

        Show
        Yoshiki Hayashi added a comment - Created an attachment (id=13626) Patch to add FileMapper support to AnakiaTask
        Hide
        Will Glass-Husain added a comment -

        Hi,

        Thanks for the feature suggestion and patch. Seems useful.

        (1) Is this feature compatible with earlier versions of ant? We advertise a
        requirement of ant version 1.4+

        (2) Does ant test pass?

        (3) Can you write a unit test?

        (4) If you do the above, would you mind generating a new diff against the
        latest download from svn since AnakiaTask has recently changed (this would
        make things easier for committing).

        If the answer to 1-3 is yes, I'll commit this ASAP.

        Show
        Will Glass-Husain added a comment - Hi, Thanks for the feature suggestion and patch. Seems useful. (1) Is this feature compatible with earlier versions of ant? We advertise a requirement of ant version 1.4+ (2) Does ant test pass? (3) Can you write a unit test? (4) If you do the above, would you mind generating a new diff against the latest download from svn since AnakiaTask has recently changed (this would make things easier for committing). If the answer to 1-3 is yes, I'll commit this ASAP.
        Hide
        Will Glass-Husain added a comment -

        oops, missed that this was assigned to DLR. (the status was still 'new' even
        though 'assigned-to' has been filled in with dlr). Daniel, hope you don't
        mind me jumping in.

        Show
        Will Glass-Husain added a comment - oops, missed that this was assigned to DLR. (the status was still 'new' even though 'assigned-to' has been filled in with dlr). Daniel, hope you don't mind me jumping in.
        Hide
        Will Glass-Husain added a comment -

        I'm going to bump this back a version to be aimed at v.1.6.

        While this looks useful, the patch isn't complete. Yoshiki - if you or someone else would like to write a unit test (and verify "ant test" passes) there's still time to put this in v.1.5.

        Thanks again.

        Show
        Will Glass-Husain added a comment - I'm going to bump this back a version to be aimed at v.1.6. While this looks useful, the patch isn't complete. Yoshiki - if you or someone else would like to write a unit test (and verify "ant test" passes) there's still time to put this in v.1.5. Thanks again.

          People

          • Assignee:
            Unassigned
            Reporter:
            Yoshiki Hayashi
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development