Uploaded image for project: 'Corda'
  1. CORDA-2747

Package DJVM CLI for standalone distribution

    Details

    • Type: Story
    • Status: Done (View workflow)
    • Priority: Medium
    • Resolution: Done
    • Affects versions: None
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None

      Description

      To run the DJVM CLI, you must currently execute a command line like this:

      $ java -cp "$CLASSPATH:.:tmp:corda-djvm-cli.jar" net.corda.djvm.tools.cli.Program <args>
      

      This complexity is encapsulated by a djvm script, but this means that we need both the JAR and the script in order to deliver the DJVM CLI tool.

      Publish DJVM CLI as a ZIP artifact containing both an executable DJVM CLI JAR and djvm script.

      Also fix the DJVM CLI so that it can be executed as:

      $ java -jar corda-djvm-cli.jar <args>
      

      with an implicit classpath of tmp/. This will support simple use-cases where all of the user's classes to be sandboxed are contained within the tmp/ directory.

      And throw in a djvm.bat file too, for good measure.

        Attachments

          Activity

            People

            • Assignee:
              chris.rankin Chris Rankin
              Reporter:
              chris.rankin Chris Rankin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: