• Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s:
    • Fix Version/s:
    • Component/s: Build tools
    • Labels:


      The binscripts build target takes around 3 seconds in the environments I use for building Derby. It looks like most of the time is spent running the chmod Ant task on the generated scripts. There are six invocations of the chmod task, one for each script. The chmod task can operate on multiple files, so one invocation should be enough (and one invocation on six files seems to have about the same cost as one invocation on a single file).

      A related problem is that the scripts are always regenerated in incremental builds, even when there's nothing to do, so the binscripts target accounts for a significant part of the time it takes to run an incremental build.

      1. d5478.diff
        2 kB
        Knut Anders Hatlen


        Knut Anders Hatlen created issue -
        Knut Anders Hatlen made changes -
        Field Original Value New Value
        Status Open [ 1 ] In Progress [ 3 ]
        Knut Anders Hatlen made changes -
        Attachment d5478.diff [ 12500630 ]
        Knut Anders Hatlen made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s [ 12316344 ]
        Resolution Fixed [ 1 ]
        Knut Anders Hatlen made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Gavin made changes -
        Workflow jira [ 12639355 ] Default workflow, editable Closed status [ 12796706 ]


          • Assignee:
            Knut Anders Hatlen
            Knut Anders Hatlen
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: