Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Trunk
    • Fix Version/s: 16.11.01
    • Component/s: ALL APPLICATIONS
    • Labels:
      None
    • Sprint:
      Community Day 1 - 2016

      Description

      Rename all the ftl file name into upper camel case pattern.

      1. LowecaseFtlFileNames.txt
        27 kB
        Deepak Dixit
      2. svn.st
        59 kB
        Jacques Le Roux

        Issue Links

          Activity

          Hide
          deepak.dixit Deepak Dixit added a comment -

          Total 456 ftl files exists in lower case pattern.

          Show
          deepak.dixit Deepak Dixit added a comment - Total 456 ftl files exists in lower case pattern.
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          I have this done on Windows, but hè on Windows files have no case :/ So I need to do it on Linux... Soon...

          Show
          jacques.le.roux Jacques Le Roux added a comment - I have this done on Windows, but hè on Windows files have no case :/ So I need to do it on Linux... Soon...
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Actually I only renamed files, I'll need also to rename where they are called...

          Show
          jacques.le.roux Jacques Le Roux added a comment - Actually I only renamed files, I'll need also to rename where they are called...
          Hide
          jacques.le.roux Jacques Le Roux added a comment - - edited

          OK this is a tedious task!

          I found the great http://renamewand.sourceforge.net and used it to rename FTL templates. I'm not sure I used the best method, but I got some result (see svn.st attached)
          Here are the command I used

          java -jar ~/tools/RenameWand22/RenameWand.jar  -r  "<a>.ftl"  "<FN.spaceout.pascal>.ftl"
          java -jar ~/tools/RenameWand22/RenameWand.jar  -r  "<a>.Ftl.ftl"  "<a>.ftl"
          java -jar ~/tools/RenameWand22/RenameWand.jar  -r  "<a>.Fo.ftl"  "<a>.fo.ftl"
          

          But this only capitalizes (put the 1st letter to uppercase). Because if we have a filename like minilastproductsearches.ftl we have no ways to automate the process :/
          There are a lot of files like that and most are under specialpurpose/ecommerce/template/ (147 templates at all) where it's a real mess with underscore separators as well. So unfortunately apart doing it there by hand ...

          Then comes the most tedious (and risky) part: renames files in code, where they are called...

          I wonder now if this task is realistic...

          Show
          jacques.le.roux Jacques Le Roux added a comment - - edited OK this is a tedious task! I found the great http://renamewand.sourceforge.net and used it to rename FTL templates. I'm not sure I used the best method, but I got some result (see svn.st attached) Here are the command I used java -jar ~/tools/RenameWand22/RenameWand.jar -r "<a>.ftl" "<FN.spaceout.pascal>.ftl" java -jar ~/tools/RenameWand22/RenameWand.jar -r "<a>.Ftl.ftl" "<a>.ftl" java -jar ~/tools/RenameWand22/RenameWand.jar -r "<a>.Fo.ftl" "<a>.fo.ftl" But this only capitalizes (put the 1st letter to uppercase). Because if we have a filename like minilastproductsearches.ftl we have no ways to automate the process :/ There are a lot of files like that and most are under specialpurpose/ecommerce/template/ (147 templates at all) where it's a real mess with underscore separators as well. So unfortunately apart doing it there by hand ... Then comes the most tedious (and risky) part: renames files in code, where they are called... I wonder now if this task is realistic...
          Hide
          deepak.dixit Deepak Dixit added a comment -

          Show
          deepak.dixit Deepak Dixit added a comment -
          Hide
          jacques.le.roux Jacques Le Roux added a comment -

          Please Deepak put the commits revisions numbers for future history, thanks!

          Show
          jacques.le.roux Jacques Le Roux added a comment - Please Deepak put the commits revisions numbers for future history, thanks!
          Hide
          deepak.dixit Deepak Dixit added a comment -

          Sure Jacques, I'll add all the revision number in single comment. Thanks

          Show
          deepak.dixit Deepak Dixit added a comment - Sure Jacques, I'll add all the revision number in single comment. Thanks
          Hide
          deepak.dixit Deepak Dixit added a comment -

          BTW I used IntelliJ IDE to find and replace. It helps a lot specially its preview feature while search.

          Show
          deepak.dixit Deepak Dixit added a comment - BTW I used IntelliJ IDE to find and replace. It helps a lot specially its preview feature while search.
          Hide
          deepak.dixit Deepak Dixit added a comment -

          Here is the commit revision no for reference:

          accounting => 1742358
          content => 1742457
          hr, manufacturing and marketing =>1743791
          party =>1743793
          workeffort =>1743794
          webtools =>1743879
          product and securityext =>1743880
          order =>1743881
          theme component =>1744777,1744779
          framework widget =>1744782
          framework common =>1744783
          specialpurpose scrum =>1744784
          specialpurpose cmssite =>1744785
          specialpurpose projectmgr =>1744787
          specialpurpose hhfacility =>1744881
          specialpurpose googlecheckout =>1744882
          specialpurpose ecommerce =>1744942, 1745483
          specialpurpose misc =>1745115, 1745303

          Removed some extra unused code and done some cleanup at following revisions:
          1744745
          1743883
          1743882
          1743792
          1745491
          1745500

          Show
          deepak.dixit Deepak Dixit added a comment - Here is the commit revision no for reference: accounting => 1742358 content => 1742457 hr, manufacturing and marketing =>1743791 party =>1743793 workeffort =>1743794 webtools =>1743879 product and securityext =>1743880 order =>1743881 theme component =>1744777,1744779 framework widget =>1744782 framework common =>1744783 specialpurpose scrum =>1744784 specialpurpose cmssite =>1744785 specialpurpose projectmgr =>1744787 specialpurpose hhfacility =>1744881 specialpurpose googlecheckout =>1744882 specialpurpose ecommerce =>1744942, 1745483 specialpurpose misc =>1745115, 1745303 Removed some extra unused code and done some cleanup at following revisions: 1744745 1743883 1743882 1743792 1745491 1745500

            People

            • Assignee:
              deepak.dixit Deepak Dixit
              Reporter:
              deepak.dixit Deepak Dixit
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development

                  Agile