Adds gitignore for some java directories