slackwinner edited a comment on pull request #1910:
URL: https://github.com/apache/accumulo/pull/1910#issuecomment-773505326


   @ctubbsii This is still in a work in progress but I wanted to share what I 
have done so far. Essentially, I added a "jshell entry" in bin/accumulo so that 
the user can easily activate jshell with the classpath imported. In addition, 
there is a jshell-init.jsh file that allows the user to load in the default 
Accumulo public APIs. Also the user can customize jshell-init by adding or 
removing public APIs. Currently jshell-init has hard coded public APIs as I am  
still figuring out how to import the classes automatically as well as making 
sure the classes are always up to date during a build. Feel free to comment if 
you have any suggestions/ideas on how to automate the import process or improve 
the jshell feature as a whole. Below are simple examples on how to boot up 
Jshell with Accumulo. 
   
   **Starting JShell with Accumulo Example:**
   _$ bin/accumulo jshell (Path to Jshell-init.jsh file)_
   - This cmd will pass the $CLASSPATH to Jshell and import both the Accumulo 
public APIs  from the .jsh file and the default java libraries.
   
   _$bin/accumulo jshell --startup (Path to Jshell-init.jsh file)_
   - This cmd will pass the $CLASSPATH to Jshell and only import both the 
Accumulo public APIs from the .jsh file.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to