Uploaded image for project: 'OFBiz'
  1. OFBiz
  2. OFBIZ-10805

OFBiz shell

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Abandoned
    • Trunk
    • None
    • framework
    • None

    Description

      One issue with the current way of writing Groovy tests is that the feedback between writing an instruction and checking its result is slow because one has to rerun the corresponding test case.

      Providing a Groovy shell access with a delegator and dispatcher allows developers to interactively execute commands and check their results instantly.

      The shell access has been done via Remote Procedure Call (RPC) which was already implemented by the AdminClient and AdminServer classes.

      In order to test, you must start the server first:

      $ ./gradlew ofbiz
      

      then you can run the following command in another terminal:

      $ java -jar build/libs/ofbiz.jar --shell
      

      or this equivalent one which uses the corresponding short option:

      $ java -jar build/libs/ofbiz.jar -i
      

      Limitation: It is currently not possible to connect multiple shells at
      the same time.

      Attachments

        1. OFBIZ-10805_OFBiz-shell.patch
          13 kB
          Mathieu Lirzin

        Activity

          People

            mthl Mathieu Lirzin (Inactive)
            mthl Mathieu Lirzin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: