Compile a demo JAR file from the command line

Compile the demo Java code provided with this software development kit.

Prerequisites

Before starting this task complete the steps in Update related workflow and build files.

Procedure

  1. Open a terminal window and go to where the gradlew.bat file is located.
    ...\A2019DemoPackage > gradlew.bat
  2. In the terminal window, type gradlew.bat clean build shadowJar, and press Enter. Here is an example of what you see:
    > . . .\A2019DemoPackage>gradlew.bat clean build shadowJar
    
    > Task :compileJava
    Note: Starting hierarchy discovery for 'com.automationanywhere.botcommand.demo.Concatenate'
    Note: Starting non-hierarchical element discovery for 'com.automationanywhere.botcommand.demo.Concatenate'
    Note: Starting hierarchy discovery for 'com.automationanywhere.botcommand.demo.Uppercase'
    Note: Starting non-hierarchical element discovery for 'com.automationanywhere.botcommand.demo.Uppercase'
    Note: Starting Command Java generator...
    Note: Starting Json generator...
    Note: Generating command json for Concatenate
    Note: Generating command json for Uppercase
    
    > Task :commandCodeGen
    mergeJsonFiles: updatePackage: group com.automationanywhere , artifactName A2019DemoPackageFirstnameLastname , 
    packageVersion 1.0.0-20190816-101906

    The compiled file is located in file:\ \A2019DemoPackage\build\libs\.

Next steps

To add your custom package to your Control Room follow the instructions in Add packages to the Control Room.