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. Update as of 02/18: I've included a bash script that auto generates jshell-init-.jsh and is invoked by maven. Once the Accumulo package is built, the JShell Accumulo Feature is ready for usage. **Starting JShell with Accumulo (Updated as of 02/18):** _$ bin/accumulo jshell_ - This cmd will pass the $CLASSPATH to Jshell and import the default java libraries and Accumulo public APIs from the .jsh file. _$ bin/accumulo jshell --startup (Path to user's custom file(s)_ - This cmd will pass the $CLASSPATH to Jshell and import the default Java libraries first before importing the user's custom file(s) ---------------------------------------------------------------- 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]
