Update s_docs script to build Java documentation.